[solved] Post install PHP checks "can not find config.php"

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
birdman

[solved] Post install PHP checks "can not find config.php"

Post by birdman »

Hi Guys,

Just completed an install with:
cmsmadesimple-1.3.1
php-5.2.5
mysql-server-5.0.51a

Started web server and browsed to http://mysite/cms/index.php as per step 7 in:
http://wiki.cmsmadesimple.org/index.php ... ll_Install

Everything passes the step 1 install except this one error:

Checking write permission on /var/www/html/cms/config.php

This file may not exist yet. If it does not, you should create an empty file with this name. Please also ensure that this file writable by the web server process.


File definately exists and has 777 permissions - along with parent directories. I know someone is going to slap me about this so please enlighten me.

Thanks.
Last edited by birdman on Wed Jul 30, 2008 2:17 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Post install PHP checks "can not find config.php"

Post by Dr.CSS »

?along with parent directories?...

You do have it in the same place as all the other folders/files like admin, index.php, etc....?
birdman

Re: Post install PHP checks "can not find config.php"

Post by birdman »

Thanks for the reply Mark. I believe my directory/file structure is correct.

Please see setup below:

[root@localhost html]# pwd
/var/www/html
[root@localhost html]# ll
total 3616
drwxrwxrwx 11 root root    4096 2008-07-30 11:19 cms
-rwxrwxrwx  1 root root 3691944 2008-07-29 21:45 cmsmadesimple-1.3.1.tar.gz
[root@localhost html]# cd cms
[root@localhost cms]# ll
total 132
drwxrwxrwx  4 root root  4096 2008-06-25 09:16 admin
-rwxrwxrwx  1 root root    1 2008-07-29 23:18 config.php
drwxrwxrwx  2 root root  4096 2008-06-25 09:16 doc
-rwxrwxrwx  1 root root  318 2008-06-08 00:57 favicon_cms.ico
-rwxrwxrwx  1 root root  330 2008-06-08 00:57 fileloc.php
drwxrwxrwx  3 root root  4096 2008-06-25 09:16 images
-rwxrwxrwx  1 root root  8535 2008-06-08 00:57 include.php
-rwxrwxrwx  1 root root  9740 2008-06-08 00:57 index.php
drwxrwxrwx  7 root root  4096 2008-07-29 23:31 install
drwxrwxrwx 11 root root  4096 2008-06-25 09:16 lib
-rwxrwxrwx  1 root root  961 2008-06-08 00:57 moduleinterface.php
drwxrwxrwx 12 root root  4096 2008-06-25 09:16 modules
-rw-r--r--  1 root root 24557 2008-07-30 11:17 output
drwxrwxrwx  3 root root  4096 2008-06-25 09:16 plugins
-rwxrwxrwx  1 root root  1955 2008-06-08 00:57 preview.php
-rwxrwxrwx  1 root root  168 2008-06-08 00:57 robots.txt
-rwxrwxrwx  1 root root  4161 2008-06-08 00:57 soap.php
-rwxrwxrwx  1 root root  2535 2008-06-08 00:57 stylesheet.css
-rwxrwxrwx  1 root root  5182 2008-06-08 00:57 stylesheet.php
drwxrwxrwx  6 root root  4096 2008-06-25 09:16 tmp
drwxrwxrwx  3 root root  4096 2008-06-25 09:16 uploads
-rwxrwxrwx  1 root root  1123 2008-06-25 08:56 version.php
[root@localhost cms]#


Any further ideas?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Post install PHP checks "can not find config.php"

Post by Dr.CSS »

Did you make all those folders/files wide open permissions?...

You should set them to the specs in the install guide only, not make everything 777, all folders/files should be 755 except those stated in the install guide...

Try 775 on the config.php after resetting the rest...
birdman

[solved] Re: Post install PHP checks "can not find config.php"

Post by birdman »

Thanks for your feedback Mark :)

Turns out it was an SELinux policy issue.

All good now.
Locked

Return to “[locked] Installation, Setup and Upgrade”