Local Works but 500 Error on Server... how come? |
[eluser]dhall[/eluser]
My site works perfectly on my local. On my server the main page loads just fine, even pulling data from my database; but as soon as I click on a menu item to go to another page I get the following error: Code: Internal Server Error I checked my apache server error log and see the following: Code: [Wed Aug 15 15:23:15 2012] [error] [client 211.125.67.192] File does not exist: /var/www/html/phpMyAdmin-2.5.5-rc1 I don't understand why it is showing all those phpMyAdmin errors... my home page which loads just fine pulls data from the database. Any ideas? Thanks for the help
[eluser]jotorres1[/eluser]
Have you made sure that you have uploaded the files? Or even checked your config files are synced?
[eluser]dhall[/eluser]
Yeah I checked that. All my files are there, config file is correct, index file correct. I do not see any errors in my coding. Why would I have not a single error on my local but have this major error on the server I just do not understand.
[eluser]TWP Marketing[/eluser]
Something is triggering the error, but it cannot locate the 404.html file to display that error. Since the main page loads and displays, it may be that the path to the menu links is not accessible on your production server. Check permission on sub-directories and their files. If that looks ok, please post your menu code and your directory structure so we can analyze deeper.
[eluser]dhall[/eluser]
How do I go about checking sub-directory permissions? Sorry if this is something simple...
[eluser]TWP Marketing[/eluser]
On a production server, your access tools should allow you to display the permissions on any file or directory. It's hard for me to guess, not knowing your server, it's configuration etc. Who installed the code on the production server? What tools were used to do that? What does your admin panel have available?
[eluser]dhall[/eluser]
My server has DirectAdmin for access. I installed the files pulling from my repository on BitBucket.
[eluser]TWP Marketing[/eluser]
Not familiar with Directadmin, but it should allow you to view your directories and files, usually in a tree structure. Try right clicking on a directory and inspecting the menu options. Look for "permissions" or "access rights" or something similar. You want to see the rights granted for access on directories and files.
[eluser]NeoArc[/eluser]
Make sure your htaccess file is properly configured in your production server. Perhaps the RewriteBase value points to a development directory. If you uploaded the website using ftp, there's a possibility the old htaccess file was deleted.
[eluser]dhall[/eluser]
Here is my htaccess file. Does everything look correct? Code: <IfModule mod_rewrite.c> |
Welcome Guest, Not a member yet? Register Sign In |