RE: [Phpgedview-talk] Changing permissions
Brought to you by:
canajun2eh,
yalnifj
From: John F. <Joh...@by...> - 2004-05-22 14:28:09
|
HI Paul, =20 1) Whether you need to change permissions or not depends on how the = users and groups are setup on your webserver. When Apache and PHP run = the PHP scripts, they run as a user on the system. If the PHP user is = the owner of config.php then the "-rw-r-r" permissions are sufficient. = if the PHP user is in the same group as the file then 664 or "-rw-rw-r" = would be sufficient. If the PHP user is not in the owning group of the = file, then you have to set permissions to 666 or 777 or "-rw-rw-rw". So = the answer is that it depends on your system. When you start PhpGedView = it will tell you if it can write to the config.php file or not. If not = then you will need to set more liberal permissions. =20 2) phpBB is a buletin board program and I have no idea why that would be = of any help in changing permissions. =20 Most FTP programs have a way inside of them to set permissions. The = command is usually called chmod and takes a series of numbers which are = a binary representation of the permissions to be set. So usually you = would run a command like "chmod 777 config.php" =20 Most hosts also have some sort of control panel where you can change = permissions. =20 You can also put the following code in a PHP file that you can try to = run to set permissions. Many hosts also disable the chmod function in = PHP so the file may not work, but it is worth a try. Just paste the = code between the ---- into a new text file called setpermissions.php. = Then upload the file to your server and point your browser to it. =20 --John =20 --------------- Start of setpermissions.php <?php chmod("./config.php", 0777); chmod("./index", 0777); print "Permissions changed"; ?> ----------------- end of setpermissions.php ________________________________ From: php...@li... on behalf of Paul = Ramshaw Sent: Fri 5/21/2004 3:58 PM To: PGV help list Subject: [Phpgedview-talk] Changing permissions 1) The first question is whether I really need to change permissions. = The permissions for the index folder are currently: "drwxr-xr-x". The = permissions for config.php are currently: "-rw-r-r". Are those the = correct settings, or do I need to change them? =20 2) I have an economy-plan website at GoDaddy.com. Their help people = were pretty vague on how to change permissions on files or folders = (except to urge me to upgrade to their Deluxe plan!). The only = suggestion they had was to download the phpBB program from = www.phpBB.com. If I have to try to change the permissions, do you think = phpBB would help? =20 Paul Ramshaw |