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] 


--
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]

Reply via email to