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 ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| 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 |
| |||||
| 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
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| 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. |
| |||||
| 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
__________________ Hosting & Domains|Plesk Vps Hosting|Blog Tips|Films.ie|Gadgets|Monetisation Tips|Movie Chat Energise your forum! Click here for info |
| |||||
| 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. |
| Tags |
| server, setting |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| 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 |