Jump to content
  • 0

"mod Rewrite Is Not Enabled, Or Htaccess Is Not Supported By This Server. "


Question

Posted

I've been struggling with this for a few hours and not sure what else to do besides removing the .htaccess file. I'm trying to setup Blesta on a 64-bit Ubuntu 12.04.1 Server VM with Apache/2.2.22 and PHP/5.3.10-1 for development purposes. I've even gone as far as wiping the VM and starting from scratch. I have all of the required packages and mods installed per the wiki. I tried with both the the required and recommended list. I am using a default virtualhost configuration files with all of the AllowOverride's set to All and have verifed that mod_rewrite is enabled with phpinfo(); I've created my own .htaccess file to verify that this mod_rewrite is indeed working on it's own and I can see that Blesta's .htaccess is masking the .php files properly. I've attached a screenshot showing my address bar and the error page. I've attempted this using local browsers, browsers on my LAN and browsers over WAN. Any advice would be appreciated. Thank you.

post-4818-0-79567200-1384116110_thumb.jp

12 answers to this question

Recommended Posts

  • 0
Posted

I'm just using the default config in the sites-available directory modified for AllowOverride set to All.

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride All
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
  • 0
Posted

Try to change this row too:

Options FollowSymLinks

to
Options +FollowSymLinks




Final version:
DocumentRoot /var/www
<Directory />
Options +FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes +FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
  • 0
Posted

Yep, that's what I tried.

        DocumentRoot /var/www
        <Directory />
                Options +FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes +FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
  • 0
Posted

100% working config on the same configuration of server.

File /etc/apache2/sites-available/default:





<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory /var/www/>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

 


File /etc/apache2/sites-available/my.blesta.site:

 

 





<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName my.blesta.site
DirectoryIndex index.php
DocumentRoot /var/www/my.blesta.site/public_html/
<Directory /var/www/my.blesta.site/public_html/>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/my.blesta.site-error.log
CustomLog ${APACHE_LOG_DIR}/my.blesta.site-access.log combined
</VirtualHost>

 


To enable site use command "a2ensite" and restart apache.

  • 0
Posted

Thank you. I am not sure why, but your default worked. I'll do a compare later and try to figure out what the problem was.

 

100% working config on the same configuration of server.

File /etc/apache2/sites-available/default:





<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory /var/www/>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...