Irish SEO,  Marketing & Webmaster Discussion

 
ThinkGeek - Cool Stuff for Geeks and Technophiles

Setting up a server

This is a discussion on Setting up a server within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; Hi guys, I to put a PC together from unused PCs in work (Celeron, 1GB RAM) so it's a pretty ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-02-2007, 11:52 AM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Exclamation Setting up a server

Hi guys,
I to put a PC together from unused PCs in work (Celeron, 1GB RAM) so it's a pretty good get and I'm planning to set up an FTP/HTTP/Subversion server to organise my stuff.

I've got Ubuntu installed with Apache,Mysql, PHP and they are working.
The problem is I don't quite understand how I should set up the permissions.
Maybe Blacknight or someone like that can give me a hand here:
I have the software installed and working (FTP/Apache) but I can't create files with PHP or do any write operations in FTP.
What permissions/user groups etc. should I set up so I can login as a user who isn't root but that can upload files and manipulate stuff like normal hosting?

Thanks,
David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 21-02-2007, 12:16 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,265
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

David

If you want to run a test environment you'd need to be copying files into the web root. The permissions on the directory would need to be chmod 777 in order for it to be world writeable

If you can let me know what your directory layout is it would be easier for me to advise you

Michele
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 21-02-2007, 12:26 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

Thanks Blacknight,
at the moment I have the standard Apache install so my web root is /var/www and there is the default folder apache2-default/ in there.

Do I create a group/user which the Apache/FTP uses which is allowed write?
I can't/don't want to be logging in as root, and I don't think that should be necessary but at the moment all the folders such as FTP/Web are owned by root.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 21-02-2007, 12:38 PM
blacknight's Avatar
Web Slave
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,265
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

You can ignore apache2-default and comment out the reference to it in the /etc/apache2/sites-enable/default00 file (or whatever it's called)

If you create a directory like:
Code:
sudo mkdir /var/www/html/davidtest;chmod -R 777 /var/www/html/davidtest
then you won't need to worry about users' permissions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 21-02-2007, 02:00 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

Cheers,
I eventually got pureFtpd working because proftpd/vsftpd decide not to work.
With chmod 777 the directory is now writeable via FTP and PHP

It's great when you get it working - now I have the machine sitting there with only power and ethernet and I can RDP/Putty or FTP into it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
server, setting

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Script Installation, Server Administration bizhat Marketplace Offers 2 10-03-2008 11:29 AM
setting up web server tutorials georgiecasey Server / Technical Administration Tips and Queries 3 17-02-2007 06:23 PM
Delete Or Redirect Files From Server? Peter McC Webmaster Discussion 4 14-02-2007 12:32 PM
Server security richardo Webmaster Discussion 0 20-02-2006 05:07 PM
Setting up a site paulocon Google Adsense 2 17-02-2006 08:53 PM


All times are GMT +1. The time now is 08:59 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0