php-install Digest 23 Jun 2001 13:47:52 -0000 Issue 331
Topics (messages 3312 through 3318):
Re: Error Starting PHP4 Under NES 3.6 SP3
3312 by: Daryl DuLong
Re: PHP install on to Apache problem.
3313 by: Jani Taskinen
3316 by: Srimoungchanh, Kou
Re: warning php_hostconnect: connect failed
3314 by: Jani Taskinen
3317 by: Joris Van Droogenbroeck
Re: php 4.05 and ldap support migraine
3315 by: Jani Taskinen
Newbie with NO IDEA Pls Help
3318 by: Rayxen
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]
----------------------------------------------------------------------
Thank you for the suggestion! I apparently forgot that step. However, I
added LD_LIBRARY_PATH=/usr/lib to my start script and I got the same
error. Is it correct that I want to map to libstdc++.so...... ? Should
I, instead, try to map to the libraries only relevant to Netscape
Enterprise (/var/netscape/suitespot/bin/https) or does the server know
where those are already?
Thanks for your help.
-Daryl D.
Alfred Lerch wrote:
> Hi Daryl,
>
> have you added LD_LIBRARY_PATH=<libdir> to your Netscape server startup
> script ?
>
> see http://benoit.noss.free.fr/php/install-php4.html
>
> regards
>
> alfred
>
> > Daryl DuLong wrote:
> >
> > Hi All,
> >
> > I've searched through the archives for an answer to this error and I
> > can't seem to come up with one. I am trying to run PHP4 under
> > Netscape
> > Enterprise Server 3.6 SP3 on an IRIX box. It compiled correctly, and,
> >
> > yes, I did remember to include "--enable-libgcc" to the configuration
> > process. :-)
> >
> > I have the following lines in obj.conf:
> >
> > Init fn="load-modules"
> > funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
> > shlib="/var/netscape/suitespot/bin/https/libphp4.so"
> > Init fn="php4_init" LateInit="yes" errorString="Failed to initialize
> > PHP!"
> >
> > Yet, when the server starts up, I get the following error:
> >
> > Starting Netscape Enterprise Server(s)
> > /var/netscape/suitespot/https-holodec
> > conf_init: Error running init function load-modules: dlopen of
> > /var/netscape/suitespot/bin/https/libphp4.so failed (207132:ns-httpd:
> > rld: Fatal Error: Cannot Successfully map soname
> > '/var/netscape/suitespot/bin/https/libphp4.so' under any of the
> > filenames /var/netscape/suitespot/bin/https/libphp4.so )
> > Cannot start /var/netscape/suitespot/https-holodec.
> >
> > I have seen fixes for invalid symbol errors but I can't seem to find
> > anything for a "Cannot Successfully map soname" error. Can anyone
> > offer
> > any suggestions?
> >
> > Thanks a Million,
> > Daryl D.
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
>
> --
>
> --
> \\\\\///
> / ^ _ \
> ( (o) (o) ) --- That's all folks ---
> +=oOOO=====(_)=====OOOo==========================================+
> |Alfred Lerch Mentor Graphics Deutschland GmbH|
> |Network & System Administrator Elsenheimer Str. 41 - 43|
> |IT - Business Support Team Munich D-80687 Muenchen, Germany|
> |email: [EMAIL PROTECTED] Fax : +49 89 57096-400|
> |Tel. : +49 89 57096-241 Mobile: +49 172 8915200|
> | |
> |Helpdesk IT Central Europe in Munich |
> |Tel. : +49 89 57096-110 internal: 777|
> |email: [EMAIL PROTECTED] |
> +=============Oooo.==============================================+
> .oooO ( )
> ( ) ) /
> \ ( (_/
> \_)
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Do not use 'apachectl restart' use 'apachectl stop ; apachectl start'
instead.
--Jani
On Thu, 21 Jun 2001, Srimoungchanh, Kou wrote:
>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.
>*************************************************
>
>
>
Thanks..
Kou
-----Original Message-----
From: Jani Taskinen [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 11:43 AM
To: Srimoungchanh, Kou
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-INST] PHP install on to Apache problem.
Do not use 'apachectl restart' use 'apachectl stop ; apachectl start'
instead.
--Jani
On Thu, 21 Jun 2001, Srimoungchanh, Kou wrote:
>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.
>*************************************************
>
>
>
There is no support for redirected urls yet.
Use the 'direct' url instead:
$fcontents = file ('http://www.php.net/');
That works. (note the trailing / ?)
--Jani
On Fri, 22 Jun 2001, Joris Van Droogenbroeck wrote:
>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.
>
>
>
>
>
>
>
>
| >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.
| >
"Jani Taskinen" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
|
| There is no support for redirected urls yet.
| Use the 'direct' url instead:
|
| $fcontents = file ('http://www.php.net/');
|
| That works. (note the trailing / ?)
I appreciate your help but this doesn't make any difference. I still get the
same error
You have obviously ldap libs that are linked with openssl.
Try adding --with-openssl to your configure line.
# rm config.cache ; ./configure <with your options + --with-openssl>
# make clean ; make ; make install
--Jani
On Thu, 21 Jun 2001, King, John (Greg) (OAO-HOU) wrote:
>OS : Solaris 2.7 (Sparc Architecture)
>PHP : 4.05
>OpenLDAP : 2.0.11 (install with prefix= /usr/local/ldap)
>Apache : 1.3.20
>GCC : 2.95.2 19991024 (release)
>
>Error Message During after issueing:
>
>./configure --without-mysql --with-apache=../apache_1.3.20
>--with-ldap=/usr/local/ldap --enable-track-vars
>
>I get :
>
>+--------------------------------------------------------------------+
>| *** ATTENTION *** |
>| |
>| Something is likely to be messed up here, because the configure |
>| script was not able to detect a simple feature on your platform. |
>| This is often caused by incorrect configuration parameters. Please |
>| see the file debug.log for error messages. |
>| |
>| If you are unable to fix this, send the file debug.log to the |
>| [EMAIL PROTECTED] mailing list and include appropiate |
>| information about your setup. |
>+--------------------------------------------------------------------+
>
>Debug.log results :
>
>CONFIGURE: './configure' '--without-mysql'
>'--with-apache=../apache_1.3.20' '--with-ldap=/usr/local/ldap'
>'--enable-track-vars'
>CC: gcc
>CFLAGS: -g -O2
>CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8
>CXX:
>CXXFLAGS:
>INCLUDES: -I/home/gking/LDAP/apache_1.3.20/src/include
>-I/home/gking/LDAP/apache_1.3.20/src/os/unix -I$(top_builddir)/Zend -I/us
>r/local/ldap/include
>LDFLAGS: -R/usr/ucblib -L/usr/ucblib
>-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
>-L/usr/local/lib/gcc-lib/sparc-sun-sol
>aris2.7/2.95.2 -R/usr/local/ldap/lib -L/usr/local/ldap/lib
>LIBS: -lldap -llber -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket
>-lsocket -lgcc
>DLIBS:
>SAPI: apache
>PHP_RPATHS: /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
>/usr/local/ldap/lib
>uname -a: SunOS unix 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-5_10
>
>gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UTF8
>-R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-so
>laris2.7/2.95.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2
>-R/usr/local/ldap/lib -L/usr/local/ldap/lib conftest.c -lldap -
>llber -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket -lgcc 1>&5
>Undefined first referenced
> symbol in file
>SSL_library_init /usr/local/ldap/lib/libldap.so
>ERR_error_string /usr/local/ldap/lib/libldap.so
>SSL_CTX_set_cipher_list /usr/local/ldap/lib/libldap.so
>SSL_CIPHER_get_bits /usr/local/ldap/lib/libldap.so
>CRYPTO_free /usr/local/ldap/lib/libldap.so
>X509V3_add_standard_extensions /usr/local/ldap/lib/libldap.so
>X509_get_issuer_name /usr/local/ldap/lib/libldap.so
>SSLv23_method /usr/local/ldap/lib/libldap.so
>X509_STORE_CTX_get_current_cert /usr/local/ldap/lib/libldap.so
>SSL_shutdown /usr/local/ldap/lib/libldap.so
>X509_free /usr/local/ldap/lib/libldap.so
>SSL_state_string_long /usr/local/ldap/lib/libldap.so
>X509_STORE_CTX_get_error_depth /usr/local/ldap/lib/libldap.so
>SSL_CTX_use_PrivateKey_file /usr/local/ldap/lib/libldap.so
>RAND_load_file /usr/local/ldap/lib/libldap.so
>SSL_CTX_set_tmp_rsa_callback /usr/local/ldap/lib/libldap.so
>SSL_CTX_set_verify /usr/local/ldap/lib/libldap.so
>X509_STORE_CTX_get_error /usr/local/ldap/lib/libldap.so
>SSL_CTX_check_private_key /usr/local/ldap/lib/libldap.so
>SSL_CTX_free /usr/local/ldap/lib/libldap.so
>SSL_alert_type_string_long /usr/local/ldap/lib/libldap.so
>SSL_set_info_callback /usr/local/ldap/lib/libldap.so
>SSL_load_error_strings /usr/local/ldap/lib/libldap.so
>SSL_alert_desc_string_long /usr/local/ldap/lib/libldap.so
>X509_NAME_get_text_by_NID /usr/local/ldap/lib/libldap.so
>SSL_get_current_cipher /usr/local/ldap/lib/libldap.so
>RAND_write_file /usr/local/ldap/lib/libldap.so
>RAND_status /usr/local/ldap/lib/libldap.so
>SSL_CTX_set_client_CA_list /usr/local/ldap/lib/libldap.so
>RAND_egd /usr/local/ldap/lib/libldap.so
>SSL_CTX_use_certificate_file /usr/local/ldap/lib/libldap.so
>SSL_set_bio /usr/local/ldap/lib/libldap.so
>SSL_connect /usr/local/ldap/lib/libldap.so
>RAND_file_name /usr/local/ldap/lib/libldap.so
>SSL_CTX_new /usr/local/ldap/lib/libldap.so
>X509_get_subject_name /usr/local/ldap/lib/libldap.so
>RSA_generate_key /usr/local/ldap/lib/libldap.so
>SSL_CTX_set_default_verify_paths /usr/local/ldap/lib/libldap.so
>SSL_write /usr/local/ldap/lib/libldap.so
>SSL_CTX_load_verify_locations /usr/local/ldap/lib/libldap.so
>SSL_new /usr/local/ldap/lib/libldap.so
>BIO_new /usr/local/ldap/lib/libldap.so
>SSL_get_error /usr/local/ldap/lib/libldap.so
>ERR_get_error_line /usr/local/ldap/lib/libldap.so
>SSL_load_client_CA_file /usr/local/ldap/lib/libldap.so
>SSL_free /usr/local/ldap/lib/libldap.so
>SSL_pending /usr/local/ldap/lib/libldap.so
>ERR_peek_error /usr/local/ldap/lib/libldap.so
>SSL_get_peer_certificate /usr/local/ldap/lib/libldap.so
>SSL_read /usr/local/ldap/lib/libldap.so
>SSL_accept /usr/local/ldap/lib/libldap.so
>X509_NAME_oneline /usr/local/ldap/lib/libldap.so
>ld: fatal: Symbol referencing errors. No output written to conftest
>collect2: ld returned 1 exit status
>
>Greg King
>....
>[EMAIL PROTECTED]
>
>
Hey,
I was just doing work experience at a webpage authoring company and the guy
there suggested that I check out php and it'd be something great to learn. I
know HTML and thought i'd check out PHP. The problem I'm having is that, I
don't have the slightest clue what to do.
With HTML it was simply write the code in notepad and save as .html and so
forth. With PHP I need to install stuff and it talks about webservers and
etc. I don't run a Webserver. I'm very confused and some help would be
greatly appreciated. I'm running Windows 2000 and have downloaded Php 4.06
Win32 and the Installer.
I don't know where to go from there. Help greatly appreciated.
Thanks, Mike