LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-06-2006, 02:03 PM   #1
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Rep: Reputation: 15
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!
 
Old 11-06-2006, 02:30 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
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.
Old 11-07-2006, 12:52 PM   #3
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
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 12:54 PM.
 
Old 11-07-2006, 02:30 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
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
 
Old 11-07-2006, 06:09 PM   #5
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
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!
 
Old 11-07-2006, 06:33 PM   #6
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
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
 
Old 11-07-2006, 06:51 PM   #7
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
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.
 
Old 11-07-2006, 07:53 PM   #8
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
How do I configure DNS service?
 
Old 11-07-2006, 08:36 PM   #9
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Rep: Reputation: 15
Try this website: http://www.dslwebserver.com/

It helped me a lot when I was just starting out.
 
Old 11-07-2006, 09:10 PM   #10
jcbparry
Member
 
Registered: Sep 2006
Distribution: Slackware 12, Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
Thank you ryanoa!
I will try that.
 
Old 11-08-2006, 11:19 AM   #11
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
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.
 
Old 02-18-2007, 06:53 PM   #12
slee97070
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Question 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?
 
Old 02-19-2007, 03:47 PM   #13
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
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
 
  


Reply

Tags
apache, configuration, mysql, php, server, slackware, web



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
Need help setting up a Slackware web server with 10.2 fender Slackware 8 01-07-2006 03:08 PM
Setting up a Web Server gtgoku Linux - Networking 3 03-14-2005 11:34 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Setting up a Web Development Server w/ Slackware Lohan Slackware 5 01-25-2004 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration