Search

Hi All,

I am a Symphony CMS newbie and while I was able to get the through the majority of the installation I am running into an issue trying to load the Admin Login/Interface. I believe the issue is ‘mod_rewrite’ related due to the following data points:

  1. I am able to load the the default template with the following URL (http://localhost/cms/index.php).
  2. The default Admin Login URL (http://localhost/cms/symphony/) loads a directory listing instead of the login page.
  3. However, I can load the Admin Login page by using the following URL w/ query string (http://localhost/cms/index.php?mode=administration).

So given that I am figuring the issue must be related to the ‘modrewrite’ module. Being a relative newbie to linux/apache I am not sure what to check next. From what I can tell modrewrite is loaded and the .htaccess file is present in the root directory of my Symphony installation. Below is a copy of my setup information. Thanks in advance for the help!!

General Environment Info:

OS = Ubuntu 10.04 (desktop edition) PHP Version = 5.3.2 MySQL Version = 5.1.41 Apache Version = 2.2.14

PHP Info:

======================================

libxml

libXML support active libXML Compiled Version 2.7.6 libXML Loaded Version 20706 libXML streams enabled

======================================

dom

DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.7.6 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled

======================================

xsl

XSL enabled libxslt Version 1.1.26 libxslt compiled against libxml Version 2.7.6 EXSLT enabled libexslt Version 1.1.26

======================================

Loaded Modules

core modlogconfig modlogio prefork httpcore modso modalias modauthbasic modauthnfile modauthzdefault modauthzgroupfile modauthzhost modauthzuser modautoindex modcgi moddeflate moddir modenv modmime modnegotiation modphp5 modreqtimeout mod_rewrite modsetenvif mod_stat

Copy of .htaccess file located in my root directory:

Symphony 2.0.x

Options +FollowSymlinks

RewriteEngine on
RewriteBase /cms/

### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico"
RewriteCond %{REQUEST_FILENAME} favicon.ico [NC]
RewriteRule .* - [S=14] 

### IMAGE RULES 
RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]

### CHECK FOR TRAILING SLASH - Will ignore files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]

### ADMIN REWRITE
RewriteRule ^symphony/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^symphony(/(.*/?))?$ index.php?symphony-page=$1&mode=administration&%{QUERY_STRING}   [NC,L]

### FRONTEND REWRITE - Will ignore files and folders
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*/?)$ index.php?symphony-page=$1&%{QUERY_STRING}    [L]

#

On ubuntu you often need to change the AllowOverride directive from None to All, otherwise apache won’t care about .htaccess.

Basically, what you need is to edit /etc/apache2/sites-available/default. You can find a full explanation here.

That did the trick. Thanks!!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details