NOTHING get's written to my config.php - WHAT?!?!

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
davecurlee

NOTHING get's written to my config.php - WHAT?!?!

Post by davecurlee »

Greetings all,
I'm new here.  Today was my first attempt at installing CMS-MS 0.11.2.  I've followed the directions to a "T".

I host at Crystaltech.com  I've got a coldfusion shared server.  i have PHP V.4.4.1. 
I made a mysql database and datasource. 

the files are located at  www.mydomainname.com/folder01/CMS

I openned notepad...  saved the empty file as  config.php...  uploaded it to the CMS dir.  It shows 0kb file size.  I gave it FULL permissions 777.  I gave 777 permisions to the folders outline in the install notes on the site.

Problem 1.  When I try to install...  (www.mydomainname.com/folder1/cms )  :  "  Cannot modify D:\inetpub\thecurlees\thecurlees\cms/config.php, please change permissions to allow this "

When I create a new php document in dreamweaver and save it (it puts the standard header and title information that dreamweaver does on any new file) ...  and I upload and set the permissions on it...  the install goes through with no errors or anything....  but nothing gets written to the file...

Therefore, at the end when I remove the install directory and set the config.php file to read only crap happens. 

I try to start the site, and it trys to load the install/install.php file...  and errors. 
If I leave the install directory on the server... it just starts the install all over again.

I have had a couple of times when I try to load the  /admin folder and it redirects to  mysamplesite.com or something like that...  again, I'm guessing that if there were actually data written in the config.php, this wouldn't happen.

I've attached one of each.  They've been named accordingly but are .txt files.

I need a little help here gang. 
This deal looks promising and I'm trilled to get in and go to town, but I gotta get it running first.

The net result is ...  I'm running in circles. 

Thanks in advance.

-dave

[attachment deleted by admin]
Last edited by davecurlee on Mon Mar 06, 2006 3:40 am, edited 1 time in total.
durley

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by durley »

I noticed that your config files are appended .php.txt This won't work, save the file again in Notepad making sure that 'Save As Type' is 'ALL FILES'. This will get rid of the .txt, hopefully this will solve your problem.

If you create the file in Dreamweaver, just creat a new php file, delete evrything in the source code view and save as config.php

Good Luck
davecurlee

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by davecurlee »

Actually I should have told you,  I added the .txt in order for the file to be able to be uploaded.  I noted the  note down in the attachment section...  .php wouldn't be allowed.

Any ideas?
davecurlee

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by davecurlee »

It seems that the config.php file can't have a 0kb file size. When I have an empty one, not so much as as space in it... and the 777 permissions are set....  it tells me : 

Cannot modify D:\inetpub\thecurlees\thecurlees\cms/config.php, please change permissions to allow this

However when I edit the file...  hit {ENTER} to do a return to the next line...then save...  the file size goes to 1k.

With permissions set to 777 the install begins and seems to go through fine...  however, the file size never grows, nothing is written to the config.php......

-dave
jelle

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by jelle »

You are using a windows server, but are setting unix-style permissions? Have you verified that the webserver can write at all to something in that directory? Luckily I am not an windos expert, but maybe there are some acl's that are not displayed with the rather crude unix-style permissions that prevent writing by somebody else then the fileowner?
davecurlee

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by davecurlee »

Actually it's all been fixed. 
It is a windows server,  the use of the chmod numbering is around simply for cross-compatibility for people out there using both or experienced with both.

The issue was that my hosting company needs higher level premissions to be set via their control panel and not an ftp server.  i can do lower level permissions via ftp, but to set execute permissions.. I need to login to the hosts control panel for my account.

got it all working now though.  Thanks to the forum and IRC
-dave
jelle

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by jelle »

Since when does write permission equal execute permission :) ?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by calguy1000 »

A better understanding of permissions is needed, especially with respect to permissions on windows etc.  on different hosts.  I think everybody is getting confused here between cross platform issues, and r,w,and x issues.

I hope there's some clear, and concise issue that will help us sort this all out.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
davecurlee

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by davecurlee »

The problem was solved by logging into the control panel of my hosting company, and adding the Execute and Delete permissions for the CMS  folder.  When trying to do this via my fpt client, it wouldn't allow the setting to stick.  A call to my host revealed that I did in fact have to set them in their control panel.

Then the install properly created the config.php file and went through like a charm.  After that, I set the permissions back to just Read and Write. 

-dave
jelle

Re: NOTHING get's written to my config.php - WHAT?!?!

Post by jelle »

It might be better to not have the sourcefiles and config.php writable. Only allow the barest minimum (writing in uploads en tmp/*) and lock down the rest.
Locked

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