LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 30
Installing php on CentOS 4.2


Hello,
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, 10:19 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
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, 12:19 PM   #3
Digital Surgeon
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu 7.10 - Gutsy Gibbon(Desktop Edition)
Posts: 184

Original Poster
Rep: Reputation: 30
clarification

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

I ran:
cd /php
then
./configure
make
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/libphp5.so

and

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
 
  


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


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