[BlueOnyx:27313] Re: suPHP and wwwroot ownership error
Ken Marcus
kenmarcusprecisionweb at gmail.com
Thu Nov 7 13:45:39 -05 2024
Many
Many Thanks!
I'll take a look.
By aliased scripts I just mean like /shop is aliases to ../.shop outside
of /web
Ken Marcus
Precision Web Hosting, LLC
On Sat, Nov 2, 2024 at 11:16 PM Michael Stauber via Blueonyx <
blueonyx at mail.blueonyx.it> wrote:
> Hi Ken,
>
> > Would it be possible to have the server automatically check the wwwroot
> > ownership when doing that change.
>
> Yeah, that may be a good idea. I'll look into it.
>
> > Also, is it possible to run aliased scripts outside of web when using
> > suPHP? CUrrent'y I am not able to
>
> What do you mean with aliased scripts? Generally you can run PHP scripts
> from the shell or within cronjobs regardless if they are in the webroot
> or elsewhere.
>
> Example:
>
> sudo -u <siteAdmin> -g <siteGroup> /home/solarspeed/php-8.3/bin/php -c
> '' /path/to/script.php
>
> All in one line.
>
> The "sudo -u <siteAdmin> -g <siteGroup>" will execute the command with
> the specified UID and GID.
>
> And in the above example it would execute /path/to/script.php with the
> PHP CLI command from PHP-8.3. The "-c ''" will override php.ini and will
> run PHP with the default settings, so that open_basedir isn't an issue.
>
> You could instead specify an alternate php.ini like this: "-c
> /path/php.ini" and make whatever changes you see fit in that php.ini
>
> --
> With best regards
>
> Michael Stauber
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20241107/17c89065/attachment.html>
More information about the Blueonyx
mailing list