LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2006, 02:28 AM   #1
cultavix
Member
 
Registered: Feb 2004
Location: England
Distribution: RedHat
Posts: 39

Rep: Reputation: 15
Apache...OK.....PHP......uuuhhh


Hey guys...

SO I have Apache up and running and a website runnning perfectly. Thing is, I cant get the PHP module to load up. I follow the instructions on the php.net website and they seeem to be for the version of apache2.0 not 2.2...and I know that from 2.0 to 2.2 they changed their def. directory am I correct? Anyhow, I am running Fedora 4 and Apache 2.2 and apparently I have PHP5 installed, but I cant find the *.so file that I need to load into Apache....maybe I need to change something in the way PHP installs?

Thanks...
 
Old 04-07-2006, 03:32 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Do you have:
Code:
LoadModule php5_module    modules/libphp5.so
somewhere in one of your apache conf files?

You will also have to add:
Code:
AddType application/x-httpd-php .php
So apache knows to send *.php files to the interpreter. You don't really need to know where the .so file is, as long as apache can find it, and if it is installed properly it shouldn't be a problem.
 
Old 04-07-2006, 03:38 AM   #3
cultavix
Member
 
Registered: Feb 2004
Location: England
Distribution: RedHat
Posts: 39

Original Poster
Rep: Reputation: 15
I found my solution here.

http://mapserver.gis.umn.edu/docs/ho...ing_source_php

Now i just need to figure out how to get MySQL up and running
and its asking me now for PerlDBI which I cant get to work...,
 
Old 04-07-2006, 04:28 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Why are you installing PerlDBI if you are using php?
 
Old 04-07-2006, 01:27 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
bulliver: Perl DBI is needed for mysql.

cultavix: get a perl dbi package from your distro. If you've compiled php from source and you want mysql support, you'll need to recompile php.
And change the AddType to AddHandler. While both work, in the context of being correct with apache, AddHandler is the right directive to use for php.

Last edited by megaspaz; 04-07-2006 at 01:29 PM.
 
  


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
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:03 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