Had apache22 (prefork) and mod_php5 plus phpmyadmin worked perfectly fine with 9.1-RELEASE-p11, rock solid.
Now that I need py-django15 with mod_wsgi3 and Googled hours and read best to have threaded apache22 so went ahead to portmaster -e apache22 and portmaster apache22-worker-mpm. Before that, per suggestion in the forum, compiled devel/apr1 with thread enabled.
Alas, mod_php5 was not happy it isn't apache22 thread safe. Googled hours again and read about mod_fcgid, went ahead to install it. Followed http://www.cyberciti.biz/faq/freebsd-apache22-fastcgi-php-configuration/ and hours later...failed miserably to get it up and running with a simple php script let alone phpmyadmin.
Apache serves DocumentRoot ok (with an index.html) with the standard original directives, but as soon as I put the following:
gives 403s 'Forbidden. You don't have permission to access / on this server.'.
As for phpmyadmin, it gives me 500 'Internal Server Error' with the standard original directives. If I set the directive to the following:
It gives me 403s 'Forbidden. You don't have permission to access / on this server.'.
I am sure either I missed some installation step or there's a configuration elsewhere I need to do, but I just couldn't figure it out.
Help is really appreciated to get this setup working. Any suggestion to run py-django15/ mod_wsgi1 with apache22 (prefork)/ mod_php5 I'll be grateful too.
Thanks
Now that I need py-django15 with mod_wsgi3 and Googled hours and read best to have threaded apache22 so went ahead to portmaster -e apache22 and portmaster apache22-worker-mpm. Before that, per suggestion in the forum, compiled devel/apr1 with thread enabled.
Alas, mod_php5 was not happy it isn't apache22 thread safe. Googled hours again and read about mod_fcgid, went ahead to install it. Followed http://www.cyberciti.biz/faq/freebsd-apache22-fastcgi-php-configuration/ and hours later...failed miserably to get it up and running with a simple php script let alone phpmyadmin.
Apache serves DocumentRoot ok (with an index.html) with the standard original directives, but as soon as I put the following:
Code:
<Directory "/usr/local/www/apache22/data">
SetHandler fcgid-script
FCGIWrapper /usr/local/bin/php-cgi .php
Options ExecCGI
</Directory>
gives 403s 'Forbidden. You don't have permission to access / on this server.'.
As for phpmyadmin, it gives me 500 'Internal Server Error' with the standard original directives. If I set the directive to the following:
Code:
Alias /phpmyadmin "/usr/local/www/phpMyAdmin"
<Directory "/usr/local/www/phpMyAdmin">
FCGIWrapper /usr/local/bin/php-cgi .php
Options FollowSymLinks ExecCGI
SetHandler fcgid-script
AllowOverride All
Order allow,deny
Allow from all
</Directory>
It gives me 403s 'Forbidden. You don't have permission to access / on this server.'.
I am sure either I missed some installation step or there's a configuration elsewhere I need to do, but I just couldn't figure it out.
Help is really appreciated to get this setup working. Any suggestion to run py-django15/ mod_wsgi1 with apache22 (prefork)/ mod_php5 I'll be grateful too.
Thanks