Problems to start webserver after PHP upgrade!

Support/Development for PHP
redman18
Forum User
Forum User
Posts: 11
Joined: Fri Jan 04, 2008 7:32 pm

Problems to start webserver after PHP upgrade!

Unread post by redman18 »

Dear, all,
Can someone help me?
I got problems after upgrade php from php.x86_64 4.3.9-3.22 to newer.
I tried to do all as it is in - http://www.atomicorp.com/wiki/index.php/PHP

Now:
1) can not get finish with php-pear
2) after yum update can not start apache and bind services

What can I do?

[root@globalproject login]# rpm -q php
php-5.2.6-1.el4.art
[root@globalproject login]# yum install php-pear
Loading "repoheader" plugin

repo id repo name status
======= ========= ======
addons CentOS-4 - Addons enabled
atomic CentOS / Red Hat Enterprise Linux 4 enabled
base CentOS-4 - Base enabled
centosplus CentOS-4 - Plus enabled
extras CentOS-4 - Extras enabled
plesk Plesk Server Administrator enabled
update CentOS-4 - Updates enabled

Setting up Install Process
Setting up repositories
plesk 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
atomic 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear.noarch 1:1.5.0-5.el4.art set to be updated
---> Package php-pear.x86_64 0:4.3.9-3.22.12 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.12 for package: php-pear
--> Finished Dependency Resolution
Error: Missing Dependency: php = 4.3.9-3.22.12 is needed by package php-pear
[root@globalproject login]# rpm -q php-pear
package php-pear is not installed

[root@globalproject login]# ps ax | grep named
5073 pts/0 S+ 0:00 grep named
[root@globalproject login]# /etc/init.d/named start
Starting named:
Error in named configuration:
/etc/named.conf:6: change directory to '/var/named' failed: file not found
/etc/named.conf:6: parsing failed
[FAILED]
redman18
Forum User
Forum User
Posts: 11
Joined: Fri Jan 04, 2008 7:32 pm

Re: Problems to start webserver after PHP upgrade!

Unread post by redman18 »

Ok! httpd problem I solved - thats ok, but still have problems with BIND

ERROR: PleskFatalException
Create ShortcutCreate Shortcut
Up LevelUp Level
Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start

0: /usr/local/psa/admin/plib/common_func.php3:154
psaerror(string 'Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28

(need some comment for php-pear how it is important and how could solve instalation problem?)
Slider
Forum User
Forum User
Posts: 42
Joined: Sat May 17, 2008 3:41 pm

Unread post by Slider »

This helped me: I also had to add this line back into /etc/sysconfig/named:
ROOTDIR="/var/named/run-root"
It was removed either by Plesk or uninstalling bind-chroot.
redman18
Forum User
Forum User
Posts: 11
Joined: Fri Jan 04, 2008 7:32 pm

Unread post by redman18 »

Thanks, for advise :)

I looked in /etc/sysconfig/named, there is that line.
But still have problems, I will try to check permisions.

# Currently, you can use the following options:
# ROOTDIR="/some/where" -- will run named in a chroot environment.
# you must set up the chroot environment before
# doing this.
# OPTIONS="whatever" -- These additional options will be passed to named
# at startup. Don't add -t here, use ROOTDIR instead.

ROOTDIR="/var/named/run-root"
OPTIONS="-c /etc/named.conf -u named"

Slider wrote:This helped me: I also had to add this line back into /etc/sysconfig/named:
ROOTDIR="/var/named/run-root"
It was removed either by Plesk or uninstalling bind-chroot.
redman18
Forum User
Forum User
Posts: 11
Joined: Fri Jan 04, 2008 7:32 pm

Unread post by redman18 »

SOLVED :)

problem with bind-chroot module.
need to update yum update pkgSkiplist.

here is info if some one else got problem like this:
http://forum.swsoft.com/showthread.php?t=22147
Post Reply