PHP, apache on solaris
| From: | Aaron V | Date: | Thu, 26 Jul 2001 16:07:27 +0000 |
| Subject: | PHP, apache on solaris | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3714@lists.php.net to get a copy of this message | ||
Hi all!
Apache is the included version from Solaris 8 Distribution. PHP is the
latest from the website. MySQL is also installed via pkgadd from
sunfreeware.com.
# /usr/apache/bin/apachectl start
Syntax error on line 235 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
/usr/apache/bin/httpd: fatal: relocation error: file
/usr/apache/libexec/libphp4.so: symbol php_printf: referenced symbol not
found
/usr/apache/bin/apachectl start: httpd could not be started
# echo $LD_LIBRARY_PATH
/usr/lib:/usr/local/lib:/usr/local/mysql/lib:/usr/local/mysql/lib/mysql
Line 235 of httpd.conf:
LoadModule php4_module /usr/apache/libexec/libphp4.so
with:
AddModule mod_php4.c
and of course:
AddType application/x-httpd-php .php .php3 .php4 .phtml .phps
If I pull these lines (except the application), apache starts, but it tries
to "Save" when I go to a .php file.
If I try to recompile Apache 1.3.20, I receive:
Undefined first referenced
symbol in file
mysql_get_host_info modules/php4/libphp4.a(php_mysql.o)
mysql_get_client_info modules/php4/libphp4.a(php_mysql.o)
...
mysql_init modules/php4/libphp4.a(php_mysql.o)
ld: fatal: Symbol referencing errors. No output written to httpd
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `target_static'
Current working directory /opt/apache_1.3.20/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /opt/apache_1.3.20
*** Error code 1
make: Fatal error: Command failed for target `build'
I did configure php --with-mysql and --with-apache.
TIA!
-Aaron