php-install Digest 8 Dec 2001 04:40:40 -0000 Issue 592
Topics (messages 5234 through 5245):
Re: HP-UX 11.11+Apache1.3.22+Mysql+PHP4.0.6 as DSO??
5234 by: Jim Thome
5236 by: Keith Lapidus
5237 by: Jim Thome
5238 by: Keith Lapidus
Re: PHP Installatino SuSe 7.3 libphp4.so
5235 by: Rouvas Stathis
[±¤°í] 7¸¸ 5000¿øÀ¸·Î â¾÷ÀÌ OK!
5239 by: ÅéÆÄÀ̺ê
Re: Warning: mail() is not supported in this PHP build
5240 by: Yasuo Ohgaki
Re: Cannot load libphp4.so
5241 by: Yasuo Ohgaki
PHP install on Darwin/Mac OS X
5242 by: Sam Schenkman-Moore
mod_php4.c
5243 by: geo
5244 by: charles
Problems with PHP and apache
5245 by: Luc Bouchard
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]
----------------------------------------------------------------------
--- Begin Message ---
Hello Keith-
I am forwarding to you instructions I received from HP on how to build PHP on HPUX 11
Note the change to the libtool hack...
##############################################
INSTALL_php_on_HP_apache.txt
-----------------------------------------------------------------------
Installation Instructions for PHP 4.0
Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.
QUICK INSTALL (DSO)
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.
$ /opt/apache/bin/httpd -l
You should see something like:
Compiled-in modules:
http_core.c
mod_so.c
Chances are you will see a lot more modules than these two. That's ok,
as long as mod_so.c shows up you can proceed with the following steps:
-----------------------------------------------------------------------
1. Unpack your distribution file.
You can get the latest version from "http://www.php.net/"
$ cd /opt
$ mkdir php
$ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
$ cd /opt/php
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
-----------------------------------------------------------------------
2. Configure PHP
When running configure, you should use at least the following
command line:
$ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs
You can add other options if you like. You can use the --help
option to configure to get a complete list.
After configure runs, you must edit the file libtool.
$ vi ./libtool
At line 184, you should change the line from:
deplibs_check_method="unknown"
to
deplibs_check_method="pass_all"
so that PHP and mod_php are properly compiled.
-----------------------------------------------------------------------
3. Compile and install the files.
Run make. This should complete normally.
$ make
Run make install. This will fail when it attempts to call apxs.
$ make install
Program will crash after apxs call.
Copy the call to apxs along with all its arguments.
Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
$ mv lib/libphp4.sl lib/libphp4.so
Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":
$ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so
-----------------------------------------------------------------------
4. Setup the server
Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.
$ sudo cp php.ini-dist /usr/local/lib/php.ini
The only thing left to do is to edit your httpd.conf file:
Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.
$ vi /opt/apache/conf/httpd.conf
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
Also make sure the PHP 4 mime type is there and uncommented.
You need a line that looks like this:
AddType application/x-httpd-php .php
-----------------------------------------------------------------------
5. Testing it all worked
Restart your server.
$ sudo /opt/apache/bin/apachectl restart
You should be able to serve up PHP files now. Make a test file called "test.php" and
put some PHP tags in it such as <?phpinfo()?>.
$ vi /opt/apache/htdocs/test.php
add
<html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>
Enter following URL in your browser.
http://<your server>/test.php
##############################################
Good Luck,
Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 7:06 AM >>>
After building mysql and apache with DSO support, I've tried to build
PHP4.0.6 as a DSO module and have gotten as far as getting it installed. My
problem now is this error message listed below. Has anyone seen this or
know how to fix this problem??
893 % ../bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: mysql_list_dbs (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_host_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_query (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_close (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_lengths (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_select_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_tables (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_init (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_affected_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_client_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_free_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_server_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_drop_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_connect (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_data_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_create_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_count (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_proto_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_store_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_stat (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_escape_string (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_use_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_error (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_insert_id (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_errno (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_eof (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_row (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_field (code) from
/opt/apache/libexec/libphp4.so
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: Unresolved external
--
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]
--- End Message ---
--- Begin Message ---
Thanks for the help. That took care of the original problem, but now it is
doing the following:
1130 % /opt/apache/bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: compress (code) from
/opt/mysql/lib/mysql/l
ibmysqlclient.sl.10
/usr/lib/dld.sl: Unresolved symbol: uncompress (code) from
/opt/mysql/lib/mysql
/libmysqlclient.sl.10
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: No such file or
director
y
I've even downloaded and compiled the latest version of mysql 3.23.46. It's
almost as if something is not compiled into mysql. By the way, I've the
most success compiling with HP's Ansi C and Ansi C++ compilers...Any help be
greatly appreciated.
"Jim Thome" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Keith-
I am forwarding to you instructions I received from HP on how to build PHP
on HPUX 11
Note the change to the libtool hack...
##############################################
INSTALL_php_on_HP_apache.txt
-----------------------------------------------------------------------
Installation Instructions for PHP 4.0
Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.
QUICK INSTALL (DSO)
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.
$ /opt/apache/bin/httpd -l
You should see something like:
Compiled-in modules:
http_core.c
mod_so.c
Chances are you will see a lot more modules than these two. That's ok,
as long as mod_so.c shows up you can proceed with the following steps:
-----------------------------------------------------------------------
1. Unpack your distribution file.
You can get the latest version from "http://www.php.net/"
$ cd /opt
$ mkdir php
$ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
$ cd /opt/php
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
-----------------------------------------------------------------------
2. Configure PHP
When running configure, you should use at least the following
command line:
$ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs
You can add other options if you like. You can use the --help
option to configure to get a complete list.
After configure runs, you must edit the file libtool.
$ vi ./libtool
At line 184, you should change the line from:
deplibs_check_method="unknown"
to
deplibs_check_method="pass_all"
so that PHP and mod_php are properly compiled.
-----------------------------------------------------------------------
3. Compile and install the files.
Run make. This should complete normally.
$ make
Run make install. This will fail when it attempts to call apxs.
$ make install
Program will crash after apxs call.
Copy the call to apxs along with all its arguments.
Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
$ mv lib/libphp4.sl lib/libphp4.so
Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":
$ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so
-----------------------------------------------------------------------
4. Setup the server
Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.
$ sudo cp php.ini-dist /usr/local/lib/php.ini
The only thing left to do is to edit your httpd.conf file:
Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.
$ vi /opt/apache/conf/httpd.conf
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
Also make sure the PHP 4 mime type is there and uncommented.
You need a line that looks like this:
AddType application/x-httpd-php .php
-----------------------------------------------------------------------
5. Testing it all worked
Restart your server.
$ sudo /opt/apache/bin/apachectl restart
You should be able to serve up PHP files now. Make a test file called
"test.php" and put some PHP tags in it such as <?phpinfo()?>.
$ vi /opt/apache/htdocs/test.php
add
<html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>
Enter following URL in your browser.
http://<your server>/test.php
##############################################
Good Luck,
Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 7:06 AM >>>
After building mysql and apache with DSO support, I've tried to build
PHP4.0.6 as a DSO module and have gotten as far as getting it installed. My
problem now is this error message listed below. Has anyone seen this or
know how to fix this problem??
893 % ../bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: mysql_list_dbs (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_host_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_query (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_close (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_lengths (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_select_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_tables (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_init (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_affected_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_client_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_free_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_server_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_drop_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_connect (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_data_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_create_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_count (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_proto_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_store_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_stat (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_escape_string (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_use_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_error (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_insert_id (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_errno (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_eof (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_row (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_field (code) from
/opt/apache/libexec/libphp4.so
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: Unresolved external
--
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]
--- End Message ---
--- Begin Message ---
Keith-
I do not use HP's ANSI C compiler. I have had the most luck using GNU C (gcc)
compiler, available as a depot file for HPUX 11 at the HP Porting Achive:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/
Also, while we don't use MySQL here, I have heard there can be a problem when MySQL
and PHP libraries are on the same box. I think you have to explicitly tell PHP upon
compile where to get the MySQL libraries, instead of "--with-mysql". Sorry but I
don't know the specifics.
-Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 10:49 AM >>>
Thanks for the help. That took care of the original problem, but now it is
doing the following:
1130 % /opt/apache/bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: compress (code) from
/opt/mysql/lib/mysql/l
ibmysqlclient.sl.10
/usr/lib/dld.sl: Unresolved symbol: uncompress (code) from
/opt/mysql/lib/mysql
/libmysqlclient.sl.10
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: No such file or
director
y
I've even downloaded and compiled the latest version of mysql 3.23.46. It's
almost as if something is not compiled into mysql. By the way, I've the
most success compiling with HP's Ansi C and Ansi C++ compilers...Any help be
greatly appreciated.
"Jim Thome" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Keith-
I am forwarding to you instructions I received from HP on how to build PHP
on HPUX 11
Note the change to the libtool hack...
##############################################
INSTALL_php_on_HP_apache.txt
-----------------------------------------------------------------------
Installation Instructions for PHP 4.0
Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.
QUICK INSTALL (DSO)
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.
$ /opt/apache/bin/httpd -l
You should see something like:
Compiled-in modules:
http_core.c
mod_so.c
Chances are you will see a lot more modules than these two. That's ok,
as long as mod_so.c shows up you can proceed with the following steps:
-----------------------------------------------------------------------
1. Unpack your distribution file.
You can get the latest version from "http://www.php.net/"
$ cd /opt
$ mkdir php
$ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
$ cd /opt/php
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
-----------------------------------------------------------------------
2. Configure PHP
When running configure, you should use at least the following
command line:
$ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs
You can add other options if you like. You can use the --help
option to configure to get a complete list.
After configure runs, you must edit the file libtool.
$ vi ./libtool
At line 184, you should change the line from:
deplibs_check_method="unknown"
to
deplibs_check_method="pass_all"
so that PHP and mod_php are properly compiled.
-----------------------------------------------------------------------
3. Compile and install the files.
Run make. This should complete normally.
$ make
Run make install. This will fail when it attempts to call apxs.
$ make install
Program will crash after apxs call.
Copy the call to apxs along with all its arguments.
Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
$ mv lib/libphp4.sl lib/libphp4.so
Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":
$ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so
-----------------------------------------------------------------------
4. Setup the server
Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.
$ sudo cp php.ini-dist /usr/local/lib/php.ini
The only thing left to do is to edit your httpd.conf file:
Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.
$ vi /opt/apache/conf/httpd.conf
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
Also make sure the PHP 4 mime type is there and uncommented.
You need a line that looks like this:
AddType application/x-httpd-php .php
-----------------------------------------------------------------------
5. Testing it all worked
Restart your server.
$ sudo /opt/apache/bin/apachectl restart
You should be able to serve up PHP files now. Make a test file called
"test.php" and put some PHP tags in it such as <?phpinfo()?>.
$ vi /opt/apache/htdocs/test.php
add
<html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>
Enter following URL in your browser.
http://<your server>/test.php
##############################################
Good Luck,
Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 7:06 AM >>>
After building mysql and apache with DSO support, I've tried to build
PHP4.0.6 as a DSO module and have gotten as far as getting it installed. My
problem now is this error message listed below. Has anyone seen this or
know how to fix this problem??
893 % ../bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: mysql_list_dbs (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_host_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_query (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_close (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_lengths (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_select_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_tables (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_init (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_affected_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_client_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_free_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_server_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_drop_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_connect (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_data_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_create_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_count (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_proto_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_store_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_stat (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_escape_string (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_use_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_error (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_insert_id (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_errno (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_eof (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_row (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_field (code) from
/opt/apache/libexec/libphp4.so
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: Unresolved external
--
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]
--
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]
--- End Message ---
--- Begin Message ---
I've tried gcc and found that with HP-UX 11.11, it works sometimes whereas
the HP products usually always work.
Anyway, here is how I configure PHP
./configure --with-apxs=/opt/apache/bin/apxs --enable-versioning --enable-t
ra
ck-vars --with-mysql=/opt/mysql
I then do a make or gmake and it compiles just fine. I will then do a make
install and get the error and then finally, copy the libphp4.sl libphp.so
and do a make install.
I found some other threads that suggested that I need to compile php with
zlib support because PHP with mysql needs zlib support. I will give that a
try and see what happens.
"Jim Thome" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Keith-
I do not use HP's ANSI C compiler. I have had the most luck using GNU C
(gcc) compiler, available as a depot file for HPUX 11 at the HP Porting
Achive:
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/
Also, while we don't use MySQL here, I have heard there can be a problem
when MySQL and PHP libraries are on the same box. I think you have to
explicitly tell PHP upon compile where to get the MySQL libraries, instead
of "--with-mysql". Sorry but I don't know the specifics.
-Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 10:49 AM >>>
Thanks for the help. That took care of the original problem, but now it is
doing the following:
1130 % /opt/apache/bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: compress (code) from
/opt/mysql/lib/mysql/l
ibmysqlclient.sl.10
/usr/lib/dld.sl: Unresolved symbol: uncompress (code) from
/opt/mysql/lib/mysql
/libmysqlclient.sl.10
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: No such file or
director
y
I've even downloaded and compiled the latest version of mysql 3.23.46. It's
almost as if something is not compiled into mysql. By the way, I've the
most success compiling with HP's Ansi C and Ansi C++ compilers...Any help be
greatly appreciated.
"Jim Thome" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Keith-
I am forwarding to you instructions I received from HP on how to build PHP
on HPUX 11
Note the change to the libtool hack...
##############################################
INSTALL_php_on_HP_apache.txt
-----------------------------------------------------------------------
Installation Instructions for PHP 4.0
Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.
QUICK INSTALL (DSO)
For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.
$ /opt/apache/bin/httpd -l
You should see something like:
Compiled-in modules:
http_core.c
mod_so.c
Chances are you will see a lot more modules than these two. That's ok,
as long as mod_so.c shows up you can proceed with the following steps:
-----------------------------------------------------------------------
1. Unpack your distribution file.
You can get the latest version from "http://www.php.net/"
$ cd /opt
$ mkdir php
$ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
$ cd /opt/php
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
-----------------------------------------------------------------------
2. Configure PHP
When running configure, you should use at least the following
command line:
$ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs
You can add other options if you like. You can use the --help
option to configure to get a complete list.
After configure runs, you must edit the file libtool.
$ vi ./libtool
At line 184, you should change the line from:
deplibs_check_method="unknown"
to
deplibs_check_method="pass_all"
so that PHP and mod_php are properly compiled.
-----------------------------------------------------------------------
3. Compile and install the files.
Run make. This should complete normally.
$ make
Run make install. This will fail when it attempts to call apxs.
$ make install
Program will crash after apxs call.
Copy the call to apxs along with all its arguments.
Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
$ mv lib/libphp4.sl lib/libphp4.so
Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":
$ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so
-----------------------------------------------------------------------
4. Setup the server
Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.
$ sudo cp php.ini-dist /usr/local/lib/php.ini
The only thing left to do is to edit your httpd.conf file:
Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.
$ vi /opt/apache/conf/httpd.conf
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
Also make sure the PHP 4 mime type is there and uncommented.
You need a line that looks like this:
AddType application/x-httpd-php .php
-----------------------------------------------------------------------
5. Testing it all worked
Restart your server.
$ sudo /opt/apache/bin/apachectl restart
You should be able to serve up PHP files now. Make a test file called
"test.php" and put some PHP tags in it such as <?phpinfo()?>.
$ vi /opt/apache/htdocs/test.php
add
<html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>
Enter following URL in your browser.
http://<your server>/test.php
##############################################
Good Luck,
Jim
>>> "Keith Lapidus" <[EMAIL PROTECTED]> 12/07 7:06 AM >>>
After building mysql and apache with DSO support, I've tried to build
PHP4.0.6 as a DSO module and have gotten as far as getting it installed. My
problem now is this error message listed below. Has anyone seen this or
know how to fix this problem??
893 % ../bin/apachectl configtest
/usr/lib/dld.sl: Unresolved symbol: mysql_list_dbs (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_host_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_query (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_close (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_lengths (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_select_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_list_tables (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_init (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_affected_rows (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_client_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_free_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_num_fields (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_server_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_drop_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_real_connect (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_data_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_create_db (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_count (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_get_proto_info (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_store_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_stat (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_field_seek (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_escape_string (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_use_result (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_error (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_insert_id (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_errno (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_eof (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_row (code) from
/opt/apache/libexec/libphp4.so
/usr/lib/dld.sl: Unresolved symbol: mysql_fetch_field (code) from
/opt/apache/libexec/libphp4.so
Syntax error on line 238 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/libexec/libphp4.so into server: Unresolved external
--
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]
--
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]
--- End Message ---
--- Begin Message ---
In earlier releases of SuSe (6.4,7.0) I had luck with the following
procedure:
1) Install the php4 rpm as it came from the SuSE CD's (or other medium)
2) Build my own PHP (without make install)
3) replace libphp4.so
4) restart Apache
Hope that helps.
-Stathis.
--- End Message ---
--- Begin Message ---
one-step Àü¹®¼îÇθôºÎÅÍ Á¾ÇÕ¼îÇθô±îÁö »óǰÀÇ µµ¸Å°¡ °ø±Þ! ¹è¼Û
»çÈİü¸®.
B2SHOPÀÌ ÇØ°áÇØ µå¸³´Ï´Ù.
¹«Á¡Æ÷ ¹«Àç°íÀÇ ½ÇÇö! ÀÎÅÍ³Ý ¼îÇθôÀ» ½ÃÀÛÇϽʽÿÀ.
¼îÇθôÀ» ½ÇÁúÀûÀ¸·Î ¿î¿µÇϴµ¥ °¡Àå Áß¿äÇÑ
»óǰÀÇ Á¶´Þ°ú ¹è¼Û ¹× »çÈİü¸®±îÁö Ã¥ÀÓÁ® µå¸³´Ï´Ù.
±âÁ¸ ¿ÀÇÁ¶óÀÎ À¯ÅëÀ» ±×´ë·Î ÀÎÅÍ³Ý »óÀ¸·Î ±¸ÇöÇÑ B2SHOP!
Àú·ÅÇÑ µµ¸Å°¡·Î »óǰÀ» °ø±ÞÇØ µå¸³´Ï´Ù.
2¸¸¿© »óǰ °ø±Þ°¡´É ÇöÀç µî·Ï»óǰ 4300°³!
* ¼îÇθô ±¸Ãà ÇÁ·Î±×·¥ »ç¿ëÀº ¼±ÅûçÇ× ÀÔ´Ï´Ù.
±¹³» ÃÖ°íÀÇ ÇÁ·Î±×·¥! ¿ø½ºÅÜ ¼îÇθô ±¸Ãà ÇÁ·Î±×·¥
¶óÀÌÄÚ½º, ¸¶ÀÌŬ·´´åÄĵî À¯¸í ¼îÇθôÀ» Á¦ÀÛÇÑ ³ëÇϿ츦 ±×´ë·Î »ì¸°
Ù£ù¡ ÇÁ·Î±×·¥À» Á¦°øÇØ µå¸³´Ï´Ù.
µðÀÚÀÎ ¸¶¹ý»ç±â´ÉÀ¸·Î µðÀÚÀÎÀ» ¾ðÁ¦µçÁö º¯°æÇÒ ¼ö ÀÖÀ¸¸ç
°øµ¿±¸¸Å, ÇÑÁ¤ÆÇ¸Å, °æ¸Å ±â´É±îÁö 7¸¸ 5õ¿ø¿¡ ¸ðµÎ Á¦°øµË´Ï´Ù.
°í°´ °¨µ¿½Ç : TEL (02)833-6673 FAX (02)833-6672
--- End Message ---
--- Begin Message ---
Scott Ecker wrote:
> I'll be more clear. The ./configure and compile output of PHP both confirm
> that sendmail (wrapper) was detected. Other programs that rely on the
> sendmail wrapper being present in /usr/lib and /usr/sbin work fine
> (majordomo for instance). Either the wrapper is flawed, or there is
> something else I'm missing in my PHP compile. Is there a way to use qmail
> binaries with PHP rather than expecting sendmail on every machine?
Use qmail-inject then.
You may want to use nullmailer aslo. (Use nullmailer-inject for this)
Regards,
--
Yasuo Ohgaki
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
Bmms wrote:
> Hi,
> I am running Apache 1.3.22 on Linux/RedHat6.2 Recently I am trying
> to install PHP.4.0.6. I finally got it to work on one server. The
> other still has a problem. When I try to start httpd (apachectl start)
> I get the msg:
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so
Try normal php.ini.
> The only way I can get Apache to work is to remove the following lines
> from the httpd.conf files:
> AddType application /x-httpd-php -php
Is this typo? No spaces for mime type names.
> LoadModule php4_module libexec/libphp4.so
> This, unfortunately, disables php. How can I resolve this dilema.
> Please advise.
> Thanks.
>
I suggest you to install PHP and Apache with minimum confing. Make sure
you follow installations. If you get rid of some option or change
loading order of modules, it may work.
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Hello, I'm trying to install php onto Darwin (Mac OS 10.1).
I want to use the --with-ftp option so that rules out most preconfigured
binaries.
I have used the instructions at http://www.entropy.ch/software/macosx/php/
to help me and I have come up with this set of commands:
setenv CC 'cc -flat_namespace'
./configure --with-apxs=/usr/sbin/apxs --enable-trans-sid --enable-exif
--with-xml --enable-wddx --with-curl=/usr/local --with-ftp
--enable-trans-sid < /dev/null
make
"make" returns this error : "/usr/bin/ld: can't locate file for: -lpq" and
quits.
Any ideas on how to fix this?
Thank you much,
Sam
--- End Message ---
--- Begin Message ---
hello this is the error that i get when trying to start apache, and get
Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
./apachectl start: httpd could not be started
any ideas?
Thank you very much
--- End Message ---
--- Begin Message ---
how was apache compiled?
what does line 236 look like?
what system installing on?
how was php compiled?
just for starters...
----- Original Message -----
From: "geo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 5:46 PM
Subject: [PHP-INST] mod_php4.c
hello this is the error that i get when trying to start apache, and get
Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
./apachectl start: httpd could not be started
any ideas?
Thank you very much
--- End Message ---
--- Begin Message ---
Hello all,
after successfully compiling php 4.0.6 on a RedHat 7.2 machine, I tried
to start apache with the new php module and get the following error:
Syntax error on line 238 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: gss_nt_service_name
/usr/sbin/apachectl start: httpd could not be started
Does anyone have any ideas what may be causing this? Any avenues I can
go down to resolve this. This error also occurs if I know attempt to
use the RH 7.2 rpms.
BTW configuration is:
RH 7.2
Apache 1.3.22 (compiled from scratch)
PHP 4.0.6 (compiled from scracth)
Thanks,
Luc Bouchard
--- End Message ---