These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for UREGENT! Updated to 3.97 and now magento site is a mess on the new forum.
Updated to 3.97, in the process it gave me a prompt saying I should disable symlinks which replaced Options +FollowSymLinks with Options +SymLinksifOwnerMatch and now the magento site is a complete mess, no images are loading etc.
How can I re-enable sym links and get it working?
Thank you very much in advance!
Here's the error from the log file:
[Fri Dec 14 11:54:00 2012] [alert] [client xxx.93.168.xxx] /home/domainname/public_html/media/.htaccess: Option All not allowed here, referer: http://www.domainname.ca/webpage.html
I believe I got the site back up and running by going to virtualmin -> websitedomain -> services -> configure website AND configure website for SSL and going to edit directives for both and finding "SymLinksifOwnerMatch" and replacing it with "FollowSymLinks"
Also, i found any .htaccess files in the directories and commented out:
Options +SymLinksifOwnerMatch
Here's an example from configure website -> edit directives
ServerName websitedomain.ca ServerAlias www.websitedomain.ca ServerAlias webmail.websitedomain.ca ServerAlias admin.websitedomain.ca DocumentRoot /home/websitedomain/public_html ErrorLog /home/websitedomain/logs/error_log CustomLog /home/websitedomain/logs/access_log combined ScriptAlias /cgi-bin/ /home/websitedomain/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options -Indexes IncludesNOEXEC SymLinksifOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.websitedomain.ca RewriteRule ^(.) http://websitedomain.ca:20000/ [R] RewriteCond %{HTTP_HOST} =admin.websitedomain.ca RewriteRule ^(.) http://websitedomain.ca:10000/ [R]
for comparison, here is the original from services -> configure website -> edit directives... Don't forget you need to edit the configure website AND configure website for SSL for it to work properly!
ServerName websitedomain.ca ServerAlias www.websitedomain.ca ServerAlias webmail.websitedomain.ca ServerAlias admin.websitedomain.ca DocumentRoot /home/websitedomain/public_html ErrorLog /home/websitedomain/logs/error_log CustomLog /home/websitedomain/logs/access_log combined ScriptAlias /cgi-bin/ /home/websitedomain/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options -Indexes IncludesNOEXEC SymLinksifOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.websitedomain.ca RewriteRule ^(.) http://websitedomain.ca:20000/ [R] RewriteCond %{HTTP_HOST} =admin.websitedomain.ca RewriteRule ^(.) http://websitedomain.ca:10000/ [R]
I responded to another of your posts before seeing this one -- take a peek in your Apache error logs, in $HOME/logs/error_log, and let us know what error(s) you're seeing.
Then we can assist you in getting things back to normal again :-0
-Eric
Hi Eric,
The error was: [Fri Dec 14 11:54:00 2012] [alert] [client xxx.93.168.xxx] /home/domainname/public_html/media/.htaccess: Option All not allowed here, referer: http://www.domainname.ca/webpage.html
Thanks! I'm back up and running now, I just want to make sure my "fix" mentioned above was correct (and secure as possible). Thanks again
Ah, I missed that you did offer your Apache error logs... thanks! :-)
Can you post the contents of your "/home/domainname/public_html/media/.htaccess" file?
It sounds like there's an option being used there that's not compatible with the recent updates.
-Eric
Hi Eric, attached to this post, thanks
Hi,
If memory serves me right, you should be able to edit your ".htaccess" file to correct this error on the website level.
Look for the line your ".htaccess" file reading:
Options +SymLinksifOwnerMatch
Change this to read:
Options +FollowSymLinks
This should make that website operate the way it was originally, as the changes were done at the Apache configuration level therefore you should be able to still manipulate the ".htaccess" file on the website level.
Let us know if this works for you!
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Hi Peter,
That did not work it was the first thing I tried, thanks for the advice though
Hi,
No worries, perhaps Jamie, Joe or Eric may have an alternate ideas.
In the meantime, have you checked the error log? If so, what if any errors are showing up. Most apps like these are pretty verbose in the error log, even if not on screen.
-Peter
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Please check my post here, there may be a solution.
http://www.virtualmin.com/node/24518
An update in case it helps anyone: This combination worked for me with Virtualmin 4.02gpl and Magento 1.8.0.0 (stable) running on Ubuntu 10.04 LTS with php-suhosin installed.
In Magento .htaccess and media/.htaccess, change
Options +FollowSymLinks
to
Options +SymLinksifOwnerMatch
Also in media/.htaccess, comment out
#Options All -Indexes
Phil McKerracher www.beeches.it