By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

file saving problem...

P: n/a

Hi everyone,

I am using Fedora Core, version 6 as my development platform. My
problem is if i have to save my PHP files in /var/www/html/, i need to
log in as a root. As a normal user, the OS is not allowing me to save
the files in /var/www/html directory. Due to some restrictions, i
cannot always log in as a root. So is there is any other way i.e.
whether we can store the PHP files in some other directory etc...

Any suggestions ? Thank you in advance :)
Thushanthan.
Dec 26 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
th************@gmail.com said:
Hi everyone,

I am using Fedora Core, version 6 as my development platform. My
problem is if i have to save my PHP files in /var/www/html/, i need to
log in as a root. As a normal user, the OS is not allowing me to save
the files in /var/www/html directory. Due to some restrictions, i
cannot always log in as a root. So is there is any other way i.e.
whether we can store the PHP files in some other directory etc...

Any suggestions ? Thank you in advance :)
Thushanthan.
The files you need to save could be stored in a sub-directory, and then
you could set the permissions (CHMOD) the directory to allow write
access from the php page. I would not recommend setting that permission
level on your docroot (the html/ dir).

~A!
Dec 26 '07 #2

P: n/a
th************@gmail.com wrote:
Hi everyone,

I am using Fedora Core, version 6 as my development platform. My
problem is if i have to save my PHP files in /var/www/html/, i need to
log in as a root. As a normal user, the OS is not allowing me to save
the files in /var/www/html directory. Due to some restrictions, i
cannot always log in as a root. So is there is any other way i.e.
whether we can store the PHP files in some other directory etc...

Any suggestions ? Thank you in advance :)
Thushanthan.
Learn about Linux administration then set the appropriate owner/group
and permissions for the directory.

P.S. This has nothing to do with PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.