Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-06-2006, 03:03 PM
|
#1
|
Member
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38
Rep:
|
Need Help with Setting up a Web Server on Slackware 11
Hi!
I want to configure a web server on Slackware 11. I have the full installation and soon will have a domain name, but I cannot find out how to configure Apache, PHP and MySql and possible others so that I can use it as a web server and a normal computer. I am open to new software suggestions other than Apache and new ideas.
Please Help!
|
|
|
11-06-2006, 03:30 PM
|
#2
|
Member
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254
Rep:
|
It takes a lot of explanation, but first, here's how to make Apache+PHP work:
Open a file /etc/apache/httpd.conf, and near the end, you'll find this line:
#Include /etc/apache/mod_php.conf
Uncomment it (remove #).
Then do this:
chmod a+x /etc/rc.d/rc.httpd
/etc/rc.d/rc.httpd start
Now you have Apache+PHP running. Your web root is in /var/www.
As for MySQL, do this:
mysql_install_db
chown -R mysql:mysql /var/lib/mysql
chmod a+x /etc/rc.d/rc.mysql
/etc/rc.d/rc.mysql start
Now database is running to.
|
|
1 members found this post helpful.
|
11-07-2006, 01:52 PM
|
#3
|
Member
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38
Original Poster
Rep:
|
Thanks kotnik!
I will try that. But I need a little more help than that. I need to know how to have a domain name point to that IP. It also needs to act as a FTP server too. Please help me more! Also I was wondering how I would go along changing "var/www" to say "home/name/webname".
Last edited by jcbparry; 11-07-2006 at 01:54 PM.
|
|
|
11-07-2006, 03:30 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Quote:
Originally Posted by jcbparry
Thanks kotnik!
I will try that. But I need a little more help than that. I need to know how to have a domain name point to that IP. It also needs to act as a FTP server too. Please help me more! Also I was wondering how I would go along changing "var/www" to say "home/name/webname".
|
The two main places to look:
/etc/apache/httpd.conf (tons of info in there)
And www.shilo.is-a-geek.com
|
|
|
11-07-2006, 07:09 PM
|
#5
|
Member
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38
Original Poster
Rep:
|
Thanks cwwilson721!
I will try that! But I still need to know how to point a DNS to my IP and how to setup a FTP server. Sorry for complaining so much! :P Thanks guys!
|
|
|
11-07-2006, 07:33 PM
|
#6
|
Member
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 180
Rep:
|
Quote:
Originally Posted by jcbparry
Thanks cwwilson721!
[...] need to know how to point a DNS to my IP and how to setup a FTP server. Sorry for complaining so much! :P Thanks guys!
|
Just for the record: this is not a slackware issue.
Go to http://www.dyndns.com and setup a personal account. Then configure DNS service.
I use ddclient to update my ip in dyndns..
Generally, to start a service (like ftp) you simply start the appropriate deamon like this:
/etc/rc.d/rc.myftpserver start
|
|
|
11-07-2006, 07:51 PM
|
#7
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
Quote:
Originally Posted by ludist
Generally, to start a service (like ftp) you simply start the appropriate deamon like this:
/etc/rc.d/rc.myftpserver start
|
Generally, but not the FTP's case.
The FTP service is run through the inet daemon, which configuration file is /etc/inetd.conf. Just uncomment the line of the service that you would like to fire up, open the port in your firewall(s) if needed and restart inet with /etc/rc.d/rc.inetd restart
Slackware provides 2 backends for the FTP service, vsftpd and proftpd and each is configured separately and cannot run concurrently. I use proftpd because was the one that I reviewed while I was a university student but of course you can choose to use any that you like or prefer.
|
|
|
11-07-2006, 08:53 PM
|
#8
|
Member
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38
Original Poster
Rep:
|
How do I configure DNS service?
|
|
|
11-07-2006, 09:36 PM
|
#9
|
Member
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102
Rep:
|
Try this website: http://www.dslwebserver.com/
It helped me a lot when I was just starting out.
|
|
|
11-07-2006, 10:10 PM
|
#10
|
Member
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38
Original Poster
Rep:
|
Thank you ryanoa!
I will try that.
|
|
|
11-08-2006, 12:19 PM
|
#11
|
Member
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254
Rep:
|
After you setup dyndns (one that I use, you can select some other) here's how to use proftpd:
Slack is already preconfigured for it. Check in /etc/inetd.conf that following line is not commented:
ftp stream tcp nowait root /usr/sbin/tcpd proftpd
After that, every query on port 21 (which is ftp's port) will be answered.
ProFTPD keeps it's config in /etc/proftpd.conf, so you'd want to check it before using, but the defaults are sane. I configured proftpd to use MySQL for authenticitation and configured upload directory.
|
|
|
02-18-2007, 07:53 PM
|
#12
|
LQ Newbie
Registered: Feb 2007
Posts: 4
Rep:
|
How do you change from proftpd to vsftpd?
We want to switch from proftpd which was configured at first but want to go with vsftpd. How do we stop proftpd so vsftpd can run?
|
|
|
02-19-2007, 04:47 PM
|
#13
|
Member
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 180
Rep:
|
I don't use ftp server I _imagine_ like this:
edit /etc/inetd.conf (switch the proftpd with vsftpd)
restart inetd
/etc/rc.d/rc.inetd restart
|
|
|
All times are GMT -5. The time now is 03:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|