I broke my site... Please help [solved]
I broke my site... Please help [solved]
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!
http://www.lppsr.org
Thanks!
Last edited by musashi39 on Sat Oct 25, 2008 6:57 pm, edited 1 time in total.
Re: I broke my site... Please help
Looks like your web server does not pass .php files through PHP parser.
I would suggest to contact support of your web hosting service.
I would suggest to contact support of your web hosting service.
Re: I broke my site... Please help
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
Best
Nils
Re: I broke my site... Please help
The site was working about two hours ago before I changed the config file. What could I have done to make it stop parsing?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.
Re: I broke my site... Please help
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
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.
Re: I broke my site... Please help
changed password. Thanks!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
Re: I broke my site... Please help
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.
Re: I broke my site... Please help
mhh... just saw that the output begins with:
Actually, if it wouldn't parse the config, shouldn't it begin with:
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
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
...
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
...
Just a thought
Best
Nils
Re: I broke my site... Please help
To check if php is running after all, you could place a php file (e.g. test.php) containing this:
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
Code: Select all
<?php
echo 'hello world'
?>
Best
Nils
Re: I broke my site... Please help
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....nhaack wrote: mhh... just saw that the output begins with:
Actually, if it wouldn't parse the config, shouldn't it begin 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 ...
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...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 ...
Just a thought
Best
Nils
