Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache and mod_php problem
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
wudmx
Guru
Guru


Joined: 07 Aug 2002
Posts: 527

PostPosted: Mon Aug 12, 2002 12:24 pm    Post subject: apache and mod_php problem Reply with quote

hi!
ive read several posts here in the forum , but i cannot solve my problem... ive merged apache, then mod_php and finally mysql....

i can start apache by apache (or apache start)... if i visit localhost in opera, everything is fine, the apachemanual-site is shown... but the apache-server doesnt understand php, although i configured it... libphp4.so is in /usr/lib/apache-extramodules/libphp4.so.
i edited /etc/apache/conf/apache.conf and added the line:
LoadModule php4_module /usr/lib/apache-extramodules/libphp4.so
...
.,..
AddModule mod_php4.c

... now i can run the server (apache restart / start), but it doesnt understand the code...

could you please help me out of this problem?
wudmx
Back to top
View user's profile Send private message
zerogeny
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2002
Posts: 85

PostPosted: Mon Aug 12, 2002 12:36 pm    Post subject: Reply with quote

LoadModule php4_module extramodules/libphp4.so
AddModule mod_php4.c

TADA!
_________________
Searched the web for zerogeny.
Results 1 - 1 of 1. Search took 0.05 seconds
Back to top
View user's profile Send private message
wudmx
Guru
Guru


Joined: 07 Aug 2002
Posts: 527

PostPosted: Mon Aug 12, 2002 5:00 pm    Post subject: special thanks to zerogeny Reply with quote

okay, by writing extramodules/ibphp4.so instead of /usr/lib/apache-extramodules/libphp4.so i was successful... but i do not understand it: in both directories is the libphp4.so... so where is the difference? can you explain it to me?

wudmx
Back to top
View user's profile Send private message
EPrime
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2002
Posts: 80
Location: Denmark

PostPosted: Thu Aug 15, 2002 12:17 am    Post subject: Reply with quote

I believe the path Apache looks at for modules is relative (to its base directory), meaning it prepends some path to the one you specify. Since there is no php-module in /usr/local/apache/usr/lib/.. it cannot find it.
Back to top
View user's profile Send private message
wudmx
Guru
Guru


Joined: 07 Aug 2002
Posts: 527

PostPosted: Thu Aug 15, 2002 11:18 am    Post subject: Reply with quote

okay, now i got it!
thank you very much...
wudmx
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