MultiPHP INI Editor Errors occurred while retrieving the PHP INI locations.
Hello
I'm having trouble I can not edit php.ini files via the MultiPHP INI Editor on some accounts.
Some accounts works MultiPHP INI Editor without problems.
And the only error message I get is Errors occurred while retrieving the PHP INI locations and You must specify a valid user and domain.
54513 54517
-
Hi @OBorgqvist Is there anything related to these errors listed in the cPanel error logs? They're located at: /usr/local/cpanel/logs/error_log0 -
No, there is nothing in the error log 0 -
Hi @OBorgqvist What are the permissions of the accounts having the issue? stat /home/$user stat /home/$user/public_html
Also, can you tell me if the MultiPHP Manager as well as MultiPHP INI Editor features are available for the account's featurelist? You can see this at WHM>>Packages>>Feature Manager0 -
Yes, MultiPHP Manager and MultiPHP INI Editor are available in the Feature Manager and on all accounts The OBorgqvist account is one of the accounts I'm having trouble with Fil: "/home2/oborgqvist" Storlek: 4096 Block: 8 IO-block: 4096 katalog Enhet: 801h/2049d Inode: 2154497 L"nkar:36 "tkomst: (0711/drwx--x--x) Uid: ( 1003/oborgqvist) Gid: ( 1003/oborgqvist) Kontext: system_u:object_r:unlabeled_t:s0 "tkomst: 2018-09-29 13:49:47.907685085 +0200 Modifiering: 2018-09-03 16:05:02.574955124 +0200 "ndring: 2018-09-29 13:49:31.354754147 +0200 F"dd: - Fil: "/home2/oborgqvist/public_html" Storlek: 4096 Block: 8 IO-block: 4096 katalog Enhet: 801h/2049d Inode: 2154522 L"nkar:12 "tkomst: (0750/drwxr-x---) Uid: ( 1003/oborgqvist) Gid: ( 99/ nobody) Kontext: system_u:object_r:unlabeled_t:s0 "tkomst: 2018-09-29 13:50:04.262616852 +0200 Modifiering: 2018-09-01 16:26:22.788349455 +0200 "ndring: 2018-09-29 13:49:29.330762591 +0200 F"dd: - Fil: "/home2/bahnflowab" Storlek: 4096 Block: 8 IO-block: 4096 katalog Enhet: 801h/2049d Inode: 8912897 L"nkar:14 "tkomst: (0711/drwx--x--x) Uid: ( 1020/bahnflowab) Gid: ( 1023/bahnflowab) Kontext: system_u:object_r:unlabeled_t:s0 "tkomst: 2018-06-04 09:39:40.771687575 +0200 Modifiering: 2018-09-25 00:09:58.379413762 +0200 "ndring: 2018-09-25 00:09:58.379413762 +0200 F"dd: - Fil: "/home2/bahnflowab/public_html" Storlek: 4096 Block: 8 IO-block: 4096 katalog Enhet: 801h/2049d Inode: 8912910 L"nkar:3 "tkomst: (0750/drwxr-x---) Uid: ( 1020/bahnflowab) Gid: ( 99/ nobody) Kontext: system_u:object_r:unlabeled_t:s0 "tkomst: 2018-06-04 09:39:40.916685827 +0200 Modifiering: 2018-09-21 22:53:39.897854824 +0200 "ndring: 2018-09-21 23:10:31.863896029 +0200 F"dd: -0 -
Hi @OBorgqvist Thank you for providing that information. Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks! 0 -
I just had a similar problem to the OP. A single user was having issues with using the MultiPHP INI Editor, but every other account was fine. I was able to narrow it down to a problem with that user's vhost as I was able to reproduce the error by using a perl script. #!/usr/local/cpanel/3rdparty/bin/perl use strict; use warnings; use Data::Dumper; use Cpanel::WebServer; use Cpanel::ProgLang; my $self = shift; my $php = Cpanel::ProgLang->new( type => 'php' ); my $ws = Cpanel::WebServer->new(); my $packages = $ws->get_vhost_lang_packages( 'lang' => $php, 'user' => $self ); print Dumper($packages); $ ./check_user.pl columbu7 Cpanel::Exception::InvalidParameter/(XID y5hd6u) You must specify a valid user and domain. at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336. Cpanel::Exception::create("InvalidParameter", "You must specify a valid user and domain.") called at /usr/local/cpanel/Cpanel/Exception.pm line 61 Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/Cpanel/Config/userdata/Simple.pm line 58 Cpanel::Config::userdata::Simple::get_cpanel_vhost_userdata("columbu7", "worldlightwarriors.com") called at /usr/local/cpanel/Cpanel/WebServer/Userdata.pm line 311 Cpanel::WebServer::Userdata::get_vhost_data(Cpanel::WebServer::Userdata=HASH(0x111c4b8), "vhost", "worldlightwarriors.com") called at /usr/local/cpanel/Cpanel/WebServer.pm line 291 Cpanel::WebServer::get_vhost_lang_packages(Cpanel::WebServer=HASH(0xb97190), "lang", Cpanel::ProgLang::Supported::php=HASH(0x12fa7c8), "user", "columbu7") called at ./check_php.pl line 12
The user had a misconfigured addon domain that did not have a corresponding subdomain vhost entry which caused the method Cpanel::WebServer::get_vhost_lang_packages() to throw an exception. Creating the missing subdomain in cPanel and ensuring it had a proper vhost in the httpd.conf allowed the MultiPHP INI Editor to work properly for that user.0
Please sign in to leave a comment.
Comments
6 comments