Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 01-04-2006, 06:25 PM   #1
Digital Surgeon
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Rep: Reputation: 30
Installing php on CentOS 4.2

I am trying to configure the latest version of php on Apache webserver. I am finding it hard to see the similarites between php on win and linux. I understand loading your modules. But specifying your php ini file is leading me to major confusion. Can someone please explain the diff of php on linux compared to php on windows in the configuration method.
Old 01-04-2006, 09:19 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Can you provide more details about exactly what you are trying to do and where you are facing problems. PHP on Windows and Linux is basically the same.
Old 01-05-2006, 11:19 AM   #3
Digital Surgeon
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30

I am trying to install php support on Apache:
php installation dir is /php

I ran:
cd /php
make install
cp php.ini-dist /usr/local/lib/php.ini
**my question is how does the httpd.conf know to look for the php.ini in this lib dir.**

then since Im using php 5
I added these line to my httpd.conf file

Loadmodule php5_module libexec/


AddType application/x-httpd-php .php .phtml

I guess to clarify my question in Win you add these two line and phpini dir "c:/dirname"
Like what is linux's regime for apache knowing where the php ini is?

this is the best way I can translate my question so I hope this is clear


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
Installing CentOS easy_bill Linux - Newbie 5 10-02-2006 09:47 PM
some help with CentOS PHP issue please! renegadeavenger Red Hat 5 08-08-2005 08:33 PM
Installing CentOS robyne Linux - Newbie 2 06-24-2005 01:25 PM
Need advice on Installing JRE on Centos Tony.Reid Linux - Newbie 3 06-12-2005 08:28 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:21 PM.

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