permissions for index.php

Permalink
What are the permissions supposed to be for index.php in the root folder? I've changed the permissions of everything to 777, but my site is still not working. I'm in the middle of moving it from local to the web host, to replace an existing CMS.

With index.php permissions set to 777 when I browse to my site I get an Internal Server Error, which is showing up in the site error log with "SoftException in Application.cpp:256: File "/home/wallbrin/public_html/index.php" is writeable by group"

I changed it back to 644, which is how my other site (working fine) is, and then I get an adodb fatal error "Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [1146: Table 'wallbrin_wla.Config' doesn't exist] in EXECUTE("select cfValue from Config where cfKey = 'ENABLE_CACHE'") ' in /home/wallbrin/public_html/concrete/libraries/3rdparty/adodb/adodb-exceptions.inc.php:78 Stack trace: #0 etc etc"

I feel like I'm going round in circles. All I did with the old site CMS was move what was in the root folder to a sub-folder. Should I be deleting its database as well?

stretchrt
 
olliephillips replied on at Permalink Best Answer Reply
olliephillips
Database errors post server move can sometimes be a table naming 'case' issue. That's what I'd recommend checking. There is a script by remo on here somewhere that addresses the problem.
hostco replied on at Permalink Reply
hostco
Put the permissions back to 644 on the index.php file. Make sure you deleted all of your cache files in /files/cache/ and then make sure you updated your config file to the new directory in /config/site.php
stretchrt replied on at Permalink Reply
stretchrt
The case of the database tables was the key thing, but I also deleted all the cache files - config was already fine. Side note - if the concrete install is in a subfolder (ie root/concrete5) then the subfolder can't have permissions of 777. At least on my server anyway.
Thanks heaps guys!