LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2005, 06:11 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
help with slackware lamp plz?


i'm trying to make a lamp server on my old 333mhz comp using slackware 10 and the latest versions of apache, mysql, and php, but i'm having a few basic problems/problems. can anybody help me with these?

1. most of the lamp howtos and tutorials i have seen say that i need to install php as some kind of module of apache, does this mean i dont have to install php on my system, i just have to have the php module installed in apache?

2. most of the lamp howtos reccomend installing everything from source, but this is a pretty old machine and it took me like 5 hours just to compile mysql. i've downloaded .tgz files off of www.slackware.com/pb of php, apache, and mysql, but what about the php module that apache needs?

3. what if i did compile and install everything from source? how would i setup my startup script? the tgz files put rc.httpd and rc.mysql in my rc.d folder, but how would i get my own rc.httpd script if i compiled and installed apache from the source on apache.com?
 
Old 03-21-2005, 07:43 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
1) When you install PHP, you are actually installing the Apache module (along with the PHP binary itself if you select it, so you can run PHP outside of Apache). If you compile from source, you can run PHP as a CGI binary which has both advantages and disadvantages. Basically, to answer your question, when you talk of installing PHP, you're actually talking about installing the Apache module.

2) The Slackware package will have the Apache module. I tend to compile from source though, so you may need to do some extra configurtion to have Apache load the module. You don't have to compile from source, but it gives the most flexibility.

3) You would write those files yourself; it's not hard. Just a line that starts the appopriate daemon. Remember to make sure you're startup scripts are called from rc.M or one of the rc.inet scripts (as appropriate).
 
Old 03-21-2005, 08:38 PM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
ok, i've got all that installed then, but what do i need to do to configure it? just add "AddType application/x-httpd-php .php" and "AddType application/x-httpd-php-source .phps"? if i do this and try to access a php page on my server it tries to download the actual php file instead of serving it to me. do i need to uncomment "Include /etc/apache/mod_php.conf"? some of the tuts i've seen say to do this but my httpd wont start if i have it uncommented.
bump
 
Old 03-22-2005, 03:11 PM   #4
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
anybody out there? bump
 
Old 05-10-2005, 12:59 AM   #5
mandrakewanta
LQ Newbie
 
Registered: May 2004
Posts: 22

Rep: Reputation: 15
This is a common question that I've been seeking help for also. If anyone has something to add please do so. or is this forum dead?
 
Old 05-11-2005, 12:58 AM   #6
Massif
LQ Newbie
 
Registered: May 2005
Distribution: Trustix
Posts: 10

Rep: Reputation: 0
I'm willing to help, but I need more info.

Did you add this line:

LoadModule php4_module libexec/libphp4.so

to your httpd.conf?

also if you are getting an error message, what does it day?

Also, check your error_log file. Mine is located in /var/log/httpd/ but I'm not sure if that's the case on all distros. The error_log will usually tell you what's going wrong when you try to access something that isn't there.
 
Old 06-07-2005, 07:13 PM   #7
rhythmking
Member
 
Registered: Dec 2003
Posts: 54

Rep: Reputation: 15
I just saw this 35.00 book on getting LAMP working.
Seemd to me a bit funny considering all I had to do was install Slackware 10, full install,
uncomment 1 line in the /etc/apache/httpd.conf for PHP and chmod 755 /etc/rc.d/rc.mysqld.
I might have already done something else to apache like inabling cgi in the httpd.conf file.
All this from a Linux distro said to be Not full featured.
Slackware rules, Fluxbox rocks!

Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together
Paperback
Author: Eric Rosebrock, Eric Filson, Eric Rosebrock
Publisher: Sybex Inc
Release Date: 22 July, 2004
ISBN: 0782143377
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server project "LAMP" and Slackware TranceOne Linux - General 1 11-11-2005 04:16 AM
LAMP on Slackware;Use pkgtool or compile? Swift&Smart Slackware 2 03-20-2005 10:45 AM
Problems in Slackware 10, plz help! Jengo Linux - Newbie 12 08-23-2004 07:28 PM
HELP PLZ: slackware 10 nic not working flytiger Slackware 22 08-23-2004 12:01 AM
setting up a LAMP server in Slackware 10.0 yolopollo Slackware 2 07-23-2004 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:31 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