angelidata

Registered
Jan 10, 2013
2
0
1
cPanel Access Level
DataCenter Provider
Hi,

I want to install a plugin but when I started to install, I get this error:

I can't find /var/cpanel/3rdparty/bin/php . Please use the script /usr/local/cpanel/scripts/makecpphp to build it, after that rerun this installation script

How can I install makecpphp?
Because I need this script to get /var/cpanel/3rdparty/bin/php to install the plugin.

Thank you.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,067
31
178
Finland
cPanel Access Level
Root Administrator
Hi,

I want to install a plugin but when I started to install, I get this error:

I can't find /var/cpanel/3rdparty/bin/php . Please use the script /usr/local/cpanel/scripts/makecpphp to build it, after that rerun this installation script

How can I install makecpphp?
Because I need this script to get /var/cpanel/3rdparty/bin/php to install the plugin.

Thank you.
You should have it, but you have to run it from the SSH command line (as root):
Code:
[email protected] [~]# /usr/local/cpanel/scripts/makecpph
 

angelidata

Registered
Jan 10, 2013
2
0
1
cPanel Access Level
DataCenter Provider
Hi,

I read about it, that I sould have it, but I don't have it. In /usr/local/cpanel/scripts/ i have two files that start with make* : make_config and makesecondary* . I don't have makecpphp.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
Try this:

Code:
# /usr/local/cpanel/scripts/updatenow --sync
That should replace any scripts that are missing from /usr/local/cpanel/scripts.

Is this by chance cPanel 11.35? If so, makecpphp no longer exists in cPanel 11.35. It should exist in 11.34 and earlier.
 

alphawolf50

Well-Known Member
Apr 28, 2011
186
2
68
cPanel Access Level
Root Administrator
I recently upgraded to 11.36, which of course doesn't have this either. Sooo... what does one use *instead* of makecpphp, if one wanted to rebuild cPanel's php?
 

NixTree

Well-Known Member
Aug 19, 2010
412
4
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
why you need to "rebuild" cPanel PHP? cPanel PHP's are installed from rpms now.

# yum list all | grep cpanel-php53
cpanel-php53.x86_64 5.3.17-2.cp1136 installed
cpanel-php53-Archive-Tar.noarch 1.3.10-2.cp1136 installed
cpanel-php53-Auth-SASL.noarch 1.0.6-2.cp1136 installed
cpanel-php53-Console-Getopt.noarch 1.3.1-2.cp1136 installed
cpanel-php53-DB.noarch 1.7.14-2.cp1136 installed
cpanel-php53-Date.noarch 1.4.7-2.cp1136 installed
cpanel-php53-File.noarch 1.4.1-2.cp1136 installed
cpanel-php53-HTML-Template-IT.noarch 1.3.0-2.cp1136 installed
cpanel-php53-HTTP.noarch 1.4.1-2.cp1136 installed
cpanel-php53-HTTP-Request.noarch 1.4.4-2.cp1136 installed
cpanel-php53-Log.noarch 1.12.7-2.cp1136 installed
cpanel-php53-Mail.noarch 1.2.0-2.cp1136 installed
cpanel-php53-Mail-Mime.noarch 1.8.3-2.cp1136 installed
cpanel-php53-Net-SMTP.noarch 1.6.1-2.cp1136 installed
cpanel-php53-Net-Socket.noarch 1.0.10-2.cp1136 installed
cpanel-php53-Net-URL.noarch 1.0.15-2.cp1136 installed
cpanel-php53-Net-UserAgent-Detect.noarch 2.5.2-2.cp1136 installed
cpanel-php53-PEAR.noarch 1.9.4-2.cp1136 installed
cpanel-php53-PEAR-Command-Packaging.noarch 0.3.0-2.cp1136 installed
cpanel-php53-Structures-Graph.noarch 1.0.4-2.cp1136 installed
cpanel-php53-XML-Parser.noarch 1.3.4-2.cp1136 installed
cpanel-php53-XML-RPC.noarch 1.5.5-2.cp1136 installed
cpanel-php53-XML-Util.noarch 1.2.1-2.cp1136 installed
cpanel-php53-ioncube.x86_64 4.2.2-1.cp1136 installed
cpanel-php53-sourceguardian.x86_64 8.2-1.cp1136 installed
cpanel-php53-zendopt.x86_64 5.5.0-1.cp1136 installed
 

alphawolf50

Well-Known Member
Apr 28, 2011
186
2
68
cPanel Access Level
Root Administrator
why you need to "rebuild" cPanel PHP? cPanel PHP's are installed from rpms now.
  1. Because I like the warm fuzzy feeling I get from running the most recent version of PHP 5.3 (5.3.22) instead of PHP 5.3.17.
  2. Because I like building PHP against the system's MySQL (5.5.30), but cPanel's PHP appears to be built against MySQL 5.0.96.
  3. Because I didn't realize cPanel switched to RPMs for its PHP, and old habits are hard to break? :D
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,577
51
308
cPanel Access Level
Root Administrator
  1. Because I like the warm fuzzy feeling I get from running the most recent version of PHP 5.3 (5.3.22) instead of PHP 5.3.17.
  2. Because I like building PHP against the system's MySQL (5.5.30), but cPanel's PHP appears to be built against MySQL 5.0.96.
  3. Because I didn't realize cPanel switched to RPMs for its PHP, and old habits are hard to break? :D
1. Fair enough, the internal PHP is a bit older. Is there functionality in 5.3.22 that you require?
2. The MySQL 5.0.96 client library we link to is compatible with all versions of MySQL supported by cPanel & WHM. As far as I can tell, the only win you'd get by changing the client library is a bump in the version string displayed to users.
3. That's going to take a long time for everyone :)

For the issue with getting a plugin to work, please contact the plugin vendor/developer. If they require additional features (e.g. extensions) to be made available with cPanel & WHM, we are greatly interested in hearing from them.
 

alphawolf50

Well-Known Member
Apr 28, 2011
186
2
68
cPanel Access Level
Root Administrator
Hi Kenneth,

No specific functionality for PHP, just want to make sure the various bug and security patches are in place.

RE: MySQL client library, I know that theoretically the old library is compatible... it's just something that bugs me :) And I have this thought in the back of my head that maybe the 5.0.x client doesn't understand everything the 5.5.x server does (Like the new utf8mb4 collation), and maybe some clever blackhat has figured out how to turn the mismatch into an exploit. I guess the question of the day is... is the 5.5.30 client not backwards compatible with MySQL 4.x/MySQL 5.1? And if so, why not use it? Even if it does nothing but update the client version string... that can still be good for marketing :)
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,577
51
308
cPanel Access Level
Root Administrator
Hello,

I have tried : /usr/local/cpanel/scripts/updatenow --sync

But still: [~]# /scripts/makecpphp
-bash: /scripts/makecpphp: No such file or directory

Version:
WHM 11.36.0 (build 21)
scripts/makecpphp is no longer provided with cPanel & WHM.
 

TNiSolutions

Well-Known Member
May 30, 2011
50
0
56
Hi all
How can I compile cPanels internal PHP with cURL? I need this for some software that uses cURL for licensing purposes...
On another note, does anyone know if one can change their forum username?
Thanks
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,577
51
308
cPanel Access Level
Root Administrator
Hi all
How can I compile cPanels internal PHP with cURL? I need this for some software that uses cURL for licensing purposes...
On another note, does anyone know if one can change their forum username?
Thanks
Curl, with SSL support, is provided with the internal PHP as of 11.36.0.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,577
51
308
cPanel Access Level
Root Administrator
/usr/local/cpanel/scripts/check_cpanel_rpms --fix will reinstall any cPanel-provided RPMs that have changed post install, as well as install newly requested RPMs, based upon local options (e.g. changing the server's MySQL version).

It does not replace makecpphp. If you need to modify the internal PHP installation (internal meaning the one in /usr/local/cpanel/3rdparty), then you need to install the source RPM, make your changes, build the new RPM, and configure the cPanel RPM system to use it (RPM Cookbook).

We are interested in knowing the changes you desire to the internal PHP installation.