In Virtualmin under my “virutual server options” I have added under “per directory options” an additional entry to reflect the directory where my second site is: “/home/mysite/public_html/second_website”
The error log for mywebsite.com was over 1GB (set the server up a few weeks ago for testing) so i deleted the log and created a new identical file name and it remains at 0 when trying to access the website.
If you’re trying to setup two unique domains, it’s best to have them setup as “Top-level” template, and if you’re trying to setup a subdomain for the second domain, it is best to use “Sub-server” template.
Without knowing what you mean by “second_website”, it co9uld be assumed that this is:
A) two unique domains
B) a single domain, and subdomain
C) a single domain, with a sub-directory
Please clarify so we can be of greater assistance. Further, you can check the error logs at: /var/logs/virtualmin/domain_error_log for any hint as to why you’re getting the nasty 500 error.
Actually they are the same domain, I’m trying to have the magento site working within a subdirectory of my joomla site. I have this working fine in plesk.
So essentially my joomla is in:
/home/mysite/public_html
And magento is in:
/home/mysite/public_html/magento
Is there anything I’m overlooking?
Thanks!
EDIT: Rechecked the error log and it now has data in it from this morning, this indicated “.htaccess: Option FollowSymLinks not allowed here”
I’ve removed the .htaccess file and now my magento site is working.
So now I have 2 quick questions:
What line should I add to the .htaccess to allow “FollowSymLinks” as I do not want to run my site long term without it?
Why would it take so long for the errors to show up in the log?
If it works with without using “FollowSymlinks”, then there’s no need to add anything else… but if you run into any problems, you could always use SymLinksIfOwnerMatch in it’s place.
It’s surprising that it took the logs so long to update though, they should typically be updated immediately.