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 think this is a FIX for the problem. Can someone in the know please confirm whether or not this is a proper fix? Thanks a million!!
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
<Directory /home/websitedomain/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
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!
<Directory /home/websitedomain/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
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
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
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.
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.
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.