View Full Version : Slackware: http/ftp server setup
ok, i am a complete and utter n00b with linuix, this is my first shot at it. i consider myself reasonably good with windows however and have successfully (although not hard) setup both http and ftp servers in win98, 2k & xp... but, i am completly stuck as to where to begin with linuix (slackware 9.0)
i have it currently going and was hopping i could set it up using KDE (didnt like gnome) but i dont know where to begin, i installed apache and proftpd packages but dont know where to look for them or set them up?
any help greatly appreciated, im still getting me head around this idea of mounting :D
and yes, ive tried googling and reading the help files to no avail... just a starting point would be great! :)
varkk
03-08-2003, 09:08 PM
To find apache first of all make sure your locate database is up to date (run updatdb as root to make sure, this is done automatically on a periodic basis, but just to be sure...) then type locate apache, but what is probably more useful is that the apache executable is httpd, try typing man httpd for the apache manual page, or even try running httpd as root, then point your browser to http://localhost/ this will bring up the apache welcome page with links to documentation etc, well it will if it configured itself properly when you installed it. This will tell you more about what you need to know about setting up the rest of the server.
[edit] Also for the ftpserver I use very secure FTP (vsftpd) not to sure on setting it up as RH9 did it all for me :D
hey, thanks for the reply!
the updatedb returned:
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
and http://localhost didnt work either BUT, running httpd allowed http://localhost to work! which is a start, thanks :)
any idea where the wwwroot is by default?
varkk
03-08-2003, 11:42 PM
Originally posted by jeef
and http://localhost didnt work either BUT, running httpd allowed http://localhost to work! which is a start, thanks :)
any idea where the wwwroot is by default?
Yeah, you need apache running on localhost to serve the pages...
I think the default is /var/www Well that is what mine is telling me
Hooney
04-08-2003, 09:49 AM
updatedb has to be run as root. I think thats why your getting errors.
As for your wwwroot when you get updatedb to work try searching for httpd.conf. Most distros have it somewhere in the etc directory where all your configs are kept. Look for wwwroot in there usually it is in /var/www like varkk said.
thanks for the replies! :)
i found /var/www and under that was /htdocs which i assumed was where i need to put my index.html, so i copied that folder and made my own htdocs, put an index.html in but localhost still loaded the "default" page... i did that this morning so ill have a good read thru those docs 2nite :)
then i need to figure out how to setup the network properly... im using a router and using its dhcp server... so my linuix has working internet but in my dhcp list it says that the name is "UNKNOWN" im guessing thats a default?
i setup the VS which has worked perfect for xp, but not working with linuix...
anyway, cheers thus far :)
Valium
05-08-2003, 11:10 AM
we had a couple of labs on setting up proftp and apache on slackware virtual machines.
you can check out the lab sheets here (http://www.telecom.otago.ac.nz/tele301/labs/TELE301_Lab16_-_FTP_and_WWW.pdf)
hope that helped a bit. you can ignore most of it, alot of that is just starting the UML.
wow thanks, ill have a read of that 2nite! :)
well, so far ive got apache running and figured out how to get php going as well
i also managed to get proftp at least starting and semi editing the .conf
also found that adding users to linux IS adding users to the ftp service...
so im getting somewhere :D
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.