Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2013-01-27 09:14:30

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: config.php is missing or corrupt.

Hi

is there any additional caratctère in your config.php file (for ex a new line before <? or a white space?

Offline

#14 2013-01-27 10:12:58

phob
New Member
Registered: 2013-01-26
Posts: 9

Re: config.php is missing or corrupt.

ruud wrote:

Do the Apache (webserver) logs show an error about not being able to include the config.php file, when accessing the root of your domain in your browser?

I’ve checked, and there’s nothing obvious in the logs about that.

the permissions seem to be wrong there too. shouldn’t php files be -rw-r--r-- and folders drwxr-xr-x?

These must have been set by default. Might it help to change them?

is there any additional caratctère in your config.php file (for ex a new line before <? or a white space?

Nope.

thanks,
Paul

Last edited by phob (2013-01-27 10:13:34)

Offline

#15 2013-01-27 10:18:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: config.php is missing or corrupt.

phob wrote:

These must have been set by default. Might it help to change them?

I think that the permissions you have will make the site vulnerable but maybe someone with more knowledge on the subject should advice here.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#16 2013-01-27 11:13:10

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: config.php is missing or corrupt.

The files are owned by a private group (same as user), so those permissions are fine.
I’d like to log in on that server and do a bit of debugging. Phob, let me know if you want me to do that.

Offline

#17 2013-01-27 12:01:57

phob
New Member
Registered: 2013-01-26
Posts: 9

Re: config.php is missing or corrupt.

Ruud, thanks for the kind offer. You’re more than welcome, as long as you promise not to break it :)

Is there a way to private message through here, or shall I drop you an email?

Offline

#18 2013-01-27 12:03:48

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: config.php is missing or corrupt.

I’ll be a good boy :)
Send me an email (ruud at… the domain of my website)

Offline

#19 2013-01-27 12:09:45

phob
New Member
Registered: 2013-01-26
Posts: 9

Re: config.php is missing or corrupt.

Email sent.

Offline

#20 2013-01-27 12:44:24

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: config.php is missing or corrupt.

Problem found.
/index.php and /textpattern/index.php are the same files on your website. That’s not right. I’m surprised this didn’t show in the diagnostics (perhaps only in the full diagnostics).
Please re-upload the /index.php file (it should be around 2KB instead of 5KB).

I should probably add that the use of @ in the TXP code to hide the include error made it harder to find the error.

Last edited by ruud (2013-01-27 12:44:55)

Offline

#21 2013-01-27 12:51:46

phob
New Member
Registered: 2013-01-26
Posts: 9

Re: config.php is missing or corrupt.

Thanks Ruud – had a feeling it would be a rookie error. I replaced the index.php with the one in the zip (not quite sure how it ended up in the wrong place), and now it works fine.

Everyone’s help with this is much appreciated – cheers :)

Offline

Board footer

Powered by FluxBB