You are not logged in.

#1 2006-06-27 21:56:53

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Can't fix Apache after last upgrade

Hi everyone,

I knew it was somewhat a major upgrade for Apache (actually, for almost the whole system, as i downloaded 400+mb including rebuilds), so i reserved the  upgrade command for a time where i could try and fix if anything went wrong.

Im glad i did! Because although its much less a problem than i thought it would be, i cant get Apache to start.

I (think) already adapted to the new httpd.conf and extras/httpd-... configuration files... but i must be missing something, as i get a FAIL everytime i try to start it.

I cant seem to find any error in any log, where should i look for some more information about why its not working?


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#2 2006-06-28 00:10:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Can't fix Apache after last upgrade

Try installing/reinstalling apr and apr-util

Offline

#3 2006-06-28 02:49:43

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Can't fix Apache after last upgrade

I had the same problem. I did re-install both "apr and apr-util" as suggested by Snowman but at the end what fixed it was to copy the file httpd.conf.pacman into httpd.conf
The file is found int /etc/httpd/conf just save your original httpd.conf under a new name and then re-name the httpd.conf.pacman to httpd.conf

Naturally, all the other programs that are related to that file have to be re-declared in the new file. Like PHP and mySQL, etc.

Offline

#4 2006-06-28 07:55:40

codecop
Member
Registered: 2005-03-29
Posts: 10

Re: Can't fix Apache after last upgrade

now apache is working, but i cant include

LoadModule php4_module         lib/apache/libphp4.so

in older apache were was no problem, how to resolve it?

Offline

#5 2006-06-28 15:55:27

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Can't fix Apache after last upgrade

Snowman wrote:

Try installing/reinstalling apr and apr-util

I will try that as soon as im back home. Thank you.

I had the same problem. I did re-install both "apr and apr-util" as suggested by Snowman but at the end what fixed it was to copy the file httpd.conf.pacman into httpd.conf
The file is found int /etc/httpd/conf just save your original httpd.conf under a new name and then re-name the httpd.conf.pacman to httpd.conf

Naturally, all the other programs that are related to that file have to be re-declared in the new file. Like PHP and mySQL, etc.

I already had migrated my config files, thats not the problem. Thanks anyway. I was thinking it could be an option i forgot to set or something like that.


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#6 2006-06-28 18:00:24

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: Can't fix Apache after last upgrade

codecop wrote:

now apache is working, but i cant include

LoadModule php4_module         lib/apache/libphp4.so

in older apache were was no problem, how to resolve it?

The new update uses php5 now, so change it to:

LoadModule php5_module             modules/libphp5.so

Offline

#7 2006-06-28 18:27:13

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Can't fix Apache after last upgrade

The new apache uses php5 now, so change it to:
Code: LoadModule php5_module             modules/libphp5.so

That is neat and dundy is he has PHP 5 installed. If he has 4 he should yet be able to link to the libraries. I think that that is the point he is trying to make here.

I would inspect the previous config file and make sure you have the correct references, then make sure that those references are indeed in the correct path.

Naturally, the other option is "pacman -Sy php" and move on to the newest vervsion.

Offline

#8 2006-06-28 19:36:02

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: Can't fix Apache after last upgrade

ralvez wrote:

The new apache uses php5 now, so change it to:
Code: LoadModule php5_module             modules/libphp5.so

That is neat and dundy is he has PHP 5 installed. If he has 4 he should yet be able to link to the libraries. I think that that is the point he is trying to make here.

I would inspect the previous config file and make sure you have the correct references, then make sure that those references are indeed in the correct path.

Naturally, the other option is "pacman -Sy php" and move on to the newest vervsion.

I don't think it is the point, if he had Php 4, and did a system update, it was updated to Php 5. So yeah... there's a 99.9% chance that he no longer has 4, and now has 5. The fact of the matter is, the php4 plugin if it was there, the command he is using WILL load it. But, his topic says He did a system upgrade, therefor php4 was updated to php5.

Offline

#9 2006-06-28 21:55:29

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Can't fix Apache after last upgrade

I don't think it is the point, if he had Php 4, and did a system update, it was updated to Php 5

You are correct! I did not take into account that a full update was made; therefore, you are correct in your observation.

Offline

#10 2006-06-29 09:45:23

codecop
Member
Registered: 2005-03-29
Posts: 10

Re: Can't fix Apache after last upgrade

Hi all,
i upgradet system but i didnt upgrade php, mysql

$ pacman -Q php
php 4.4.0-2
$ pacman -Q mysql
mysql 4.1.14-1
$ pacman -Q apache
apache 2.2.2-5



still cant include php4 in apache

LoadModule php4_module         modules/libphp4.so

it located in /etc/httpd/modules/libphp4.so

maybe i have to recompile (and define some new apaches paths) php4 to work in new apache?

Offline

#11 2006-06-29 13:14:25

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Can't fix Apache after last upgrade

Is it not that the path has to be /usr/lib/apache/libphp4.so in order to be found by the apache server?

Offline

#12 2006-06-29 14:06:11

codecop
Member
Registered: 2005-03-29
Posts: 10

Re: Can't fix Apache after last upgrade

ralvez wrote:

Is it not that the path has to be /usr/lib/apache/libphp4.so in order to be found by the apache server?

both variants dont work:

LoadModule php4_module             /usr/lib/apache/libphp4.so
#LoadModule php4_module             modules/libphp4.so

and no logs in httpd error_log file
before update was no problems

Offline

#13 2006-06-29 14:56:54

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Can't fix Apache after last upgrade

Sorry, I did not express myself very well last time.
What I meant to say was that "libphp4.so" should be in the directory: /usr/lib/apache/ for Apache to read it. The other line "LoadModule php4_module" I think is OK.

Offline

#14 2006-06-29 21:01:41

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Can't fix Apache after last upgrade

Snowman wrote:

Try installing/reinstalling apr and apr-util

Just to let everyone know that this fixed it... i didnt had apr/apr-util installed, why didnt install itself when apache was upgraded?

About the php4 and php5 issue:

ralvez is right, you should have the libphp4.so in your modules directory (and a symlink to that directory inside /etc/httpd) if you want php4 support in Apache... you should search for that file in the system.


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#15 2006-07-01 15:05:12

codecop
Member
Registered: 2005-03-29
Posts: 10

Re: Can't fix Apache after last upgrade

No, this dont helped, when i installing php5 all ok, when installing php4 apache not starting.

Offline

Board footer

Powered by FluxBB