Click to See Complete Forum and Search --> : help, cant save .php file in /www


Anon
11-13-2000, 10:57 PM
I get a "you dont have permission" message...where do I set permissions? in ini file or conf, and how?

Anon
11-14-2000, 04:01 AM
what "/www" means ???
u should put the php in cgi-bin ( or some directory like that ) ....

Anon
11-14-2000, 09:19 AM
What is the exact error message?

You may get permission problems if you are trying to write a file to a directory that is not writable for the user that runs your php script.
(On unix, the webserver usually runs your php script. If you want to write in your home directory, you need to give the webserver-user access to your directory)

Anon
11-14-2000, 12:29 PM
why in cgi? why not put in /var/www/html dir like the other pages?

Anon
11-14-2000, 12:33 PM
i am the developer, and i'm trying to save .php files to the /var/www/html dir like the index.html file that was created automatically. I get a message stating that I dont have permission to write file to that dir(or something along that line). Where do I change permissions?

Anon
11-15-2000, 03:56 AM
No offence, but if you are developing on a unix system and you don't know how to change file permissions, you might want to do a "unix for beginners" course or something. That would answer a lot of your questions.

On a unix system, you can change file and directory permissions using the "chmod" command.
If you type "man chmod" you will get an explenation of how it works, probably much better than I can explain it.
Also, look at which user runs your scripts (which user runs the webserver if you are running your scripts through a webserver) and which user owns the directory in where you want to write in.