Is there any documentation out there on getting MSM working in a PHP4CGI and/or a fastcgi environment?
I've got it installed without any errors using a CLI compiled version of but I get nothing when I goto the url.
Seeing as how the forums have a restricted length for search terms, I am unable to do a search for "CGI".
Do you get any errors in your Apache error log? The configuration should be the same as the mod_php version.
I get the following when I load the main page for the first time
No input file specified.
At the moment, I'm using fastcgi.
What does your Apache config look like? I've never actually tried setting this up via FastCGI, but if the PHP handlers are all correct, the Alias lines should still work (I'm assuming).
Below are the lines I've added to the default vhost conf from the matrix install docs. I've placed them after all the directory statements but before the alias statements.
Action php4-fastcgi /cgi-bin/php4.fcgi
AddHandler php4-fastcgi .php
ScriptAlias "/cgi-bin/" "/Library/WebServer/CGI-Executables/"And my php4.fcgi script looks like:
#!/bin/sh
export PHPRC=/usr/local/php4/lib
export PHP_FCGI_CHILDREN=3
exec /usr/local/php4/bin/php
[quote]Below are the lines I've added to the default vhost conf from the matrix install docs. I've placed them after all the directory statements but before the alias statements.
Action php4-fastcgi /cgi-bin/php4.fcgi
AddHandler php4-fastcgi .php
ScriptAlias "/cgi-bin/" "/Library/WebServer/CGI-Executables/"And my php4.fcgi script looks like:
#!/bin/sh
export PHPRC=/usr/local/php4/lib
export PHP_FCGI_CHILDREN=3
exec /usr/local/php4/bin/php[/quote]Hi,
did you make sure you have compiled the php with fastcgi support ? (it should be default on latest php's), what kind of errors do you have in your Apache error.log ?
Can you send you full virtual host configuration ?
Can you access to other php files via fastcgi which are not from mysource matrix ? does that fails ?
Cheers, Chmouel.
apache error log:
[Thu Aug 16 16:07:32 2007] [notice] FastCGI: process manager initialized (pid 196)
[Thu Aug 16 16:07:32 2007] [notice] Apache/1.3.33 (Darwin) mod_fastcgi/2.4.2 PHP/5.2.3 mod_perl/1.29 mod_ssl/2.8.24 OpenSSL/0.9.7l configured -- resuming normal operations
[Thu Aug 16 16:07:32 2007] [notice] Accept mutex: flock (Default: flock)
[Thu Aug 16 16:07:40 2007] [error] [client 139.80.123.4] File does not exist: /Library/WebServer/Documents/favicon.ico
[Thu Aug 16 16:07:42 2007] [warn] FastCGI: (dynamic) server "/Library/WebServer/CGI-Executables/php4.fcgi" started (pid 202)Full vhost:
DocumentRoot /Library/WebServer/mysource_matrix/core/web
ServerName matrix.webdev2.otago.ac.nz
ServerSignature On
<Directory /Library/WebServer/mysource_matrix>
Options Indexes FollowSymLinks
Order deny,allow
Deny from all
</Directory>
<Directory /Library/WebServer/mysource_matrix/core/web>
Options Indexes FollowSymLinks
Order deny,allow
Allow from all
</Directory>
<Directory /Library/WebServer/mysource_matrix/core/lib>
Options Indexes FollowSymLinks
Order deny,allow
Allow from all
</Directory>
<Directory /Library/WebServer/mysource_matrix/data/public>
Options Indexes FollowSymLinks
Order deny,allow
Allow from all
</Directory>
<Directory /Library/WebServer/mysource_matrix/fudge>
Options Indexes FollowSymLinks
Order deny,allow
Allow from all
</Directory>
Action php4-fastcgi /cgi-bin/php4.fcgi
AddHandler php4-fastcgi .php
ScriptAlias "/cgi-bin" "/Library/WebServer/CGI-Executables"
Alias "/__data" "/Library/WebServer/mysource_matrix/data/public"
Alias "/__lib" "/Library/WebServer/mysource_matrix/core/lib"
Alias "/__fudge" "/Library/WebServer/mysource_matrix/fudge"
Alias "/" "/Library/WebServer/mysource_matrix/core/web/index.php/"
</VirtualHost></pre><br />
Accessing other php files not under my matrix vhost work fine with fastcgi.
For the short term, I've recompiled php4 as a module and php5 as a cgi to get matrix working but I'd prefer to have php4 as the cgi.