Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Uncooperative PHP

807557Mar 7 2006 — edited Mar 23 2006
I have compiled and installed PHP following the directions on http://meljr.com/~meljr/PHPSolaris10.html. Everything seems to have gone well (I did have some problems, discussed on these threads: http://forum.sun.com/thread.jspa?threadID=25033&start=15&tstart=0 and http://forum.sun.com/thread.jspa?threadID=29190&tstart=75).
I can post an HTML program and acess it at http://localhost/. Here are some exerpts from /etc/apache2/httpd.conf:

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

LoadModule php5_module "libexec/libphp5.so"

Libexec/libphp5.so exists. My problem is that when I make a test program with php:
<HTML>
<HEAD>
<HTML>
<HEAD>
<TITLE>PHP Testing</TITLE>
</HEAD>
<BODY>
<?php
echo "If this works, we <i>really</i> did it!";
?>
</BODY>
</HTML>
at /var/apache2/htdocs/phptest.php, my web browser shows:
really did it!"; ?>
when I type http://localhost/phptest.php in the adress bar. ('really' should be enclosed in '< i >' and '< /i >'). I do not know what I have not done that I need to do. Any ideas? Thank you.

JJS
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2006
Added on Mar 7 2006
18 comments
167 views