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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
08-26-2005, 05:19 AM
|
#1
|
Member
Registered: Aug 2005
Location: India
Posts: 33
Rep:
|
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
|
|
|
08-26-2005, 05:51 AM
|
#2
|
Member
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
|
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
|
|
|
08-26-2005, 07:59 AM
|
#3
|
Member
Registered: Aug 2005
Location: India
Posts: 33
Original Poster
Rep:
|
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
|
|
|
09-12-2005, 05:23 PM
|
#4
|
Member
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
|
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
|
|
|
12-17-2005, 05:04 AM
|
#5
|
Member
Registered: Dec 2005
Posts: 38
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|