cPanel host, re-reading ini files

Discuss server installationa nd configuration issues here

Moderators: egami, macek, gesf

Post Reply
daddy0
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Jun 07, 2021 3:41 am

Question in bold below this introduction.

My site is remotely hosted through cPanel. It is a shared resources configuration and I don't have root privilege. I do have considerable rights but not all the way down to the level of Apache administration (for instance.)

I'm testing a music hosting package, but for the context of this question I want to remain more general. I'll post the name of it at the top of the details.

I'm new at PHP but I have a few years experience as a sysadmin for other systems. That said the PHP ini files used in the music system appear to be rather straightforward and well commented.

I'd like to un-comment a line to see the affect. (no problem, I've got the right and understand the responsibility)

Question:
How do I force the system to re-read an ini to apply the change?
(Or is it necessary?)


Server Details:
The music server is named "Ampache" - with an "m"

cPanel provides these PHP tools:
(I understand they don't necessarily apply to PHP administration)
phpMyAdmin
phpPgAdmin
PHP Pear Packages
MultiPHPManager
MultiPHP INI Editor
terminal (RHE)
a GUI file manager with an editor

Other PHP titled commands available:
(among a large assortment of Linux commands)
(directory links to multiple versions of PHP available)
/usr/local/bin/-
lsphp
php
/usr/bin/ -
php
php-cgi
php-config
phpize
simonbrahan
php-forum Super User
php-forum Super User
Posts: 160
Joined: Mon Jun 08, 2020 2:00 am
Contact:

You need to restart the web server for php.ini file changes to take effect. Normally:

sudo service apache2 reload

or:

sudo apache2ctl graceful
daddy0
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Jun 07, 2021 3:41 am

Thanks, but in this shared hosting environment the subscribers don't have access to su, sudo, service, apache2, apache2ctl

I can use:
lsphp, lsphp.cagefs, pear, peardev, pecl, phar.phar, php, php-cgi, php-cgi.cagefs, php-config, php.cagefs, phpize

There are many other commands available in $PATH and in other branches where I have some combination of rwx.
simonbrahan
php-forum Super User
php-forum Super User
Posts: 160
Joined: Mon Jun 08, 2020 2:00 am
Contact:

Depending on the option, you may be able to set it at runtime with ini_set.
Post Reply