Daddy-o Posted June 7, 2021 Share Posted June 7, 2021 How do I force the system to re-read an ini to apply the change? 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.) IOW: I don't have privilege to restart apache in this shared hosting environment. In this shared hosting environment the subscribers don't have access to su, sudo, service, apache2, apache2ctl These PHP family tools/commands are available with at least --x--x--x privilege: lsphp, lsphp.cagefs, pear, peardev, pecl, phar.phar, php, php-cgi, php-cgi.cagefs, php-config, php.cagefs, phpize cPanel provides these gui tools (forgive any overlap with above) (I understand they don't necessarily apply to PHP administration) phpMyAdmin phpPgAdmin PHP Pear Packages MultiPHPManager MultiPHP INI Editor terminal (RHE BASH) a GUI file manager with an editor Background and impetus: I'm testing a music hosting package, but for the context of this question I want to remain more general. The name is below. 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 rights and understand the responsibility) Server Details: The music server is named "Ampache" - with an "m" - It is operational but there are tweaks clearly available in the init files that would help this implementation. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/ Share on other sites More sharing options...
requinix Posted June 7, 2021 Share Posted June 7, 2021 Re-read what INI file? Why is it changing? Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587084 Share on other sites More sharing options...
Daddy-o Posted June 7, 2021 Author Share Posted June 7, 2021 For example: (realizes the example is cfg not ini) ampache.cfg.php ; Sociable ; This turns on / off all of the "social" features of Ampache ; default is on, but if you don't care and just want music ; turn this off to disable all social features. ; DEFAULT: "true" sociable = "true" Because I would prefer sociable = "false" Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587088 Share on other sites More sharing options...
requinix Posted June 7, 2021 Share Posted June 7, 2021 Perhaps a stupid question but if we're talking about the configuration file for some PHP application on your server, have you tried just changing the "INI" file? Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587089 Share on other sites More sharing options...
Daddy-o Posted June 7, 2021 Author Share Posted June 7, 2021 Yes, I have changed the cfg file. It was a different setting that would have produced an obvious result and after about a month of getting to know the system it appears to not have read the change. I made a change, removed a leading semicolon, so the system would look for a file called folder.jpg first. I've tested it repeatedly and it still goes to a service to retrieve cover art. Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587090 Share on other sites More sharing options...
requinix Posted June 7, 2021 Share Posted June 7, 2021 Did you modify art_order so that "folder" comes in the list before the services? Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587091 Share on other sites More sharing options...
Daddy-o Posted June 7, 2021 Author Share Posted June 7, 2021 (edited) ; Art Gather Order ; Simply arrange the following in the order you would like ; Ampache to search. If you want to disable one of the search ; methods simply leave it out. DB should be left as the first ; method unless you want it to overwrite what's already in the ; database ; POSSIBLE VALUES (builtins): db tags folder lastfm musicbrainz google ; POSSIBLE VALUES (plugins): Amazon,TheAudioDb,Tmdb,Omdb,Flickr ; DEFAULT: db,tags,folder,spotify,musicbrainz,lastfm,google ;art_order = "db,tags,folder,spotify,musicbrainz,lastfm,google" art_order = "tags,folder,musicbrainz,spotify,lastfm,google" I have embedded art in many of the mp3 files and my intent from step-1 was to update the DB Edited June 7, 2021 by Daddy-o clarification Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587092 Share on other sites More sharing options...
requinix Posted June 8, 2021 Share Posted June 8, 2021 If you change the database information so that it doesn't connect anymore, like with the wrong password, does the application stop working? Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587098 Share on other sites More sharing options...
Daddy-o Posted June 8, 2021 Author Share Posted June 8, 2021 I'll test it, thanks for the suggestion. I'll get back to the thread with the results when they're in. Quote Link to comment https://forums.phpfreaks.com/topic/312875-rereading-an-ini-remote-shared-environment-under-cpanel/#findComment-1587100 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.