View previous topic :: View next topic |
Author |
Message |
tux mastered n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2004 Posts: 7
|
Posted: Mon Jun 27, 2005 8:00 pm Post subject: problem with apache-2.0.54-r11
(and php5) [!!solution!!] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Chineseyes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Oct 2003 Posts: 49
|
Posted: Thu Jun 30, 2005 6:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kicior Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3159110744441393c75229.jpg)
Joined: 25 Mar 2005 Posts: 179 Location: Lublin, Poland
|
Posted: Mon Jul 04, 2005 12:25 am Post subject: |
|
|
I have also the same problem. No solution found for now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tecknojunky Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/50759924548a37faf359b7.gif)
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Tue Jul 05, 2005 5:05 pm Post subject: |
|
|
You mean... I upgraded to php5 and now my webapps are all useless? ![Shocked 8O](images/smiles/icon_eek.gif) _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sumerian n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Nov 2004 Posts: 11
|
Posted: Wed Jul 06, 2005 1:42 pm Post subject: Ridiculous |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tux mastered n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Feb 2004 Posts: 7
|
Posted: Sat Jul 09, 2005 12:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tecknojunky Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/50759924548a37faf359b7.gif)
Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Sat Jul 09, 2005 10:43 pm Post subject: |
|
|
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... ![Sad :(](images/smiles/icon_sad.gif) _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|