Re: [PHP] problem loading phpinfo

2006-12-19 Thread Richard Lynch
On Tue, December 19, 2006 2:42 am, [EMAIL PROTECTED] wrote:
 I am very grateful that you had the time to reply also your reply was
 very quick, this is the kind support you don't get from most other
 open source.

 In regard to the problem with phpinfo, I had same problem, but it is
 not because of installation rather it was a configuration issue.

 I did not set the php path is the httpd.conf and also in the php.ini.

 The follwing is what I did and it worked strainght away:

 ### chris Extra 16/12/2006 ##
 # Add this in the php.ini
 # configure the path to php.ini
 PHPIniDir /usr/local/apache/www.sitehome.org/php

This does not go in php.ini

It goes in httpd.conf

Essentially, this tells Apache where to find php.ini

So it has to go in httpd.conf or you have a chicken/egg problem.

 #Check which php is your default and change the path
 [EMAIL PROTECTED] apache]# which php
 /usr/bin/php
 [EMAIL PROTECTED] apache]# mv /usr/bin/php /usr/bin/Original.php.18122006
 [EMAIL PROTECTED] apache]# ls -al /usr/local/apache/sitehome/php/bin/php
 -rwxr-xr-x1 root root  9642970 Nov 12 21:49
 /usr/local/apache/sitehome/php/bin/php
 [EMAIL PROTECTED] apache]#
 [EMAIL PROTECTED] apache]# ln -s /usr/local/apache/sitehome/php/bin/php
 /usr/bin/php
 [EMAIL PROTECTED] apache]#

H.

Okay, if your php binary somehow ended up in /usr/local/apache/... and
if you are using CGI (or Fast CGI?) I guess you want this.

 ###
 #Add this to my httpd.conf

 AddHandler application/x-httpd-php .php

 IfModule mod_php4.c
 AddType application/x-httpd-php .php .html
 AddType application/x-httpd-php .php5
 AddType application/x-httpd-php .php4
 AddType application/x-httpd-php-source .phps
 /IfModule

But then all the above, I think, only applies if you are using PHP as
a Module, not as CGI.

 # DirectoryIndex: sets the file that Apache will serve if a directory
 # is requested.
 #
 IfModule dir_module
 DirectoryIndex index.html index.htm index.php index.var .php
 /IfModule
 #

 Then with the above all my php functions worked.

That's a good start.

 The the rest if history, but I am still not able to get the log_errors
 to write to the path as defined in the php.ini

 [EMAIL PROTECTED] php-5.1.6]# ls -al /data/logs/sitehome/php/error.log
 -rwxrwxrwx1 root root0 Dec 19 08:59
 /data/logs/sitehome/php/error.log

What does ?php phpinfo();? show you for your php.ini setting?

Copy paste it to this list.

If it doesn't say the path to the php.ini you are changing, then you
are not changing the right php.ini

Or you need to move php.ini

Or you need to re-start Apache so your PHPIniDir setting takes effect.

 But for some reason, I get the following error on another machine with
 exactly the same configuration of apache, php, and mysql.

 ##
 [EMAIL PROTECTED]
 /usr/local/apache/www-dev.sitetest.ch/bin/apachectl restart
 httpd: Syntax error on line 111 of
 /usr/local/apache/www-dev.sitetest.ch/conf/httpd.conf: Cannot load
 /usr/local/apache/www-dev.sitetest.ch/modules/libphp5.so into server:
 /usr/local/apache/www-dev.sitetest.ch/modules/libphp5.so: undefined
 symbol: xmlResetError

Sounds to me like you tried to compile with some nifty XML stuff, but
didn't have that nifty XML extension actually on your system.

Go back to the ./configure and make of the PHP binary, and check the
output from config.log carefully.

I think you'll find that there are errors about XML.

 ###

 When I disabled the following lines in my httpd.conf all is ok:

 LoadModule php5_modulemodules/libphp5.so
 PHPIniDir /usr/local/apache/www-dev.sitetest.ch/php

 The error xmlResetError message is fairly new and no info on the web
 for this.

 Can you please help?

All I know is that your libphp5.so is only half-formed, with the XML
stuff missing, because that's what those messages mean.

How you got there, or how to get to where you want to be, I don't know
for sure, except that more error messages in config.log in php
./configure directory will be the path to track.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problem loading phpinfo

2006-12-18 Thread Richard Lynch

You didn't actually install PHP correctly.

Check your httpd error.log file -- You may need to restart Apache and
check the log to get the error messages it spews out at start up if
you've had it going with a bunch of other messages clogging up the log
(e.g., Missing robots.txt, missing favicon.ico, ...)

On Sat, December 16, 2006 8:04 am, [EMAIL PROTECTED] wrote:
  Please,

 Could you tell me if this problem has been resolved:
 I am using php-5.2X and has this problem, I also had this problem when
 I was using php-5.1.X.
 My Apache is httpd-2.2.3.

 Here is the post from someone who is having the same problem.

 
 I config PHP4.0.6 for Apache 1.3.12 for Win32

 : in apache configuation file:

 ScriptAlias /php/ C:/PHP/
 AddType application/x-httpd-php .php
 Action application/x-httpd-php /php/php.exe

 then I test with phpinfo.php file in htdocs directory.

 : phpinfo.php :

 ?php phpinfo(); ?

 when I type: http://localhost/phpinfo.php, Browser should show me some
 information table but It show me the original code.

 ?php phpinfo(); ?
 [16 Nov 2001 5:17am UTC] [EMAIL PROTECTED]
 Please ask support questions on the php-general@lists.php.net
 mailinglist.

 Not a bug  closing
 ###

 Any help would be highly appriciated.

  Thank You,
 IT Consultant (UNIX, Oracle, Sybase, MSSQL,MYSQL,MCSA)
 Chris Ok'Onkwo
 [EMAIL PROTECTED]
 Tel: 0041-79-656-0889
 
 Check Out the new free AIM(R) Mail -- 2 GB of storage and
 industry-leading spam and email virus protection.



-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problem loading phpinfo

2006-12-17 Thread Casey Chu

You probably didn't install PHP correctly.

On 12/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Please,

Could you tell me if this problem has been resolved:
I am using php-5.2X and has this problem, I also had this problem when I was 
using php-5.1.X.
My Apache is httpd-2.2.3.

Here is the post from someone who is having the same problem.


I config PHP4.0.6 for Apache 1.3.12 for Win32

: in apache configuation file:

ScriptAlias /php/ C:/PHP/
AddType application/x-httpd-php .php
Action application/x-httpd-php /php/php.exe

then I test with phpinfo.php file in htdocs directory.

: phpinfo.php :

?php phpinfo(); ?

when I type: http://localhost/phpinfo.php, Browser should show me some
information table but It show me the original code.

?php phpinfo(); ?
[16 Nov 2001 5:17am UTC] [EMAIL PROTECTED]
Please ask support questions on the php-general@lists.php.net
mailinglist.

Not a bug  closing
###

Any help would be highly appriciated.

 Thank You,
IT Consultant (UNIX, Oracle, Sybase, MSSQL,MYSQL,MCSA)
Chris Ok'Onkwo
[EMAIL PROTECTED]
Tel: 0041-79-656-0889

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam 
and email virus protection.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php