RE: [users@httpd] No go with Apache 2.0.55 and PHP 5.1.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gary.

I have Apache 2.0.55 and PHP 5.1.2 working OK under SuSE 
Linux 9.2 pro.

If you are getting PHP code in the browser, have you set the 
following in your httd.conf file:

AddType application/x-httpd-php .php

To tell Apache to pass any files ending in .php to the php 
module?

Also, regarding the blank page, I think I got this because 
the settings in php.ini were not right.

I have MySQL 4.0 running, and listening on /var/lib/mysql/mysql.sock

The default port for php wanted to connect to was /tmp/mysql.sock

So I changed the value in php.ini, to tell php to connect to 
mysql on /var/lib/mysql/mysql.sock, and it worked OK.

Here is how I compiled php, from the output of phpinfo():

Note that I compiled PHP against the latest mysql 5.0.18 
libraries, although I'm connecting to a mysql version of 4.0


PHP Version 5.1.2

System 
Linux karsites 2.6.8-24.19-default #1 Tue Nov 29 14:32:45 
UTC 2005 i686 

Build Date 
Jan 21 2006 22:38:52 

Configure Command 
'./configure' 
'--with-apxs2=/usr/local/apache2-0-55/bin/apxs' 
'--prefix=/usr/local/php5-1-2' 
'--with-mysql=shared,/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23/' 
'--with-mysql-sock=/var/lib/mysql/mysql.sock' 

Server API 
Apache 2.0 Handler 

*snip*

MySQL Support enabled

Active Persistent Links 
0 

Active Links 
0 

Client API version 
5.0.18 

MYSQL_MODULE_TYPE 
external 

MYSQL_SOCKET 
/tmp/mysql.sock 

MYSQL_INCLUDE 
-I/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23//include 

MYSQL_LIBS 
-L/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23//lib 
-lmysqlclient 

Directive
Local Value
Master Value

mysql.allow_persistent
On
On

mysql.connect_timeout
60
60

mysql.default_host
no value
no value

mysql.default_password
no value
no value

mysql.default_port
no value
no value

mysql.default_socket
/var/lib/mysql/mysql.sock
/var/lib/mysql/mysql.sock

mysql.default_user
no value
no value

*snip*

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Thu, 9 Feb 2006, Schultz, Gary - COMM wrote:

> To: "'users@xxxxxxxxxxxxxxxx'" <users@xxxxxxxxxxxxxxxx>
> From: "Schultz, Gary - COMM" <GSchultz@xxxxxxxxxxxxxxxxxxxx>
> Subject: RE: [users@httpd] No go with Apache 2.0.55 and PHP 5.1.x
> 
> Additional Information. Everything works as expected with PHP 5.0.5, so
> there must be a problem with 5.1.x. I cannot get the configuration to work
> with 5.1.0, 5.1.1 or 5.1.2. I do know that Apache 2.2 and 5.1.1 work in the
> XAMPP distribution for Windows. Or is the problem with Apache 2.0.55?
> 
>   _____  
> 
> From: Schultz, Gary - COMM [mailto:GSchultz@xxxxxxxxxxxxxxxxxxxx] 
> Sent: Thursday, February 09, 2006 10:06 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] No go with Apache 2.0.55 and PHP 5.1.x
> 
> 
> I have never had a problem getting Apache and PHP to run until I tried PHP
> 5.1.x (5.1.1 and 5.1.2) and Apache 2.0.55. I have tried the following
> configuration hints:
>  
> http://php.mirrors.ilisys.com.au/manual/en/install.windows.apache2.php
> <http://php.mirrors.ilisys.com.au/manual/en/install.windows.apache2.php> 
>  
> http://spaces.msn.com/anotherblog/Blog/cns!1p2pEqx-MdcDtr92-Z1Jl5HA!368.entr
> y
> <http://spaces.msn.com/anotherblog/Blog/cns!1p2pEqx-MdcDtr92-Z1Jl5HA!368.ent
> ry> 
>  
> http://www.evaria.com/v3/index/article/19/how-to-install-php5-on-windows.htm
> l
> <http://www.evaria.com/v3/index/article/19/how-to-install-php5-on-windows.ht
> ml> 
>  
> and numerous other sites.
>  
> I either get blank pages or the php code in the browser.  
>  
> It would appear there is a problem with Apache and PHP 5.1.x. I have never
> seen this much discussion related to a problem with Apache 2.0.xx and PHP.
> Any ideas are welcome. 
>  
> Gary T. Schultz
> IT Administrator
> Wisconsin Dept. of Commerce
> 608-266-1283
> gschultz@xxxxxxxxxxxxxxxxxxxx
>  
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux