LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2001, 06:43 AM   #1
tina_gora
LQ Newbie
 
Registered: May 2001
Posts: 5

Rep: Reputation: 0
Angry


Hi! All,

I have installed 1) apache_1.3.14 and installed it with following options:

./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max

Then installed PHP4.0.5 with following options
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs

and get the following error during "make install"

Syntax error on line 238 in httpd.conf

Cannot load /usr/local/apache/libexec/libphp4.so into server:libmysqlclient.so.6 cannot open shared object: No such file or directory

But the file over there exists....

Please help.....
 
Old 05-28-2001, 08:20 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Question

Can you post the relevant section of httpd.conf for us - say lines 235 - 240...

Cheers!

Jamie...
 
Old 05-28-2001, 10:00 PM   #3
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
The configure script is having problems finding your MySQL libs. Try using --with-mysql=/usr/local (assuming you have the mysql libs installed). If you don't then just use --with-mysql or install the libs.
 
Old 05-31-2001, 06:31 AM   #4
tina_gora
LQ Newbie
 
Registered: May 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks! for your support. Jeremy, you are right... It is not able to find the path for mysql libs...

The line is as under:

LoadModule PHP4-module libexec/libphp4.so

I am able to remove the error by creating a shortcut as given in the method at the website http://marc.theaimsgroup.com

but the php code embedded in html is not working...

The test code is
<HTML>
<?php
phpinfo();
?>
</HTML>



 
Old 05-31-2001, 06:40 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Does your file has the extension of .php? Have you enabled the handler on your httpd.conf (the installer might do this for you).
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

HTH

Jamie...
 
Old 05-31-2001, 02:04 PM   #6
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Rep: Reputation: 15
also....

make sure in httpd.conf, that you are adding the module after loading it... it should look like this...
Code:
AddModule mod_php4.c
that should be put in the AddModules section of httpd.conf..

FU%K! two edits... I cannot type today!

[Edited by doodah on 05-31-2001 at 03:07 PM]
 
Old 05-31-2001, 11:47 PM   #7
tina_gora
LQ Newbie
 
Registered: May 2001
Posts: 5

Original Poster
Rep: Reputation: 0
Wink Problem Solved!!!

Hello!

First, thanks a lot for your technical support.

I was not just keeping the files in /usr/local/apache/htdocs which is the default path specified by DocumentRoot in httpd.conf.

Thanks!
Tina


Hi! Guys,

I am using the extension as .php

Also, I have put the lines told by Jharris.. Thanks! Jharris..

Moreover, the following 2 exists:

LoadModule php4_module libexec/libphp4.so

AddModule mod_php4.c

But in vain...

Friends, What shud I do now...

Tina

Last edited by tina_gora; 07-19-2001 at 08:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add options in php.in after installation of PHP? touqeeransar Linux - Software 1 11-30-2005 04:52 AM
PHP installation problem ridge321 Linux - Newbie 6 02-06-2005 11:17 AM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
php installation problem varala_kanth Linux - Software 1 06-07-2004 11:33 AM
php installation problem firedude Linux - Software 3 12-27-2003 09:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration