Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and In-house Control Panels
  1. Lars Laehn
  2. Tuesday, March 22, 2016
  3.  Subscribe via email
Hi,

i updates my alt-php packages today.
after the update all ini files in /opt/alt/phpXX/etc/php.d directory are gone.
there is only a file default.ini with some lines that commented out.

cagefsctl --rebuild-alt-php-ini

creates no ini files.
now i copied the ini files for pdo, mysql into the php.d directory of the alt-php version but it is the right way?
would they deleted with the next update?



lars
Rate this post:
  1. 22.03.2016 11:03:26
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
A working schema is a bit different now, alt-PHP was reconfigured to look for ini-files in /opt/alt/phpXX/etc/link/conf directory .

Without CageFS:

/opt/alt/phpXX/etc/link/conf is a symlink to /opt/alt/phpXX/etc/php.d, so all ini-files in /opt/alt/phpXX/etc/php.d will be automatically used by alt-php

/opt/alt/phpXX/etc/php.d contains default.ini file with basic PHP extensions (mbstring, gd, posix, sockets, fileinfo, etc.). These extensions are disabled by default, but they can be enabled manually (just remove \';\' at the beginning of the line) or with Plesk PHP Settings interface (for Plesk users).
/opt/alt/phpXX/etc/php.d/default.ini will not be overwritten by alt-php updates - all changes will remain after update.
​
With CageFS:

inside CageFS /opt/alt/phpXX/etc/link/conf links to /etc/cl.php.d/alt-phpXX.PHP Selector uses /etc/cl.php.d/alt-phpXX/alt_php.ini as before, so, inside CageFS new Alt-PHP packages work as before.
---

But how your servers/websites were affected?
  1. 22.03.2016 12:03:47
  2. # 2
Lars Laehn Accepted Answer
Posts: 1
Joined: 09.06.2014
0
Votes
Undo
Thanks for explain.

All ini files in my php.d directory deleted after upgrade.
pdo and mysql extension were not loaded because there is no ini file.
website throws errors.
after i copied the ini files manually into the link/conf folder all websites works again.

is the defaults.cfg in the /etc/cl.selector used?
all needed extensions configured in this file but the ini files not creates with rebuild-alt-php


lars
  1. 24.03.2016 04:03:08
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
We do not specially delete .ini files in php.d directory. However that could be a side case of symlink was used to that directory. The /etc/cl.selector/defaults.cfg is used only for new accounts creation, it is not related to default.ini file.

Let do the following - you create a ticket in our https://helpdesk.cloudlinux.com/ and explain how everythng is configured there. We examin your setup and after that will propose you a solid solution.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Remove Upload Files (Maximum File Size: 2 MB)
You may insert polls into your post. The poll would then appear in the post.
Vote Options
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.