Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-03-2004, 08:25 PM
|
#1
|
|
Member
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91
Rep:
|
Apache/PHP Help on Slackware
Hi, I've recently installed Slackware and I'm still a complete newbie. I've recently got it to work as a router, but now my problem is ... how do I get Apache up and running? Apache and PHP are installed, but I want to know how to start it at boot and manually. I do lots of PHP for web development and I was hoping to have a Slack box running at home to test my pages on. After I can get Apache/PHP running, then I'll tackle MySQL.
|
|
|
|
01-03-2004, 08:32 PM
|
#2
|
|
LQ Newbie
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18
Rep:
|
You'll need to find where Apache is installed. It can be in a few different places. Nevertheless, once you locate Apache_dir, look for a bin directory. Inside that you should find "apachectl." You will also see "httpd" but it is better to use apachectl. In the bin directory you should run ./apachectl -k start. This will at least get Apache (the http daemon up and running). You can set up a script that will start this in /etc/rc.d, /etc/rc.d/init.d or at the very least (though, not always recommended) you can put a line in /etc/rc.local that calls for apachectl -k start.
|
|
|
|
01-03-2004, 08:34 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18
Rep:
|
Oh sorry, I forgot about the PHP. Look inside your PHP directory (if you haven't installed it yet) for INSTALL. It will show you a few lines that need to be put into your Apache configuration file (usually httpd.conf) to get it going with PHP support.
|
|
|
|
01-03-2004, 08:54 PM
|
#4
|
|
Member
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91
Original Poster
Rep:
|
Any ideas where the apache bin directory is?
whereis apache ... gives me ...
apache: /etc/apache /usr/include/apache
... doesn't seem to contain a /bin directory.
|
|
|
|
01-03-2004, 08:58 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18
Rep:
|
First of all, make sure it is not already running:
you can do this:
# ps -e | grep httpd
If you get nothing then Apache is not running. Look in /usr/local/apache. That is the most common place for it. You can also cheat and look for it with:
# whereis apachectl
or apache2 or apache
This command should yield a location for you quickly. Did you install this from a disk or did you build it from source? Hopefully, if you built it from source, you should be able to easily find where it was installed to.
|
|
|
|
01-03-2004, 09:40 PM
|
#6
|
|
Member
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91
Original Poster
Rep:
|
Found it at /usr/sbin. I installed apache/php by way of the Slackware install program. Thank you very much. Everything works fine. Now on to bigger and better things! 
|
|
|
|
01-03-2004, 09:44 PM
|
#7
|
|
LQ Newbie
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18
Rep:
|
So, are you pretty decent with PHP and such? I am just getting started with it. So far the only thing I've written is a sendmail script for name and email on a website. Is there anything that stands out that helped you out with it?
|
|
|
|
01-03-2004, 10:04 PM
|
#8
|
|
Member
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91
Original Poster
Rep:
|
PHP comes built in with a mail() function. You shouldn't have to write a function to use sendmail unless you specifically want to use a named server instead of the local mail() function.
http://us2.php.net/manual/en/ref.mail.php
... might help. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:13 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
|
|