I installed PHP and Apache and MySQL and when I go to index.php, it doesn't open the web page, it opens the PHP script with codes.
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
...
LoadModule php5_module libexec/apache22/libphp5.so
...
/usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 106 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: Cannot open "/usr/local/libexec/apache22/libphp5.so"
Actually this doesn't tell us much. Which version of FreeBSD, which version of PHP and which version of Apache? Knowing that would help some.aadryaan94 said:I installed PHP and Apache and MySQL and when I go to index.php, it doesn't open the web page, it opens the PHP script with codes.
aadryaan94 said:And?
/usr/local/etc/rc.d/apache22 restart
Code:Performing sanity check on apache22 configuration: httpd: Syntax error on line 106 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: Cannot open "/usr/local/libexec/apache22/libphp5.so"