Page 1 of 2

Missing mod_php5.so

Posted: 2012/05/07 14:33:55
by gw1500se
I am in the process of migrating from Mandriva to Centos and have run into a couple of problems. Some of which may be because I am Mandriva oriented not yet Centos.

1) I cannot start Apache because I am missing mod_php5. I cannot find that in yum anywhere.

2) I cannot configure my display for X because all the tools I've read about are missing (Xconfigurator, system-configure-display, xrandr).

I obviously need someone to do a little hand holding to get me through this migration as I'm sure other issues will come up.

Thanks.

Missing mod_php5.so

Posted: 2012/05/07 20:15:32
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

No CentOS-6 or 3rd party package provides mod_php5.so so it should not be required for Apache. Are you using the distro httpd or something else? What does "rpm -q httpd" show?

The xorg-x11-server-utils package provides [b]xrandr[/b]. For more help on the graphics we may need more information about your hardware. Please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh" and showing us the output file.

Re: Missing mod_php5.so

Posted: 2012/05/08 09:52:57
by markkuk
[quote]
gw1500se wrote:
1) I cannot start Apache because I am missing mod_php5. I cannot find that in yum anywhere.
[/quote]
CentOS PHP module for Apache httpd is called "libphp5" and it's provided by the "php" package. Did you copy your httpd configuration directly from Mandriva?
[quote]
gw1500se wrote:
2) I cannot configure my display for X because all the tools I've read about are missing (Xconfigurator, system-configure-display, xrandr).
[/quote]
Are you sure that the documentation you have been reading is for CentOS/RHEL/SL 6 and not for some other version or distribution? Both Xconfigurator and system-config-display are obsolete and don't exist in CentOS 6. X should be able to autoconfigure most display setups. What's the actual problem that you have when you try to start X?

Re: Missing mod_php5.so

Posted: 2012/05/09 10:04:55
by gw1500se
Thanks for the reply.
[quote]
markkuk wrote:
CentOS PHP module for Apache httpd is called "libphp5" and it's provided by the "php" package. Did you copy your httpd configuration directly from Mandriva?
[/quote]
I did. It is now obvious that this migration will not be as simple as I hoped. I therefore restored the install config but that did not help much. While Apache now seems to start (multiple httpd's running, seems to me there should only be 1) it apparently is not listening on port 80, or at least the browser times out. In checking the logs, there is nothing in access_log and just normal startup messages in error_log.
[quote]
Are you sure that the documentation you have been reading is for CentOS/RHEL/SL 6 and not for some other version or distribution? Both Xconfigurator and system-config-display are obsolete and don't exist in CentOS 6. X should be able to autoconfigure most display setups. What's the actual problem that you have when you try to start X?[/quote]
Yes but since the autoconfigure did not come up with the correct settings for some reason, I looked to do it manually. The main problem is that it is choosing the wrong width for my monitor so the right and left sides are off the screen by a considerable amount. Since this monitor is connected via a KVM switch, I cannot keep readjusting the monitor settings each time I switch between systems.

Re: Missing mod_php5.so

Posted: 2012/05/09 10:31:31
by pschaff
What happens if you just restart X with the display active? Sometimes X gets confused with some KVM switches and sees the wrong resolution when the display is not active. Did you try [b]xrandr[/b]?

Re: Missing mod_php5.so

Posted: 2012/05/09 12:02:47
by gw1500se
[quote]
pschaff wrote:
What happens if you just restart X with the display active? Sometimes X gets confused with some KVM switches and sees the wrong resolution when the display is not active.[/quote]
I'm not sure what you mean. Are you suggesting I startx from Konsole within KDE? If you mean when logging in via the ChUI first, that is what I do all the time.
[quote]
pschaff wrote:
Did you try [b]xrandr[/b]?[/quote]
That is where I started. That command does not exist which is why I went looking for it, Xconfigurator or system-configure-display, hoping I could find some tool do the config manually.

Re: Missing mod_php5.so

Posted: 2012/05/09 13:22:20
by pschaff
[quote]
gw1500se wrote:
I'm not sure what you mean. Are you suggesting I startx from Konsole within KDE? If you mean when logging in via the ChUI first, that is what I do all the time.[/quote]
No idea what a ChUI is, but a sufficient condition for restarting X is to log out and enter [b]Ctrl-Alt-Bksp[/b] at the GUI login screen, or in a text-mode console as [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]root[/url]
[code]telinit 3 ; telinit 5[/code]
[quote]
That is where I started. That command does not exist which is why I went looking for it, Xconfigurator or system-configure-display, hoping I could find some tool do the config manually.[/quote]
If you had [i]read[/i] post #2 you might have tried[code]yum install xorg-x11-server-utils[/code]:-(

Re: Missing mod_php5.so

Posted: 2012/05/09 13:45:46
by gw1500se
[quote]
pschaff wrote:
No idea what a ChUI is, but a sufficient condition for restarting X is to log out and enter [b]Ctrl-Alt-Bksp[/b], or in a text-mode console as [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]root[/url][/quote]
[b]Ch[/b]aracter [b]U[/b]ser [b]I[/b]nterface or what you called text-mode. Yep, that is what I do.
[quote]
pschaff wrote:
If you had [i]read[/i] post #2 you might have tried[code]yum install xorg-x11-server-utils[/code]:-([/quote]
I did and I did but it was still missing. Something must have gone wrong during the install. I did an uninstall and reinstall and then it showed up. I haven't tried it yet as I am currently remote.

However, my main concern at this point is to get Apache working.

Re: Missing mod_php5.so

Posted: 2012/05/09 14:06:23
by pschaff
[quote]
gw1500se wrote:
...
I therefore restored the install config but that did not help much. While Apache now seems to start (multiple httpd's running, seems to me there should only be 1) it apparently is not listening on port 80, or at least the browser times out. In checking the logs, there is nothing in access_log and just normal startup messages in error_log.
...
However, my main concern at this point is to get Apache working.[/quote]
Multiple threads are normal.

Are you sure port 80 is open in the firewall? Have you tried temporarily putting SELinux in permissive mode with "setenforce 0"? If you copied over the website from another system it is likely that the SELinux security context is incorrect and needs to be fixed. A forum search on [url=https://www.centos.org/search.php?query=apache+selinux&mid=30&action=showall&andor=AND]apache selinux[/url] and/or the Wiki SELinux articles may help if that is the case:

http://wiki.centos.org/HowTos/SELinux
http://wiki.centos.org/TipsAndTricks/SelinuxBooleans

Re: Missing mod_php5.so

Posted: 2012/05/09 14:10:42
by gw1500se
OK, I think I am moving forward. Apache works but only from localhost. I obviously need to do some configuring now.