LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-19-2004, 08:21 AM   #1
enteal
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Red hat 8.0
Posts: 13

Rep: Reputation: 0
Exclamation PHP not loading on Apache, help!


Hi,

I am having a big problem.
I have a Red Hat 9, with Apache 2.0.40 and PHP 4.2.3 patched to gd2 library.
Apache was instaled when I instaled the RH9, I instaled the rpm Apache-devel-2 to install the php4.2.3.

I used this configuration to install PHP:
./configure --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-mysql --with-gd=/usr/local --with-png --with-zlib --with-exif
make
make install

This was instaled succefull.
I configured on httpd.conf the follow:
include *.conf

on php.conf:

LoadModule php4_module modules/libphp4.so


<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

DirectoryIndex index.php

AddType application/x-httpd-php .php .phtml


When I try load a .php archive via browser, it's downloading the archive not executing the script, so it's not recognizing the extension .php.

I checked the libphp4.so is there on modules folder.

Why the Apache 2 Instaled together the Red Hat 9 is not loading it?
I can't uninstall the apache on server, because i have service running there.
I just uninstaled PHP to install the patch to the gd2 Library.


Thx

Any help will be grate!

Enteal
 
Old 04-19-2004, 08:50 AM   #2
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Httpd.conf file to be modified with:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php phtml

These go in specific places, just look for other command like them in the
conf file and slot em in.

Also , check that modules/libphp4.so actually does exist.


Otherwise , you seem to be fine..
 
Old 04-19-2004, 09:03 AM   #3
enteal
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Red hat 8.0
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

Ok

Now it is loading well .

thx

enteal
 
Old 04-19-2004, 10:30 AM   #4
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
glad to help
 
  


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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Loading PHP into Apache dwpondscum Linux - Software 2 10-18-2003 04:56 PM

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

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