Click to See Complete Forum and Search --> : can't start apache -php :Please HELP


Anon
06-11-2001, 12:16 PM
I can't start apache after loading libphp4 as DSO. get following error
>>>>>>>>>>>>>>>>>>
Syntax error on line 37 of /opt/opwv/sys-a/tools/apache/conf/httpd.conf:
Cannot load /opt/opwv/sys-a/tools/apache/libexec/libphp4.so into server: ld.so.1: /opt/opwv/sys-a/tools/apache/bin/httpd: fatal: relocation error: file /opt/opwv/sys-a/tools/apache/libexec/libphp4.so: symbol php_strip_url_passwd: referenced symbol not found
./apachectl start: httpd could not be started

<<<<<<<<<<<<<<<<<<<

Here's what I did
1) installed apache (static version). version apache-1.3.12-0019 on Solaris 2.6

2) installed php 4.0.5 -
a) configure --with-apxs=<apachePAth>/bin --with-oci8=<oracle home>
b) make
c) make install

3) modify httpd.conf to have libphp4 loaded as DSO (LoadModule, AddModule & AddType)

4) start apache

Please help as I don't know where to shoot

Anon
06-11-2001, 07:28 PM
This error come out :

Fatal error: Call to undefined function: mysql_connect() in /home/azah/public_html/test2.php on line 4

The program on line 4 :
$dbku = mysql_connect("localhost", "koff", "koff123");

Please HELP

Anon
06-12-2001, 05:49 AM
When PHP was installed, it was configured "--withour=MySQL" or it was not defined and set to default wich is without MySQL... I'm not sure if there isa way to add it on, or if you need to rebuild your source.

--Tom

Anon
06-12-2001, 06:53 PM
fyi, i already do this command:

make FLAVORS=mysql FLAVORS=imap
FLAVORS=gettext FLAVORS=pdflib

before do make install

Anon
06-13-2001, 04:26 AM
setenv FLAVOR "mysql imap gettext pdflib"
make
make install

instead you can also edit the makefile, add these to the line that says "FLAVOR?= "
so you don't have to set the enviroment variable every time you make a build