LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-26-2007, 05:11 AM   #1
paul123
Member
 
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Rep: Reputation: 15
Question PHP integration with Apache problem


I have problems integrating PHP with Apache, both of which are new ground for me, unfortunately the teach yourslef book I bought doesnt quiet relate to my installation and so im in a bit of a muddle. I installed from rpm,s. Ive done alot of work towards sorting my problem but im getting knowhere fast. Some of the directories the book the teachyourself book uses eg. /usr/local, are empty, so the examples and help are not helping me.

Ive run into this # cp php.ini-recomended /usr/local/lib/php.ini but in pretty sure this is going to be the wrong location on my installation. However the next line in the book troubles me more.

#cp libs/libphp5.so /usr/local/apache2/modules again a problem with where things are on my installation. eg. im not using usr/local and I have no apache2 directory that I can find. I also dont have libphp5.so.

On looking for libphp5.so ive found this seems to be normally derived from some configuration using apxs??? However I didnt install from binaries using config, make, make install. Because of mandriva rpm functionality I decided to use rpms.

I installed apache and it is up and running ok. Server version: Apache/2.2.3 (Mandriva Linux / PREFORK - 1mdv2007.0), running on mandriva 2007.

The book I bought "Sam's teach your self, PHP, Mysql and Apache" tells me I need to make sure libphp5.so is loaded as a module in httpd.conf. Obviously I cant do this. I Searched round my system and I found libphp5_common.so.5 in /usr/lib.

I suspect this is generated from the package libphp5_common5_5.1.6-1.6mdv2007.0, is this what I need to put in httpd.conf?

Mandriva tells me that apache-mod_php-5.1.6 -2mdv2007.0 is used to integrate php into apache but obviously with no module being loaded via httpd.conf this is not happening. Tested by putting a .php script into /var/www. No luck.

Ive spent hours on this searching the net and getting knowhere. Any help is much appreciated.
 
Old 02-26-2007, 04:07 PM   #2
paul123
Member
 
Registered: Nov 2006
Location: UK
Distribution: Mandriva 2007
Posts: 93

Original Poster
Rep: Reputation: 15
ok it seems I need this mod_php5.so in httpd.conf the question i now have is this. the file is symbolic linked in httpd/extramodules so do i do the .conf entry like this? LoadModule php5_module extramodules/mod_php5.so or do I move the file into httpd/modules? What is correct?
 
  


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
php curl integration problem tstName Linux - Software 0 06-27-2006 03:05 AM
Problem with Squid + Apache Integration Charles Daniel Linux - Security 8 09-22-2004 06:49 AM
Tomcat and apache Integration basbosco Linux - Software 0 04-14-2004 05:04 AM
PHP + MySQL Integration issue digitalgravy Linux - Software 1 01-15-2004 11:07 AM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

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