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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-07-2006, 02:28 AM
|
#1
|
Member
Registered: Feb 2004
Location: England
Distribution: RedHat
Posts: 39
Rep:
|
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...
|
|
|
04-07-2006, 03:32 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
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.
|
|
|
04-07-2006, 03:38 AM
|
#3
|
Member
Registered: Feb 2004
Location: England
Distribution: RedHat
Posts: 39
Original Poster
Rep:
|
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...,
|
|
|
04-07-2006, 04:28 AM
|
#4
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Why are you installing PerlDBI if you are using php?
|
|
|
04-07-2006, 01:27 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|