Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php doesn't work anymore!
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
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Tue Oct 05, 2004 3:19 pm    Post subject: php doesn't work anymore! Reply with quote

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
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Tue Oct 05, 2004 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue Oct 05, 2004 5:28 pm    Post subject: Reply with quote

you most likely updated /etc/conf.d/apache2 make sure you have
-D PHP4
in your options.
Back to top
View user's profile Send private message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Tue Oct 05, 2004 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeighborhoodGullwings
Apprentice
Apprentice


Joined: 05 Dec 2003
Posts: 159

PostPosted: Wed Oct 06, 2004 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message
zerojay
Veteran
Veteran


Joined: 09 Aug 2003
Posts: 1033

PostPosted: Wed Oct 06, 2004 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
nyk
Guru
Guru


Joined: 28 Aug 2004
Posts: 527
Location: Bern (Switzerland)

PostPosted: Wed Oct 06, 2004 8:48 am    Post subject: Reply with quote

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
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