944,020 Members | Top Members by Rank

Ad:
Oct 31st, 2009
0

Lamp

Expand Post »
I installed lamp.But i can't delete my index.html page and i can't save any page in that folder.I am using ubuntu 9.10.
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
web3 is offline Offline
75 posts
since Oct 2009
Nov 2nd, 2009
0
Re: Lamp
Check the file permissions to make sure you have write permissions on the files and/or directories.
cd <directory> //go to home directory of the lamp server //
#find ./ -name '*' -exec chmod 777 {} ';'
#rm  <file> //delete the file you want //
You are now ready to write your files. Otherwise you must be superuser to do what you want to do.
Last edited by SecurExpert; Nov 2nd, 2009 at 2:31 am.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
SecurExpert is offline Offline
24 posts
since Sep 2009
Nov 5th, 2009
0
Re: Lamp
Since you are using ubuntu (which is debian), it is good to remember to precede any action that requires root privileges by sudo
To delete the file, simply invoke
sudo rm <path_to_file_to_rm>
You can as well change the server persmission to be writable by you by doing
sudo chown -R <your_name> <path_to_lamp_server_folder>
In a real server, changing server permission to a regular user other than root is not advisable!

Happy Times!
Reputation Points: 11
Solved Threads: 18
Junior Poster
sureronald is offline Offline
139 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: cron job not running for big time intervals
Next Thread in Linux Applications and Software Forum Timeline: please suggest good payment processor for credit cards





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC