View previous topic :: View next topic |
Author |
Message |
nyk Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/66286827426c11da48f45.gif)
Joined: 28 Aug 2004 Posts: 527 Location: Bern (Switzerland)
|
Posted: Tue Oct 05, 2004 3:19 pm Post subject: php doesn't work anymore! |
|
|
I have a gentoo server on which I installed apache2 and php with emerge.
PHP worked well in apache until I did an "emerge -u world" followed by the cursed etc-update, that somehow always f***s up one or the other config file...
Now I just see the php source code when I look at the page...
I guess I have to load the mod_php module in apache.conf, but I have no idea what it could be called and what other things have to be added back...
Can anybody help?
Last edited by nyk on Tue Oct 05, 2004 11:12 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Tue Oct 05, 2004 3:25 pm Post subject: |
|
|
I believe there is command that restores your etc. Anyway, I refrain from doing emerge -u world. I like to update package that needed to be update one by one. Plus, there is an alternative script that does what etc-update do, which again I forgot what it is again. Oh jeeze, drank too much vodka. _________________ I do what I want, and that's what I do.
GNU World Domination
Carbon |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Tue Oct 05, 2004 5:28 pm Post subject: |
|
|
you most likely updated /etc/conf.d/apache2 make sure you have
-D PHP4
in your options. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nyk Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/66286827426c11da48f45.gif)
Joined: 28 Aug 2004 Posts: 527 Location: Bern (Switzerland)
|
Posted: Tue Oct 05, 2004 11:21 pm Post subject: |
|
|
thanks a lot!
I should have seen that myself, it's the first option in the config file...
But I thought I would have to find the path to the module (and I'm not even sure how it's called) and put it into /etc/apache2/conf/apache2.conf
strange is, the whole APACHE2_OPTS was commented out, even the SSL module (that I don't use... yet)
Guess I have to be more careful when using etc-update, it seem to reset all options by default, doesn't it? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeighborhoodGullwings Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8931566004028d915b022b.jpg)
Joined: 05 Dec 2003 Posts: 159
|
Posted: Wed Oct 06, 2004 2:10 am Post subject: |
|
|
nyk wrote: | Guess I have to be more careful when using etc-update, it seem to reset all options by default, doesn't it? |
No, etc-update doesn't do anything that you don't tell it to do (besides trivial merges). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
zerojay Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/741814427412cc08e469a0.jpg)
Joined: 09 Aug 2003 Posts: 1033
|
Posted: Wed Oct 06, 2004 3:24 am Post subject: |
|
|
NeighborhoodGullwings wrote: | nyk wrote: | Guess I have to be more careful when using etc-update, it seem to reset all options by default, doesn't it? |
No, etc-update doesn't do anything that you don't tell it to do (besides trivial merges). |
Exactly. Be sure that you check each of the files that etc-update wants to update one by one. Do that by typing in the number of the filename you want to see the changes for. It will show you a diff of the two versions and then you can tell it to use the update, delete the update, interactively merge the two and finally to ignore the update.
I'm starting to think the main reason why people are having so many problems with etc-update is because they don't realize that you can actually look file by file and see the changes made. They just think they have the -1, -3 and -5 options. Perhaps it needs to be made more clear within the program itself. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nyk Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/66286827426c11da48f45.gif)
Joined: 28 Aug 2004 Posts: 527 Location: Bern (Switzerland)
|
Posted: Wed Oct 06, 2004 8:48 am Post subject: |
|
|
e.g. for apache or samba it would be the best to just leave the config files as they were before, in my opinion. I mean I want the same settings!
And does it happen often that you have to add new settings to a conf file for the program to work? I mean, would the program just assume a default if you don't have the thing configured in the config file. or tell you by error message, at least... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|