LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-03-2004, 08:25 PM   #1
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Rep: Reputation: 15
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.
 
Old 01-03-2004, 08:32 PM   #2
TheDarkLord
LQ Newbie
 
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18

Rep: Reputation: 0
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.
 
Old 01-03-2004, 08:34 PM   #3
TheDarkLord
LQ Newbie
 
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18

Rep: Reputation: 0
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.
 
Old 01-03-2004, 08:54 PM   #4
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Original Poster
Rep: Reputation: 15
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.
 
Old 01-03-2004, 08:58 PM   #5
TheDarkLord
LQ Newbie
 
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18

Rep: Reputation: 0
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.
 
Old 01-03-2004, 09:40 PM   #6
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Original Poster
Rep: Reputation: 15
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!
 
Old 01-03-2004, 09:44 PM   #7
TheDarkLord
LQ Newbie
 
Registered: Jan 2004
Location: Oslo, Norway
Distribution: my own hybrid o.s.
Posts: 18

Rep: Reputation: 0
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?
 
Old 01-03-2004, 10:04 PM   #8
wenberg
Member
 
Registered: Jan 2004
Location: Minnesota, USA
Distribution: Slackware 10, Debian Sarge
Posts: 91

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache with PHP in Slackware 9.0 traveldanimal Slackware 3 09-28-2004 12:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-03-2004 11:49 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 12:44 PM
slackware-current apache/php problem hjles Slackware 3 03-10-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:17 AM.

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