To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Install

Install Conversation regarding installation and upgrade of PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-16-2002, 04:25 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Apache 2.0.36/PHP 4.2.1 install problem

I followed a tutorial on installing Apache with MySQL and PHP. Apache works fine, but PHP scripts apparently won't execute. I have the following lines in my httpd.conf:

LoadModule php4_module /modules/libphp4.so

AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps

AddModule mod_php4.c

<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php"
php_flag safe_mode on
</IfModule>


If I make a .php file and attempt <? phpinfo(); ?> , it just prints the tag rather than executing it.

Any suggestions?
Anon is offline   Reply With Quote
Old 06-16-2002, 06:00 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Apache 2.0.36/PHP 4.2.1 install problem

go through this tutorial,

http://www.thickbook.com/extra/php_apachephp4_win.phtml

it will take you 15 min. tops, and it worked for me, well kinda, check out my post at

http://www.phpbuilder.com/forum/read.php3?num=3&id=111379&thread=111379
Anon is offline   Reply With Quote
Old 06-16-2002, 06:55 PM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Apache 2.0.36/PHP 4.2.1 install prob

I should have specified, but I'm attempting this install on Linux...
Anon is offline   Reply With Quote
Old 06-16-2002, 10:15 PM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Apache 2.0.36/PHP 4.2.1 install problem

Perhaps you could shed more light on the configuration command you used?(eg. ./configure --with-apxs2 ...)

Also, if the tutorial is online, what is its URL? There might very well be mistakes there...
Anon is offline   Reply With Quote
Old 06-17-2002, 09:08 PM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Apache 2.0.36/PHP 4.2.1 install prob

I followed this tutorial:

http://www.linuxguruz.org/z.php?id=322

which uses the following config:

./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-versioning \
--with-mysql=/usr/local \
--enable-ftp \
--with-gd=/usr/local/gd-1.8.4 \
--enable-bcmath \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars

Plain HTML works fine. Pages that are named .php or contain php tags do not... the tags just get printed without being interpreted.
Anon is offline   Reply With Quote
Old 06-17-2002, 10:36 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Apache 2.0.36/PHP 4.2.1 install problem

I just went through this problem. Two things I needed to do to make it work:
1- remove the "AddModule mod_php4.c" line (I just commented mine out)
2- Move the AddType to after the conf/mime.type file was loaded. You could probably add the line to that file as well, but I just put if after.

Once I did those, php worked fine for me.

Good Luck.
Anon is offline   Reply With Quote
Old 06-19-2002, 03:19 AM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE:[W32] Apache 2.0.36/PHP 4.2.1 install

Hi! There,
I tried either one set. Both work for my phpNuke. However, both are not working for 2.0.39, the security fix one.

# PHP 4 and Apache 2.0.36
LoadModule php4_module j:\server\php\experimental\apache2filter.dll
AddType application/x-httpd-php .php .php3 .inc

# JERG-PSU for PHP 4 and Apache 1.3.x & 2.0.36
#LoadModule php4_module j:/server/php/sapi/php4apache2.dll
#AddType application/x-httpd-php .php .php3 .inc
Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 12:40 PM.






Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.