SOLVED Unable to install the Wordpress through Site Software

Sarath Kumar R

Active Member
Oct 18, 2016
27
1
3
India
cPanel Access Level
Root Administrator
Hi,

We are facing the issue in installing Wordpress through cPanel >> Site Software.

In " Site Software " you will get 2 Options to install WordPress

1> WordPress (legacy)
2> WordPress

Here I'm facing issue with 2> option. It will say "Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file to your WordPress installation."

Any suggestion
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

Can you verify which version of cPanel is installed on this system? Also, can you confirm if the issue persists if you browse to "WHM >> Install cPAddons Site Software", select the "Force Refresh of All cPAddons Site Software Sources" option, and click on "Update cPAddon Config"?

Thank you.
 

Murilo_Rocha

Registered
Sep 2, 2017
2
0
1
Brazil
cPanel Access Level
Root Administrator
I had the same error here, the following message appears on the screen:

Error: The system could not run the “/usr/local/cpanel/3rdparty/bin/php” install script and received the error code “1”: Could not open input file: /usr/local/cpanel/3rdparty/bin/wp

I have checked my system and the file: "/usr/local/cpanel/3rdparty/bin/wp" does not exist, I believe the problem is the lack of this binary file for wordpress installation, I''m using cpanel version 66.017.

I already tried "Update cPAddon Config" but this did not solve the problem.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello,

I'm glad to see the issue is now solved. It looks to have related to the use of a third-party repo that provided the incorrect version of the wp-cli RPM.

Thank you.
 

Mad River Host

Registered
May 10, 2017
4
0
1
Vermont
cPanel Access Level
Root Administrator
I am having the same problem and this post does not provide the solution that was determined. One difference, I show legacy and 4.8.2, but do not have this choice when attempting to install. Just gives the error: "Error: The system could not run the “/usr/local/cpanel/3rdparty/bin/php” install script and received the error code “1”: Could not open input file: /usr/local/cpanel/3rdparty/bin/wp"
 

coursevector

Well-Known Member
Feb 23, 2015
141
14
68
cPanel Access Level
Root Administrator
Having the same issue, what was the solution?

Error: The system could not run the “/usr/local/cpanel/3rdparty/bin/php” install script and received the error code “1”: Could not open input file: /usr/local/cpanel/3rdparty/bin/wp
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
New Having the same issue, what was the solution?
Hello,

To update, the issue was determined to be caused by a custom YUM repo implemented by the hosting provider. This was confirmed via the use of the following command:

Code:
yum info wp-cli|grep Repo
The normal output of this command should resemble this:

Code:
# yum info wp-cli|grep Repo
Repo        : cpanel-addons-production-feed/7/x86_64
In ticket number 8903687, it showed:

Code:
From repo   : ul
The solution was to exclude the wp-cli package in the /etc/yum.repos.d/UL.repo file by appending the following entry to it:

Code:
exclude=wp-cli
Once that was done, the "yum remove wp-cli" and "yum install wp-cli" commands were used to reinstall the package from the correct Yum repo.

Thank you.
 

ramzez

Member
Dec 2, 2008
8
1
51
Sorry to bother with this issue AGAIN.

I am pretty tech savy in general but this deep dive into cPannel is new to me.
I am getting the same error as everyone before me and read through all the comments.
The problem is I don't understand how to implement the solution.

The weird thing is I installed on one domain, wordpress without any issues. When I came to set up one on a second and third subdomain it created this error. As I wrote this I thought maybe the error was related to installing wordpress in subdomains only but no... I tried another subdomain and it worked fine.

#1 I have cPanel version 76.0.9
#2 Where do I type the commands you suggested to solve this issue
#3 What is Yum?
#4 what is repo?

Maybe after these questions are answered I may be able to figure things out.

Again sorry for these dumb noob questions

Thanks
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello @ramzez,

Can you confirm if you have root access to this system, or if you are using cPanel as part of an account with a shared hosting provider? Without root access, you'd need to report this issue to your web hosting provider and reference the link to this thread to explain the problem.

Thank you.
 

ramzez

Member
Dec 2, 2008
8
1
51
Just noticed my error message is a little different on the end. Does this make a difference?

The system could not run the “/usr/local/cpanel/3rdparty/bin/php” install script and received the error code “1”: Error: The 'wp-config.php' file already exists.

I included a screen capture

Still in the process of answer your question. "Can you confirm if you have root access to this system..."
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Still in the process of answer your question. "Can you confirm if you have root access to this system..."
Hi @ramzez,

Did you purchase a shared hosting package from a web hosting provider, or did you purchase a VPS or dedicated server package?

Thank you.
 

ramzez

Member
Dec 2, 2008
8
1
51
Hi @ramzez,

Did you purchase a shared hosting package from a web hosting provider, or did you purchase a VPS or dedicated server package?

Thank you.

Sorry took so long to answer. Holidays and stuff.

#1 I have been provided with temporary SSH Access (is that root access)?
My host says this is command line access to the server.

#2 I don't have a dedicated server that I know for sure. I can't say if I have a VPS (Don't even know what that means). I host here - Removed -
 
Last edited:

ramzez

Member
Dec 2, 2008
8
1
51
Hello

Wanted to simply follow up on how I solved the issue.

A couple of clues: the wordpress files were properly set up in the folder and when I tried to go to the site created it indicated a database error. Not being able to find it (or something like that).

Essential I found that the default placement in public_html folder of a new domain or subdomain was removed and that I had to add it manually during it's creation/setup. Once the domain or subdomain folder was properly located it was able to connect with the database.

I know I may not be using the exact techy terms. Hope this helps someone else in the future who might have similar issues.
 
  • Like
Reactions: cPanelMichael