LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2003, 12:42 PM   #1
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Rep: Reputation: 15
Installing and Configuring apache and php


oookay, so, ive read the readme's for everything, ive configured and make'd everything, for apache. Im aware that apache comes with RedHat 9, but, since i like doing things myself, and it was out of date, ive installed the newest sub 2.xx version.

So, im a little confused as to how or whether i should get it to start with xinetd, whether its worth the effort or whether its a good idea, and how else would i make the server start if it was in standalone mode? the Documentation wasnt too clear about that.

Also, when i do httpd -k start nothing seems to happen. i get no output, and it looks like its not running (refusing connection attempts to localhost)

RedHat 9.

Fishy
 
Old 10-10-2003, 12:47 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you are looking for a complete tutorial - I tend to use:
http://lamps.efactory.de/e-index.shtml

To start apache you need to run:
apachectl start

You may need to use the full path to the apachectl script.
 
Old 10-10-2003, 01:50 PM   #3
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
ahh, fantastic tutorial! Im going through all the commands, one by one.. unforuntatley, im wating for a "make test" to finish make'ing but its going to fail because i havnt make'ed it yet!
 
Old 10-10-2003, 05:59 PM   #4
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
I get this when i try to ./configure apache the second time around
configure: error: libjpeg.(a|so) not found.
what on earth does this mean?
BTW this is after adding the mysql, php and other crap to it
 
Old 10-11-2003, 06:19 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can get libjpeg from:
http://www.ijg.org/
or
http://fr.rpmfind.net/linux/rpm2html...redhat-9&arch=
 
Old 10-11-2003, 07:27 AM   #6
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
oh lord ....
now i compile it without gd, and the thing refuses to start..

[Thu Oct 9 13:27:33 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/etc/rc.d/init.d/httpd start: httpd could not be started
 
Old 10-11-2003, 07:58 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try running it in debud mode:
/path/to/httpd -X -e DEBUG

This may give you more of a clue.
 
Old 10-11-2003, 08:24 AM   #8
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
it doesnt recognise those commands it just brings up a help screen with all the commands i can do
 
Old 10-11-2003, 08:43 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Are you sure you typed it correctly? Rember to change "/path/to/httpd" to the actual path to httpd.
 
Old 10-11-2003, 09:09 AM   #10
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
yep, im certain. its going to the path where i compiled it.
surley if it was the wrong path id just get an error from bash?
hmm, it seems that whenever i edit the httpd.conf file, it dies on me, yet when i do a configcheck or whatever it is, it says the syntax is fine
 
Old 10-11-2003, 09:16 AM   #11
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
okay, so now ive used the path to the binary in the apache folder rather than the one in init.d and that still says "-e is and invalid option" and so it still wont run.
 
Old 10-11-2003, 09:21 AM   #12
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
Miscellaneous and Configuration

Apache

In order to make Apache start with mod_ssl automatically, the start script has to be modified. It is to be found at /etc/rc.d/init.d/httpd. There, you have to search for the "start)" line and to modify it as follows:

start)
if [ $RUNNING -eq 1 ]; then
echo "$0 $ARG: httpd (pid $PID) already running"
continue
fi
#original:
#if $HTTPD ; then
#modified, -DSSL inserted:
if $HTTPD -DSSL; then
echo "$0 $ARG: httpd started"
else
echo "$0 $ARG: httpd could not be started"
ERROR=3
fi
;;

I think this is where my problem lies. it wont start SSL for some reason.. why might that be?
 
Old 10-11-2003, 12:45 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Have you installed ssl?

Have you pointed the file in init.d to the actual executeable httpd?

It is the executeable httpd you need to run with the options I specified.
 
Old 10-11-2003, 12:50 PM   #14
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
yep, i tried running the executable (in /usr/local/apache or whatever it was) and it didnt recognise e. and also, when i tried to get the status it keeps saying lynx isnt installed :/
 
Old 10-11-2003, 01:02 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry but what are you doing with lynx?

What version of apache do you have?
 
  


Reply



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
configuring php for apache PennyroyalFrog Linux - Newbie 3 02-07-2008 11:58 PM
configuring apache, php mjl3434 Linux - Software 4 09-22-2005 06:49 PM
Configuring PHP with Apache. LinuxStart Linux - Software 6 07-11-2005 09:15 AM
Configuring php on apache Dakkar Linux - Software 5 06-01-2004 09:26 AM
Configuring Apache and PHP... causticmtl Slackware 2 07-06-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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