LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2004, 07:32 PM   #16
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30

OK before you give up, let's try installing Apache and PHP from source (if MySQL is working fine from the RPMs then we'll just leave that). So remove the PHP-MySQL, PHP and Apache2 RPMs, download the latest source code (from http://httpd.apache.org and http://php.net) and do the following:

Code:
cd /tmp
tar zxvf /path/to/httpd-2.0.49.tar.gz
cd httpd-2.0.49
./configure --prefix=/usr/local/apache2 --enable-so
make
su
make install
exit
cd ..
tar jxvf /path/to/php-4.3.6.tar.bz2
cd php-4.3.6
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs
make
su
make install
Now you'll need to edit your Apache config file which should be at /usr/local/apache2/conf/httpd.conf and put the following lines in there if they aren't already:

Code:
LoadModule php4_module  modules/libphp4.so
AddType application/x-httpd-php .php
DirectoryIndex index.html index.html.var index.php               <-- this line should already be there, but you should add the index.php on to the end
If you need to edit your php.ini file (for include settings or whatever) it should be located at /usr/local/php/lib/php.ini. Also you might want to soft-link /usr/local/apache2/bin/apachectl to /usr/bin or something (or at /usr/local/apache2/bin to your $PATH).

Let me know how you go!
 
Old 05-26-2004, 09:37 AM   #17
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by miknight


Code:
LoadModule php4_module  modules/libphp4.so
This is really weird, but the line above is not in httpd.conf. Yet when I add it and restart httpd, it says that module php4_module is already loaded!
Strange, strange, strange.

I caught this while researching the problem:

and uncomment the line
FROM THIS
;extension=mysql.so
TO THIS
extension=mysql.so

(This was a Debian user). It solved his problem.


So I looked in /etc/php.ini for mysql.so. It wasn't there, but I saw this:

;;;;
; Note: For Red Hat Linux, packaged extension modules are now loaded via
; the ini files in the directory /etc/php.d.
;;;;

In /etc/php.d is only one file, mysql.ini, with the one line
extension=mysql.so

Should this really work? Clearly it is not. But putting extension=mysql.so into php.ini didn't work either.

Hmm.
 
Old 05-26-2004, 10:53 AM   #18
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
All this distro-specific stuff is way outside my experience. Sorry but I don't think I can help you anymore with this.
 
Old 05-26-2004, 05:53 PM   #19
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Original Poster
Rep: Reputation: 30
You've already been a huge help. Thanks again for your time, effort, and expertise!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What to type in apt-get install to install mysql PHP libraries sarajevo Debian 1 09-29-2005 06:40 AM
confused on php and Mysql install spedsta Linux - Software 3 11-05-2004 02:36 PM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 07:54 PM
MySql-Php install PatC Linux - Newbie 4 07-02-2002 12:36 PM
How to install php and mysql supersunny Linux - Software 1 09-04-2001 11:28 AM


All times are GMT -5. The time now is 05:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration