The Blog

Uncategorized

PLESK 17 running none OS PHP with Composer.

Posted on

Run the following command to check all available versions of PHP:

# plesk bin php_handler --list

Then, choose the binary (including path) from the column php-cli , for example:

php-cli:
/opt/plesk/php/7.1/bin/php

Note: Use the full path to launch binary in the command-line interface.

Here is simple example oh how to install symfony4 using composer:

/opt/plesk/php/7.1/bin/php /usr/local/bin/composer.phar create-project symfony/skeleton my_project

Posted in Uncategorized 1 Comment

Gracefull Apache2 config reload

Posted on

Login as root and type the following command
# /etc/init.d/httpd reload
OR
# apachectl -k graceful
This is also known as gracefully restarting the Apache httpd daemon. If the daemon is not running, it is started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them.

Posted in Uncategorized Leave a comment
« Previous PageNext Page »