Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_php probllem
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
SouthOfHeaven
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 128

PostPosted: Wed Apr 09, 2003 9:02 am    Post subject: mod_php probllem Reply with quote

ive searched the forum on errors with mod_php and i did a bunch of stuff to try to get it working but nothing works.
in apache.conf i have
Code:

LoadModule php4_module  extramodules/libphp4.so
AddModule mod_php4.c
Include conf/addon-modules/mod_php.conf


i start apache with

Code:
apachectl start

then i have this little test script in one of my vhost directories the test file looks like this

test.php
Code:

<html>
<head><title>PHP Info</title></head>
<body>
<?
php phpinfo();
echo "this is a test<p>";
?>
test
</body>
</html>


and well if i try to access the page nothing shows up, but the page gets the title, there is also nothing useful in my apache error_log. Id appreciiate any help please.
Back to top
View user's profile Send private message
Woland
Apprentice
Apprentice


Joined: 02 Aug 2002
Posts: 248
Location: Russian Jack, Alaska

PostPosted: Wed Apr 09, 2003 9:08 am    Post subject: Reply with quote

Create a file called phpinfo.php where your browser can get to it. The file only needs one line:
Code:

<? phpinfo() ?>

Try opening that with your browser, and see what you get.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Apr 10, 2003 3:33 pm    Post subject: Reply with quote

Wody's issue has been split off to apache / php and PHP4 option.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ozt
Apprentice
Apprentice


Joined: 13 Dec 2002
Posts: 212
Location: Stockholm

PostPosted: Thu Apr 10, 2003 7:16 pm    Post subject: Reply with quote

apachectl stop
/etc/init.d/apache start
..once again: IT WORKED FOR ME :D
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