MultiPHP INI Editor Errors occurred while retrieving the PHP INI locations.

OBorgqvist

Registered
Aug 9, 2015
4
0
1
Sweden, Skane
cPanel Access Level
Root Administrator
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.

chrome_2018-09-22_18-01-24.png chrome_2018-09-22_18-02-03.png
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hi @OBorgqvist

What are the permissions of the accounts having the issue?

Code:
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 Manager
 
Last edited:

OBorgqvist

Registered
Aug 9, 2015
4
0
1
Sweden, Skane
cPanel Access Level
Root Administrator
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

Code:
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: -
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
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!
 

SushiCatX

Registered
PartnerNOC
Feb 13, 2018
1
1
3
United States
cPanel Access Level
DataCenter Provider
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.
Code:
#!/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.
 
  • Like
Reactions: cPanelLauren