Click to See Complete Forum and Search --> : PHP not on?


ssfourgoku
03-10-2003, 12:51 PM
I installed all the server packages and php-mysql on the net, but when i run this bulletin board thing it says php is not running... how do i check if it is..? and if it isnt how do i turn it on?

z0mbix
03-10-2003, 12:59 PM
Depending on how you installed php and apache and on which distro, you may have to edit httpd.conf manually to add the php lines.

blizz
03-10-2003, 01:05 PM
Check that Apache is set to link PHP pages with PHP.

Edit your httpd.conf. Add (or uncomment) the lines:

AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps

ssfourgoku
03-10-2003, 10:44 PM
still not working.... i did

<html>
<heading><title></title></heading>

<body>

<?

phpinfo()

?>

</body>

</html>

and still i get a blank page!

iDxMan
03-10-2003, 11:31 PM
try:


<?php phpinfo(); ?>


Most likely the short tags (just <? without <?php) are enabled, but you never know.

(I assume you've restarted apache if you had to add the `addType` lines to your config)

btw, what did you name your test file?


-r

ssfourgoku
03-10-2003, 11:53 PM
tat didnt work either

tell me the addlines again...

im using apache 2.0
and i think php4.0

how do i find out which i have?
But ya, im saving them like test.php that should work no?