LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-24-2010, 07:47 AM   #1
mukeshk.nist
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Smile how to add a php file in /var/www/html folder


hi all,
i am newbie to fedora and php,fedora test page is displaying when i give the ip address now i want to add a .php file in /var/www/html folder but it says permission denied when i want to save .php file in this folder.
can any body help me
mukesh
 
Old 01-24-2010, 08:02 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
hi mukesh,
have you got this error while running user account ?
if yes, change directory permissions to all.
for example
Code:
$chmod 777 -R /var/www
gives all permissions to every user.

you can give your own permissions to that folder based on your requirement.
if you use 777, every one can modify. good luck.
 
Old 01-24-2010, 11:20 PM   #3
mukeshk.nist
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Smile thanks`

Quote:
Originally Posted by raju.mopidevi View Post
hi mukesh,
have you got this error while running user account ?
if yes, change directory permissions to all.
for example
Code:
$chmod 777 -R /var/www
gives all permissions to every user.

you can give your own permissions to that folder based on your requirement.
if you use 777, every one can modify. good luck.
hi sir,
the scene is this httpd apache server is configured by root user and i am accessing the the server from another user it shows default fedora test page in place of that i want to display my own php webpage when i tried to copy php page in /var/www/html/ folder it shows permission denied and through root user i added the page in the same folder,no error but it doesn't display the added php page.what to do.
thanks in advance
mukesh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 folder 'var/www' is not shareable; can not edit the index.html file mcanallyd Linux - Newbie 2 06-18-2009 05:46 PM
Forbidden with VirtualHost folder other than /var/www/html netweblogic Linux - Server 3 08-28-2008 07:46 AM
Permission problem pasting content to the var/www/html folder bluetxxth Fedora 2 10-01-2007 10:53 AM
php move_uploaded_file() not working in /var/www/html jon23d Linux - Software 1 06-07-2006 10:25 AM
Whenever I create a file in /var/www/html/, it is at permission 600 (forbidden) Josh1billion Linux - Software 4 03-18-2006 10:24 PM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration