I'm trying to install an application (MediaWiki) that requires PHP 8.1 (or higher). My system (Centos4) had PHP 5.? installed. I couldn't find a suitable PHP 8.1+ on any Centos repositories (I need Posgresql support anyway). So I download the source from the PHP web site and installed it according to the instructions. This was a tremendous task for me since I'm not very familiar with the process. Anyway, eveything seemed to build an install correctly. I can now run PHP from the command line. (I don't know how to program PHP. I just typed "php -v" and it said 8.2.?)
The problem is that apache doesn't see the new PHP that I installed. Do I have to also rebuild Apache or does Centos have some specific place where I need to put some php ".so" file?
PHP Installation Question
Moderator: General Moderators
Re: PHP Installation Question
where did you read that? There is no such version. Sounds more like the required PostgreSQL version.km4hr wrote:that requires PHP 8.1 (or higher).
Oops!
Volka, you're right. I mistakenly used the Postgres version numbers instead of the PHP numbers. (I've only been working on this stinkin' MediWiki install for three darn days!)
I should have said that I installed PHP 5.2.1 from sources. Centos4 came with PHP 4.3 (I think, I've already removed it). How do I get Apache to recognize the 5.2.1 version that I've installed?
Volka, you're right. I mistakenly used the Postgres version numbers instead of the PHP numbers. (I've only been working on this stinkin' MediWiki install for three darn days!)
I should have said that I installed PHP 5.2.1 from sources. Centos4 came with PHP 4.3 (I think, I've already removed it). How do I get Apache to recognize the 5.2.1 version that I've installed?
5.2.0 or where did you download the sources? Please take your time but be more thorough or (web-) development won't be much fun.km4hr wrote:I should have said that I installed PHP 5.2.1 from sources.
http://www.google.de/search?&q=centos%2 ... 225.2.0%22 found http://www.jasonlitka.com/2006/11/30/up ... el-centos/
Volka,
You're right again. I think I'm in the wrong business. Details matter.
I looked at the links you so generously provided. Thank you for your helpfulness. Unfortunately building the rpm package may be beyond my capability. I think I'm getting off on a php tangent anyway. All I really need is wiki. I don't have time to become a php installation expert as much as I'd like to know how. But there are plenty of wiki's available besides MediaWiki. I'm going to start looking around if things don't start happening shortly. All this version stuff makes Java look inviting. Maybe I'll try a Java based wiki next.
BTW, one of the Centos repositories has a version of php compatible with MediaWiki, (5.1.6). I tried it but the MediaWiki installer aborted saying that there was no Postgresql access. I understood that to mean that the php package must have been compiled(?) without the postgres switch turned on. That's how I got started trying to build php from sources. Is there a way to turn on Posgresql access without rebuilding php from scratch?
Thanks again for trying to help me.
You're right again. I think I'm in the wrong business. Details matter.
I looked at the links you so generously provided. Thank you for your helpfulness. Unfortunately building the rpm package may be beyond my capability. I think I'm getting off on a php tangent anyway. All I really need is wiki. I don't have time to become a php installation expert as much as I'd like to know how. But there are plenty of wiki's available besides MediaWiki. I'm going to start looking around if things don't start happening shortly. All this version stuff makes Java look inviting. Maybe I'll try a Java based wiki next.
BTW, one of the Centos repositories has a version of php compatible with MediaWiki, (5.1.6). I tried it but the MediaWiki installer aborted saying that there was no Postgresql access. I understood that to mean that the php package must have been compiled(?) without the postgres switch turned on. That's how I got started trying to build php from sources. Is there a way to turn on Posgresql access without rebuilding php from scratch?
Thanks again for trying to help me.
There is the php core and there are php extensions. Extensions can be built-in (i.e. they more or less become part of the core) or they ship as extension modules. Extension modules often have their rpm of their own. Therefore search the repository for php_pgsql or something similar.km4hr wrote:Is there a way to turn on Posgresql access without rebuilding php from scratch?
http://www.jasonlitka.com/2006/11/30/up ... el-centos/ is quite a step by step how-to for building php on centos. It won't get any easier if you want to compile php from sources.
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: PHP Installation Question
LOL...Now wouldn't that be nicekm4hr wrote:I'm trying to install an application (MediaWiki) that requires PHP 8.1 (or higher).