I broke my site... Please help [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
musashi39
New Member
New Member
Posts: 7
Joined: Fri Jul 11, 2008 7:54 am

I broke my site... Please help [solved]

Post by musashi39 »

I edited the config.php it didn't work any more so I changed it back now it still doesn't work. I've tried deleting all but index.html in the cache folder and setting all permissions to 777. Still doesn't work.

http://www.lppsr.org

Thanks!
Last edited by musashi39 on Sat Oct 25, 2008 6:57 pm, edited 1 time in total.
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm

Re: I broke my site... Please help

Post by Augustas »

Looks like your web server does not pass .php files through PHP parser.
I would suggest to contact support of your web hosting service.
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
nhaack

Re: I broke my site... Please help

Post by nhaack »

Dude... you should take the config offline ASAP and change DB user and password! If I saw it correctly, it displays DB username and password! I do not know how your server is configured, but if external DB access is possible, you just put a big invitation sign online.

Best
Nils
musashi39
New Member
New Member
Posts: 7
Joined: Fri Jul 11, 2008 7:54 am

Re: I broke my site... Please help

Post by musashi39 »

Augustas wrote: Looks like your web server does not pass .php files through PHP parser.
I would suggest to contact support of your web hosting service.
The site was working about two hours ago before I changed the config file. What could I have done to make it stop parsing?
nhaack

Re: I broke my site... Please help

Post by nhaack »

You could try to re-install the CMS... but uncheck the box which says, install sample content (make DB backup first). This should generate a new valid config.php and leave the rest as it was. You should use the same version of CMSMS as you where currently running for that.

Did you make any changes to any other files, like .htaccess?

Hope this can help you

Best
Nils
Last edited by nhaack on Sat Oct 25, 2008 6:22 pm, edited 1 time in total.
musashi39
New Member
New Member
Posts: 7
Joined: Fri Jul 11, 2008 7:54 am

Re: I broke my site... Please help

Post by musashi39 »

nhaack wrote: Dude... you should take the config offline ASAP and change DB user and password! If I saw it correctly, it displays DB username and password! I do not know how your server is configured, but if external DB access is possible, you just put a big invitation sign online.

Best
Nils
changed password. Thanks!
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm

Re: I broke my site... Please help

Post by Augustas »

musashi39 wrote: What could I have done to make it stop parsing?

maybe was not you who made something, maybe something was changed on your server by administrators.

config.php file which has .php extension is shown as plain-text file. For me this is a sign that the web server does not know that .php files should be parsed through PHP parser, so the server shows it as text.
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
nhaack

Re: I broke my site... Please help

Post by nhaack »

mhh... just saw that the output begins with:

Code: Select all

#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
...
Actually, if it wouldn't parse the config, shouldn't it begin with:

Code: Select all

<?php

#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
...
Open your config with a text editor like notepad++ and check whether the file starts with a "<?php" if not, add that as the first line and see what happens...

Just a thought

Best
Nils
nhaack

Re: I broke my site... Please help

Post by nhaack »

To check if php is running after all, you could place a php file (e.g. test.php) containing this:

Code: Select all

<?php

echo 'hello world'

?>
into the root of your cmsms directory... if you open it with your browser you should only see "hello world". If that's the case PHP parsing is working and the root of evil is somewhere else... if you see the content of the PHP file, you got some php problem.

Best
Nils
musashi39
New Member
New Member
Posts: 7
Joined: Fri Jul 11, 2008 7:54 am

Re: I broke my site... Please help

Post by musashi39 »

nhaack wrote: mhh... just saw that the output begins with:

Code: Select all

#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
...
Actually, if it wouldn't parse the config, shouldn't it begin with:

Code: Select all

<?php

#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
...
Open your config with a text editor like notepad++ and check whether the file starts with a "<?php" if not, add that as the first line and see what happens...

Just a thought

Best
Nils
That worked! Thanks! I use the vi editor through putty and I keep thinking d is the page down command! I now have a config backup file....  ::)
Post Reply

Return to “CMSMS Core”