Re: PHP and Apache

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

 



www.google.com

or

http://fedoraproject.org/wiki/

But it's in test yet.

Best regards
Rodolfo Andrade
----- Original Message ----- 
From: Erik Saline
To: Curt Zirzow ; php-general@xxxxxxxxxxxxx
Sent: Monday, January 16, 2006 3:06 PM
Subject: Re:  PHP and Apache


Where do I find fc5?


Erik

> On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
>> Using Fedora Core 4 using the already Apache and Mysql.  I tried using
the
>> already installed PHP but mysql support was not setup or shown when using
>> phpinfo().
>>
>> I recompiled PHP with the following.
>>
>> './configure' '--with-mysqli=/usr/bin/mysql_config'
>> '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
>> '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
>
> First off, --with-mysql doesn't expect a mysql_config as an option
> but the $prefix directory were mysql was installed.
>
>>
>> Now all my PHP scripts do not work here is the error I find in the Apache
>> Error logs.
>>
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format
error:
>> exec of '/var/www/cgi-bin/create_user.php' failed,
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
>> script headers: create_user.php,>
>>
>
> This is a sign that your in rpm hell.
>
>> I can use php -i >phpinfo.html and see that PHP works and that mysql is
now
>> loaded.
>> I added this to my httpd.conf
>
> but what does assuming your 'whatis database is upto date':
>
> 'locate php | grep bin' give?
> 'locate libphp' give?
> 'locate php' give?
>
> And from those locates:
> ls -laF <filenameoflocate>
>
>
> My Guess:
> you will have a:
> /usr/bin/php
> /usr/local/bin/php
> /path/to/apache/modules/libphp(45).php
>
> Once that is figured out, what about the extenstions? is there any
> thing in your php.ini that specifies an extension_dir and/or
> extension=something.so?
>
> Last but should be first, check logs, turn on php.ini:error_log to
> syslog, turn on display_startup_errors, check /var/log/messages, if
> that doesnt work make sure php.ini:error_reporting  is E_ALL. If
> that doesn't work.. are you sure you are editing the correct
> php.ini for the environment you are using?
>
>>
>> AddType application/x-httpd-php .php
>
> This is for using php as a moudule, the error you are getting is
> based on php ran as a cgi.
>
>
>> # which php at the command line returns
>>  /usr/local/bin/php
>
> try: /usr/bin/php -i
>
>>
>> Do I need to add something in the httpd.d to direct it to
/usr/local/bin/php
>> instead of the intial defalt where
>> # which php returned
>> /usr/bin/php
>
> Ah, yeah, well, the thing you need to do is:
> 1) either get rid of the system's installation of php and do the
>    installation by hand. Getting rid of php via the systems
>    installation process. Be forwarned, do this with care.
>
> 2) use fc5
>
>
> Curt.

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


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux