LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-26-2005, 05:19 AM   #1
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
PHP configuration with apache web server


Hi ,

I Have installed PHP 4.4.0 on my redhat linux 9 PC..
But when I try to run any php file with Apache server .. instead executing the script it open it ......

I changed httpd.conf and added "AddType application/x-httpd-php .php"

But Still it is not executing the script..

Please help me...


Thanks,
Vikram
 
Old 08-26-2005, 05:51 AM   #2
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hi,

I think I'm right in saying that RedHat 9 uses apache 2.0.40 by default?

Have you installed PHP from an rpm? Have the correct configuration lines been added to the httpd.conf file tp load the php module? Or have you set all this up using another method?

Cheers,

Steve
 
Old 08-26-2005, 07:59 AM   #3
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Original Poster
Rep: Reputation: 15
Hi Steve,

It is true.. But i haven't installed the defauld apache .. I have installed it using source.
and also installed PHP using source(4.0).....


Thanks,
Vikram
 
Old 09-12-2005, 05:23 PM   #4
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hmm, I haven't installed php and apache 2.0.40 together from source, although I assume you used a more up to date version of apache as it was from source?

If I'm building apache from source, and I want php too, I normally patch php into the apache source and recompile apache. I'm not sure this is possible with apache2.0.x API.

Did you use these instructions? Have you made the changes to the httpd.conf file to load the modules as well as the AddType changes you've already made?

Cheers,

Steve
 
Old 12-17-2005, 05:04 AM   #5
hadiseh
Member
 
Registered: Dec 2005
Posts: 38

Rep: Reputation: 15
i suggeste u use php-5.0.4 and apache-2.1.4 together.they are easy to install without any prob.u can configure php5 with this source :

'./configure' '--enable-experimental-zts' '--with-curl' '--with-pear' '--enable-mbstring' '--with-calendar=shared' '--enable-memory-limit' '--enable-magic-quotes' '--enable-wddx' '--with-mhash' '--with-kerberos' '--with-libxml-dir=/usr' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-freetype' '--with-ttf' '--enable-ftp' '--enable-bcmath' '--disable-debug' '--with-gd' '--with-png' '--with-zlib' '--enable-yp' '--with-mysql'

and u can be sure that every thing will be good.
good luck
 
  


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
Dreamweaver, PHP, MySQL, and Apache Web server bentman78 Linux - Software 18 02-06-2005 06:09 AM
Apache PHP configuration varunbihani Linux - Newbie 2 01-18-2005 03:49 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
Apache Web Server w/PHP & Perl Mark Grinstead Linux - Software 2 07-18-2003 08:23 AM
Installing PHP and MySQL w/ Apache web server dcrealm47 Linux - Newbie 5 02-26-2003 12:21 PM

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

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