php-install Digest 22 Jun 2001 11:16:53 -0000 Issue 330

Topics (messages 3309 through 3311):

starting Apache: unable to find OpenLDAP library path
        3309 by: Charlie Hileman

PHP install on to Apache problem.
        3310 by: Srimoungchanh, Kou

warning php_hostconnect: connect failed
        3311 by: Joris Van Droogenbroeck

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Hello,

I have a problem when running Apache (1.3.19) using PHP (4.0.4) and
OpenLDAP .  The following error occurs when starting up Apache (PHP run
internally as a shared module in Apache):

>  Cannot load /usr/web/server/apache/libexec/libphp4.so into server:
libldap.so.2:
>  cannot  open shared object file: No such file or directory

I am able to stop this error by setting LD_LIBRARY_PATH to the OpenLDAP
lib directory.  So I assume the problem is related to the proper library
load path when linking either Apache or PHP.

I use the following command to configure the PHP installation:

> ./configure --with-apxs=/usr/web/server/apache/bin/apxs \
> --prefix=/usr/web/server/php \
> --with-config-file-path=/usr/web/server/php \
> --with-ldap=/usr/web/server/openldap \
> --enable-track-vars --enable-magic-quotes --enable-debugger \
> --with-mysql --enable-ftp

And I use the following command to configure the Apache installation
(with additional modifications to httpd.conf):

./configure --prefix=/usr/local/web/server/apache/ \
 --enable-module=mime_magic --enable-shared=mime_magic \
 --enable-module=headers --enable-shared=headers \
 --enable-module=info --enable-shared=info \
 --enable-module=rewrite --enable-shared=rewrite \
 --enable-module=speling --enable-shared=speling \
 --enable-module=cgi --enable-shared=cgi \
 --enable-module=alias --enable-shared=alias \
 --enable-module=auth --enable-shared=auth

When PHP links libphp4 the proper –L switch appears to be used to
include the openldap library directory.  I assume that PHP needs the
library path.  But for some reason it is not able to find that path once
PHP is installed as a shared dynamic object for Apache.

Any ideas?

Many thanks,

Charlie Hileman ([EMAIL PROTECTED]).







Hello all,

I tried to install Mysql, which installed fine.  Then I tried to install
PHP4, but when I tried to restart the apache server, it fails.

I am running ROCK Linux 1.2
Webmin 0.84

here is the command I used during my PHP4 install:

I downloaded "mysql-3.23.39-pc-linux-gnu-i686.tar.gz
"this seem to install and start fine"

Then I downloaded "php-4.0.5.tar.gz" and copied to /usr/local/src then
extracted in /usr/local/src/php-4.0.5

the I "cd apache_1.3.12" 
1. ./configure --prefix=/www 
2. cd ../php-4.0.5 
3. ./configure --with-mysql --with-apache=../apache_1.3.x
--enable-track-vars 
4. make 
5. make install 
6. cd ../apache_1.3.12
7. ./configure --activate-module=src/modules/php4/libphp4.a 
8. make 
9. make install 
10. cd ../php-4.0.5 
11. cp php.ini-dist /usr/local/lib/php.ini 
12. Edited the httpd.conf add the "AddType application/x-httpd-php .php"
line.
13. ./apache1 restart "here is where it errors" 

Here is the error I get when I run "./apachect1 restart"
"Failed to apply changes : /usr/local/apache/bin/apachectl restart:
configuration broken, ignoring restart /usr/local/apache/bin/apachectl
restart: (run 'apachectl configtest' for details)" 
when I do a "./apachect1 configtest"  here is what I get:
"Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not
included in the server configuration."
What can I do?
Thanks for you help.


Kou Srimoungchanh 
Senior Network System Engineer 
UUNET, A WorldCom Company 
913.339.4656 
888-936-9961 
************************************************* 
This communication contains information that is confidential and may also be
privileged. It is or the exclusive use of the intended recipient(s). If you
are not the intended recipient(s), please note that any distribution,
copying or use of this communication or the information in it is strictly
prohibited. If you have received this communication in error, please notify
the sender immediately and then destroy any copies of it.
************************************************* 






Hi,

I'm trying to read some webpage in a file.
I've got some code from de php.net website:

<?php
// get a web page into an array and print it out
$fcontents = file ('http://www.php.net');
while (list ($line_num, $line) = each ($fcontents)) {
    echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) . "<br>\n";
}
// get a web page into a string
$fcontents = join ('', file ('http://www.php.net'));
?>

When I'm trying to run this code I get the following errors:

Warning: php_hostconnect: connect failed in C:\Program Files\Apache
Group\Apache\htdocs/source/screener.php on line 17

Warning: file("http://www.php.net";) - Bad file descriptor in C:\Program
Files\Apache Group\Apache\htdocs/source/screener.php on line 17

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program
Files\Apache Group\Apache\htdocs/source/screener.php on line 17



What does this mean? Is it a configuration problem?
When I try this code with some local file it works very well.
I'm a windows user.








Reply via email to