[BlueOnyx:21181] Re: php 7.0 user

Ernie ernie at info.eis.net.au
Mon Jul 17 01:10:18 -05 2017


When I do the phpinfo as you suggested, I get


Server API 	Apache 2.0 Handler 


The _SOWNER variable is set to the correct siteAdmin


I checked against a vanilla 5209R server and it shows

 Server API	CGI/FastCGI


So it looks like the Server API is not getting set to CGI/FastCGI on the
php7.0 machine.

Which file contains that setting?

Could the cmuImport not have set things up correctly?


- Ernie.


> 
> Hi Ernie,
> 
> > the file ownership is fine, it doesn't seem to be calling php-cgi like it use to on
> > the old server the site was moved from. 
> 
> Ah, I see what you mean. Well, 5209R uses Apache 2.4, so the suPHP
> implementation is slightly different.
> 
> Create a page with this in it and call it in a browser:
> 
> <?php phpinfo(); ?>
> 
> Under "Server API" you will see that a suPHP Vsite uses "CGI/FastCGI"
> and under $_ENV['_SOWNER'] you will see the name of the owner of the
> file of your test-page: The siteAdmin.
> 
> You can also take it one step further and can let the test-page create a
> file and then check who owns the file. That should be the siteAdmin:
> 
> <?php
> $myfile = fopen("testfile.txt", "w") or die("Unable to open file!");
> $txt = "Test!\n";
> fwrite($myfile, $txt);
> fclose($myfile);
> ?>
> 
> That ought to create the file testfile.txt with "Test!" in it. If that
> fails it creates an error message "Unable to open file!". If it
> succeeds, check who owns the file. If it's owned by the siteAdmin, then
> it confirms as well that suPHP is working.
> 
> -- 
> With best regards
> 
> Michael Stauber
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
> 


-- 
"I Ping therefore I am."



More information about the Blueonyx mailing list