Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-08-2005, 05:54 AM   #1
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Rep: Reputation: 31
Website setup trouble

I'm trying to setup my server to run php-nuke. The install itself is not the problem more the 'howto set permissions and how to do it right'
My server is next to the client I use so (for now) I don't need ftp to upload files, I can do with fish (or putty) to get them to /var/www/html on the server.
Problem is that I can only upload files to /var/www/... if I'm logged into the server as root. I guess that can't be the right way, so I've setup a new user on the server simply called 'web' (bin/bash). If I log into the server as 'web' I get no write acces to /var/www/ How do I set this up or is it normal to do these tasks as root?
If setting up FTP (server can run FTP-server no prob) is an easier way, please tell me. In the near future more people will have to get acces to /var/www/ for uploading stuff so I need to get this down as well.

Any help or explanation on how to do this right on a linux server is very welcome since I'm clueless and just can't find it on google!


Last edited by powadha; 02-08-2005 at 06:38 AM.
Old 02-08-2005, 10:22 AM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
For security reasons, the files in /var/www can only be written to by root. What I do is just upload the files I need with my regular user account to /home/user and then log in as root and move the files from /home/user to /var/www/html.

It takes a little more work but I have root logins disabled via ssh. Another thing you could do, which I'm not sure how appropriate it is, is to change the group that /var/www/* belongs to. Then add your normal user account to that group so you have write access to the directories.
Old 02-08-2005, 12:01 PM   #3
Registered: Nov 2003
Location: Zwolle
Distribution: Arch
Posts: 651

Original Poster
Rep: Reputation: 31
Thanx for clearing that up!
Whenever the time comes that other people upload stuff to the server using ftp, I need to finally copy it to /var/www/ I guess.
Well anyway I now know that using root to get the stuff installed is the right way.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP-Nuke? thorn168 Linux - Software 2 06-03-2005 11:57 AM
php-nuke blank admin.php zuessh Linux - Software 18 05-03-2005 08:47 PM
Php Nuke!!! FearPasion710 Linux - General 3 10-03-2003 04:43 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM
php nuke GT I.N.C Linux - General 2 08-08-2002 03:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:17 AM.

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