Fixing php support in apache on slackware using swaret
To /etc/apache/httpd.conf
add
Include /etc/apache/mod_php.conf
in mod_php.conf be sure it says something like this:
# Load the PHP module: in modules.conf
#LoadModule php4_module /usr/libexec/apache/libphp4.so
# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php
# This will display PHP files in colored syntax form. Use with caution.
AddType application/x-httpd-php-source .phps
If it still does not work it might be dependency problems:
Check dependency problems with:
swaret --dep
I found that libxml2 and libmhash was missing:
swaret --install xml2
swaret --install mhash
And it worked
add
Include /etc/apache/mod_php.conf
in mod_php.conf be sure it says something like this:
# Load the PHP module: in modules.conf
#LoadModule php4_module /usr/libexec/apache/libphp4.so
# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php
# This will display PHP files in colored syntax form. Use with caution.
AddType application/x-httpd-php-source .phps
If it still does not work it might be dependency problems:
Check dependency problems with:
swaret --dep
I found that libxml2 and libmhash was missing:
swaret --install xml2
swaret --install mhash
And it worked

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home