phpBB installation: Writing to config.php - read only?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
securitynut
Registered User
Posts: 43
Joined: Tue Jan 16, 2007 7:20 am

phpBB installation: Writing to config.php - read only?

Post by securitynut » Sun Oct 07, 2007 9:14 am

Hi.

I was just wondering how phpBB manages to get around file write permissions in shared hosts when writing DB information to config.php.

I see there is a @umask(0111); in there, but in my own code that never seems to work. Could someone enlighten me how this circumvents write restrictions when safe_mode is enabled (for example)?

Thanks!

User avatar
jwunderly
Registered User
Posts: 5740
Joined: Sun Mar 30, 2003 2:18 pm
Location: Easton, PA (in the groove)

Re: phpBB installation: Writing to config.php - read only?

Post by jwunderly » Sun Oct 07, 2007 12:00 pm

config.php has to CHMOD'd to 666 before the install and then reset to 644 afterwords. that is the only time that
it written to.
John (A cranky old man. "Looking for an echo ...")
using any control-panel install/update is like shooting yourself in the foot. It won't kill you, but you're really going to hobble around until it heals.
Using the wrong tools (Front Page, DreamWeaver) gives the same results
Do not PM me for Support!

Locked

Return to “2.0.x Support Forum”