View previous topic :: View next topic |
Author |
Message |
wudmx Guru
Joined: 07 Aug 2002 Posts: 527
|
Posted: Mon Aug 12, 2002 12:24 pm Post subject: apache and mod_php problem |
|
|
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 |
|
|
zerogeny Tux's lil' helper
Joined: 17 Apr 2002 Posts: 85
|
Posted: Mon Aug 12, 2002 12:36 pm Post subject: |
|
|
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 |
|
|
wudmx Guru
Joined: 07 Aug 2002 Posts: 527
|
Posted: Mon Aug 12, 2002 5:00 pm Post subject: special thanks to zerogeny |
|
|
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 |
|
|
EPrime Tux's lil' helper
Joined: 10 Aug 2002 Posts: 80 Location: Denmark
|
Posted: Thu Aug 15, 2002 12:17 am Post subject: |
|
|
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 |
|
|
wudmx Guru
Joined: 07 Aug 2002 Posts: 527
|
Posted: Thu Aug 15, 2002 11:18 am Post subject: |
|
|
okay, now i got it!
thank you very much...
wudmx |
|
Back to top |
|
|
|