Page 1 of 1

Getting config.php write permission error [solved]

Posted: Sat Jun 23, 2007 6:40 pm
by wournos
After uploading the entire cmsmadesimple folder and changing read/write access just like your guides (Quick FTP Installation) says, I still get write access denied of the config.php. I found a thread on these forums that suggested adding a CHMOD to the config.php too, and set the permission to 0666. Nothing works. I still don't have write permission of the config.php file according to the installation page.

I have done so many things that my head is currently spinning.
I am by no means a techie so I would prefer as simple yet detailed explanation as possible.

/W

Re: Getting config.php write permission error

Posted: Sat Jun 23, 2007 6:44 pm
by Pierre M.
Hello,

have you tried Filezilla ?
http://wiki.cmsmadesimple.org/index.php/FTP_program

Please explain how you have created the config.php and tried to chmod it. And may be tell us what your hosting is too.

Pierre M.

Re: Getting config.php write permission error

Posted: Sat Jun 23, 2007 7:39 pm
by wournos
While trying to install another CMS, my host told me that in order to create the CHMOD file I needed to add the following code to a text file.

Code: Select all

<?php chmod("tmp/templates_c", 0774); echo
"rättigheter ändrade"; ?> 
("rättigheter ändrade" means 'permission changed' in Swedish)

But none of the text file programs I have could be saved as .php. Not properly anyway. I had to make it a Dreamweaver .php file.

I followed your guide and added the rest of the folders (tmp/templates_c, tmp/cache, uploads, uploads/images, modules) the same way as the above code. I don't know how to merge them into one single string of code though.
The guide did not say where to put the CHMOD for the config.php file so I added it into itself - which probably wasn't a good idea.


My host id One.com and I use Cyberduck as FTP. I also use Mac so not all programs are available to me.

/W

Edit:
I have found the right way to change CHMOD through my FTP. I have set the permission of all files to 775 and the config file to 666. I skipped step 6 because the host offers a database of my own. But after all this step 8 is still showing that the config file lacks write access.

Any ideas?

/W

Re: Getting config.php write permission error

Posted: Sun Jun 24, 2007 3:39 pm
by Pierre M.
wournos wrote: Edit:
I have found the right way to change CHMOD through my FTP. I have set the permission of all files to 775 and the config file to 666. I skipped step 6 because the host offers a database of my own. But after all this step 8 is still showing that the config file lacks write access.
Hello again,

well done so far (chmod with FTP tool).

Please describe with more details :
-the whole life cycle of the config.php file (where is it created ? how ? how is it chmoded ? what are all your actions about it...)
-what were the green/yellow/red flags/lights during installation about file permission, ownership and access rights.
-please remind me of what "step 6" and "step 8" are and copy the error message you see.

Pierre M.

Re: Getting config.php write permission error

Posted: Mon Jun 25, 2007 7:01 am
by wournos
Hello again.

I managed to fix everything last night. Apparently the config file was in the wrong directory. I misunderstood the guide but have now fixed the problem and installed everything.

Thanks for your help though. I really appriciate it. :)

/W

Re: Getting config.php write permission error [solved]

Posted: Mon Jun 25, 2007 1:41 pm
by Pierre M.
You are welcome :-)
If you think something is confusing in the guide, please tell it so we can improve the documentation. Or you can improve the wiki yourself (with your forum account).
Have fun with CMSms
Pierre M.