LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-21-2004, 04:25 AM   #1
mgrapr
LQ Newbie
 
Registered: Jan 2004
Location: AURANGABAD
Posts: 2

Rep: Reputation: 0
Need help to configure Apache TO EXECUTE PHP SCRIPTS


I have installed Red Hat 9 on my machine. I am a new user. I do not know
about - how i should configure apache server to respond my php scripts
php also has been installed.

I have started the server by giving command on command line on root

httpd
nothing reply received on screen

then I have written a sript by using text editor and stored it in
\usr\http\web folder

then i have started mozila to execute the script, but it wont executed

how i will be able to execute it ?
Please explain me step by step
 
Old 01-21-2004, 08:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to execute the apache daemon with an option to use PHP, you will have an apache options variable set at some point in the configuration, to which you want to add " -DPHP4" or somethign very similar. on my gentoo system, this file is /etc/apache.d/apache.conf i believe.
 
Old 01-21-2004, 09:23 AM   #3
michib
LQ Newbie
 
Registered: Dec 2003
Location: italy
Distribution: suse 9.0
Posts: 4

Rep: Reputation: 0
Hi, did you try to check whether the httpd is already running? (open a browser window and type http://localhost).
If it's not running, you should do, as root:
$ /apache_install_path/bin/apachectl start

This works on SuSE... not sure about RH.

Then you can configure your linux box to automatically start Apache.



On the web there's plenty of documents detailing all necessary steps... Try googling a bit!

mic.
 
  


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
Parsing PHP Scripts using Apache in SuSe 9.3 (without a dedicated server) elliotfuller SUSE / openSUSE 7 07-27-2005 11:40 AM
Cant Get Apache to execute php pages nevarlen Linux - Newbie 1 02-17-2005 11:48 PM
Apache not running php scripts Seventh Linux - Newbie 3 01-08-2004 08:35 PM
Configure Apache and PHP kaustav Linux - General 11 05-31-2003 11:58 PM
Apache Config for users to execute CGI scripts CragStar Linux - General 9 01-20-2003 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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