I have a new server, it is Nginx using mysql. I have been developing code locally on a MAMP install. I then migrated this code to git and moved a copy of the database to the new server.
I configured Nginx and restored this database to the new server. All pages, both frontend and backend resolve to the magento 404 page (not the nginx 404 page) This tells me that I am getting into the Magento application but something is not quite right.
I then tried to view the logs in the
magento/var/log directory, specifically the
exception.log. No logs are getting generated. I thought this was a permission issue, so I placed a snippet of code in the
Mage.php file. This code is:
Mage::log('Test', null, 'test.log');
This results in a log file getting created. Since I do not have access to the admin area, I went into the database and made sure that the following keys are set:
dev/log/active = 1
dev/log/exception_file = exception.log
dev/log/file = system.log
scope_id = 0
I went to the magento index.php page and set the following:
Still am not getting any logs as to the 404 problem. Just to test, I browsed to the install.php page and was given an error message and a log was generated.
I was thinking this was a user related problem. Here is my setup:
Nginx runs under the Nginx account I have a group called webdev
Nginx is a part of this group
The Magento application is under the magentodev account, which is a member of the webdev group