Linux - SoftwareThis 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.
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.
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.
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.
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.
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.
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!
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.