Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with apache-2.0.54-r11 (and php5) [!!solution!!]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tux mastered
n00b
n00b


Joined: 04 Feb 2004
Posts: 7

PostPosted: Mon Jun 27, 2005 8:00 pm    Post subject: problem with apache-2.0.54-r11 (and php5) [!!solution!!] Reply with quote

hi

i know there are some other theads with nearly the same thema, but i could not find a solution for my problem.

i updated my apache to apache-2.0.54-r11 and my php to php-5.1.0_beta but i have some problems with the configuration...

as i know i have to add -D PHP5 in /etc/conf.d/apache2 that the apache loads the mod_php. but he doesn't and i think the mod_php is right installed...

the problem is somewhere between the /etc/conf.d/apache2 and the starting of apache, becuase i use USERDIR as wel and as i now i can insert also -D USERDIR in the APACHE_OPTS and heshould enable this, but he does not.

the problem with userdir can be changed "ugly" in the /etc/apache2/httpd.conf by
Code:
#<IfDefine USERDIR>
    LoadModule userdir_module            modules/mod_userdir.so
#</IfDefine>

editing like this. not very nice but it works... but how can i get my php running? or that's the problem between conf.d/apache2 and apache2/httpd.conf...

the apache just starts fine except userdir (without my ugly hack) and php...
Code:
utopia root # /etc/init.d/apache2 restart
 * Restarting apache2...                                                                       [ ok ]
utopia root #


i don't know what i can do more and need help ;)

live long and prosper
jan-victor krille


Last edited by tux mastered on Sat Jul 09, 2005 12:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
Chineseyes
n00b
n00b


Joined: 22 Oct 2003
Posts: 49

PostPosted: Thu Jun 30, 2005 6:16 pm    Post subject: Reply with quote

I'm having the exact same problems as you right now and at this point I have given up on using apache2 ebuilds I have not had one clean upgrade using the ebuild to this point and its jsut eating up way to much of my time trying to figure out what is screwed up on each upgrade one day the config file is conf/apach2.conf the next day its httpd.conf mod_ssl doesn't work on upgrade I just compiled apache by scratch and php as well I suggest you do the same and save yourself the time figuring out what was screwed up with the ebuild isn't worth the effort at all.
Back to top
View user's profile Send private message
kicior
Apprentice
Apprentice


Joined: 25 Mar 2005
Posts: 179
Location: Lublin, Poland

PostPosted: Mon Jul 04, 2005 12:25 am    Post subject: Reply with quote

I have also the same problem. No solution found for now.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Jul 05, 2005 5:05 pm    Post subject: Reply with quote

You mean... I upgraded to php5 and now my webapps are all useless? 8O
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
sumerian
n00b
n00b


Joined: 06 Nov 2004
Posts: 11

PostPosted: Wed Jul 06, 2005 1:42 pm    Post subject: Ridiculous Reply with quote

Quote:
i updated my apache to apache-2.0.54-r11 and my php to php-5.1.0_beta but i have some problems with the configuration...

In case you haven't noticed, apache-2.0.54-r11 is ~ masked on all architectures, and php-5* is HARD MASKED.
If you can't figure out how /etc/conf.d/apache2 figures into the apache start sequence, you have no business running masked packages.

Chineseyes, it changed once. If you'd read the emerge output, you'd know you needed to fix the config files. That change was not frivolous. It didn't make sense to have /etc/apache2/conf/ because all other packages tend to have their main config files under /etc/packagename/

The Gentoo /etc/apache2/ and /etc/conf.d/apache2 system is one of the nicest setups I've seen. If you can't figure it out and want to resort to installing from source without ebuilds, go ahead. You're only making upgrades harder on yourself.

You want a mess? Try Debian. Last I checked, it had separate packages for apache and apache-with-ssl. What a mess.
Back to top
View user's profile Send private message
tux mastered
n00b
n00b


Joined: 04 Feb 2004
Posts: 7

PostPosted: Sat Jul 09, 2005 12:26 pm    Post subject: Reply with quote

have found a solution:

you just have to add the -D PHP5 in /etc/conf.d/apache2

and then you have to stop and start the apache. not just restart! or maybe you have to restart your system.
now it wrks for me.

llap jan-victor krille
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Jul 09, 2005 10:43 pm    Post subject: Reply with quote

tux mastered wrote:
have found a solution:

you just have to add the -D PHP5 in /etc/conf.d/apache2

and then you have to stop and start the apache. not just restart! or maybe you have to restart your system.
now it wrks for me.

llap jan-victor krille
You're right. Although I had put -D PHP5 and also had killall/zapped the processes, it was not working. Oddly enough, now it does and I don't have the slightest clue why. One thing I know is that I did not reboot the box, so it still eludes me as to what must be done to kickstart Apache2+PHP5. I was to try rebooting it but decided to check first if it was still not working, and there it was, php outputs in my browser. So it started to work seemlesly on its own. :me scratching head:

Anyhow, I can finally go on and install what ever I wanted to install when I installed Apache2+PHP5, if I can remember what it was... :(
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum