Click to See Complete Forum and Search --> : ftp access using user apache


vampylestat
02-23-2003, 10:10 PM
What I wanna do:

login to proftpd with username "apache", to upload or modify my http files for my web server.

I wanna use the username "apache", because its home dir is set to /var/www.

My problem:

I can't login to my ftp server using "apache" for username. I'm not sure what the password is for apache, I've read threads saying it doesn't have a password.

I need a solution. I'm not sure if logging in with apache is the right thing to do, or if there's a better way of doing things?

blizz
02-24-2003, 03:18 PM
Hi,

You don't have to serve your pages from /var/www

Maybe try adding a new user for yourself in your home directory or something similar. Then simply edit your httpd.conf file to add your own VirtualHost container with your own DocumentRoot path to where your web pages are stored.

ex:
<VirtualHost 10.0.0.100>
DocumentRoot /home/yourname/www/
ServerName yourdomain.com
</VirtualHost>

Else you could chown of /var/www to your own username and password (other then root)

good luck