Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

php installed, but not serving php pages (CentOS 5 - PHP v5)

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

php installed, but not serving php pages (CentOS 5 - PHP v5)

Postby bonannjn » Thu May 26, 2011 7:24 am

Hello,

I've performed somewhat of a hackjob installation of PHP using an RPM I found online... While trying to get PHP linked up with mySQL I seem to have disabled PHP on my web server...

For example running:
# php -v
Yields that I'm running PHP 5.3.6

This is good, however, when I browse to a phpinfo.php page on my web server, it doesn't serve the php page.

I'm running CentOS 5 with MySQL 5.5.

Thanks in advance,
Justin
bonannjn
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu May 26, 2011 7:19 am

Re: php installed, but not serving php pages (CentOS 5 - PHP

Postby egami » Fri May 27, 2011 4:33 am

CentOS is a great OS.

First things first.

"yum" is your friend.

I would remove all "RPM" installs that you've done, and use YUM to update / install.
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: php installed, but not serving php pages (CentOS 5 - PHP

Postby bonannjn » Fri May 27, 2011 8:03 am

Thank you for your reply. However, yum has been anything BUT my friend as of recently. It's been about a week now that I've been trying to setup a LAMP server. I've tried yum, isolated rpm files, building files from source, etc.. Everything has led me into dependency hell in one way or another. Ideally, I'd like MySQL version 5.5+ and PHP version 5.3.6 +.. The farthest I've gotten is a server using MySQL and PhP, unable to communicate between the two because of an Error 2002 issue. I know about the php-mysql package but this was outdated, etc. I then proceeded to hack up the server to try and fix this and I ended up with a box that can no longer serve PHP pages...

So here's where I'm at:
I wiped the old, semifunctional versions off my disk.
I have a fresh, clean CentOS 5 install.
I'd like to use IUS repositories so I can get the newest versions of everything, right from the start.

Any help or guidance is greatly appreciated.
bonannjn
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu May 26, 2011 7:19 am


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.