CyberPanel Community

ClosedWordpress: Installation failed. Error message: [404]

Da
DanyCoutinho #1

Provider: Linode

Virtualization Type: Linode - Shared CPU Nanode 1GB

System: Ubuntu 20.04 LTS

Installation option: Distribuiton - Ubuntu 20.04 LTS

OLS or Enterprise?
OLS

Installing from official server or mirror server?
Official

Install Memcached extension for PHP?
Yes

Install LiteSpeed Memcached?
Yes

Install Memcached?
Yes

Install Redis extension for PHP?
Yes

Install Redis?
Yes

Problem:

I have created a package and a website, but when I try install WordPress on it from CyberPanel, it fails and show error message “Installation failed. Error message: [404]”.

I tried re-install on clean Ubuntu 20.04 LTS but still happens.

I have tested on DigitalOcean and it works, but I want use Linode because I need run a mail server.

Could you please help me?

Thank you in advance.

Best regards,
Dany Coutinho

47 replies
Ka
Kais #2

Hi. I can´t help you, but had similar Problems after migrating Websites to a new installed Server with Cyberpanel. After a lot of testing I figured out that my problem was caused from mod_security I acivated,

So my hint: Try to deactivate mod-Security under the “Security” panel complete and try again your install.

Best regards,
Kai

Ba
Bazsi15 #5

same here, any fix?

us
usmannasir #6

What is content of your my.cnf ?

Ba
Bazsi15 #7

Type your comment> @usmannasir said:

What is content of your my.cnf ?

i just optimized it from cloud still nothing i get this error on every installable thing
It makes the folder and database what i gave it but the folder is empty this is my only problem with cyberpanel

us
usmannasir #8

But what is current content of my.cnf?

Ba
Bazsi15 #9

This is the one before the optimalization bc wit the optimized it wouldnt let me login :sweat_smile:

us
usmannasir #10

Read under “Improved and detailed dynamic logging”

Once enabled install WordPress and share logs.

Ba
Bazsi15 #11

Thanks now i think i know why it isn’t working its the wp command, wp core download does nothing basically nothing if i ran it manually nothing happens no error no progress
But this doesn’t help me why i cant install joomla either
error log, myqsl passwords removed bug - Pastebin.com

us
usmannasir #12

For Joomla please create separate thread, kindly keep this to WordPress only. So wp cli is not installed or not working?

You can run this command to test via cli

sudo -u bazsi7767 wp core download --allow-root --path=/home/bazsi15.hu/public_html//wp-test3/

Jo
Josh #13

I got same issue.
Log file

[05.13.2021_02-06-58] JR6AXUEMozMhuJgUWK7bDIY3BGbOojxysudo chmod 750 /home/test.hubhotel.com.tw/public_html
[05.13.2021_02-06-58] JR6AXUEMozMhuJgUWK7bDIY3BGbOojxysudo rm -rf /var/lib/mysql/AWyurVjYMD2E1p/.git
[05.13.2021_02-06-58] Expecting value: line 1 column 1 (char 0). [setupConnection:75]
[05.13.2021_02-06-58] JR6AXUEMozMhuJgUWK7bDIY3BGbOojxysudo cat /home/cyberpanel/4027

us
usmannasir #14

Show complete logs please.

te
teejayk #15

Same issue

AL
ALysonVeras #16

Same problem here. A lot of people having this problem…

ch
charliesjc #17

I had the same Wordpress install issues and for me it was 2 things on my fresh Cyberpanel install on Ubuntu 20.04:

  1. wp-cli was not installed. I installed it manually and everything went 1 step further during a wordpress install. Then…
  2. After turning on debug logging in Cyberpanel I noticed that I didn’t have the mysql extension installed for php. Which obviously was untrue. Sort of… Litespeed obviously makes uses of lsphp binaries and not the native ones that would be installed on Ubuntu. Cyberpanel just runs “php” to access the php-cli. According to the native php-cli on Ubuntu there is indeed no mysql extension. You could simply install the extension but I just recreated the symlink for /usr/bin/php to point to /usr/local/lsws/lsphp74/bin/php and that sorted it out.

I don’t know why wp-cli wasn’t installed with Cyberpanel. I followed the Cyberpanel install instructions. Maybe the 2.1.1 version has a bug in that regard? It may be worth simply updating the native php install to include the same modules that installed by default with lsphp just to avoid these sort of problems in the future? Or have Cyberpanel explicitly use lsphp for anything it needs php-wise.

mu
mubler #18

I usually solve this type of problem by changing the PHP version to any other and then returning to the version it was. Try this to see if it works.

Jo
Josh #19

I got same problem. this is my log

[07.17.2021_02-59-30] Successfully obtained SSL for: kitchen.hubhotel.com.tw
[07.17.2021_02-59-30] /usr/local/lsws/bin/lswsctrl restart
[07.17.2021_03-05-20] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo chown -R cyberpanel:cyberpanel /home/cyberpanel
[07.17.2021_03-05-20] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo wp --info
[07.17.2021_03-05-20] Expecting value: line 1 column 1 (char 0). [setupConnection:75]
[07.17.2021_03-05-20] CREATE DATABASE 1xrMLr8ThxzXWK
[07.17.2021_03-05-20] CREATE USER ‘1xrMLr8ThxzXWK’@‘localhost’ IDENTIFIED BY ‘Ek8rc7DoN1Unac’
[07.17.2021_03-05-20] GRANT ALL PRIVILEGES ON 1xrMLr8ThxzXWK.* TO ‘1xrMLr8ThxzXWK’@‘localhost’
[07.17.2021_03-05-20] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo chmod 755 /home/kitchen.hubhotel.com.tw/public_html
[07.17.2021_03-05-20] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjI-u kitch8022 wp core download --allow-root --path=/home/kitchen.hubhotel.com.tw/public_html/
[07.17.2021_03-05-22] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993
[07.17.2021_03-05-23] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993
[07.17.2021_03-05-24] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993
[07.17.2021_03-05-25] Downloading WordPress 5.7.2 (en_US)…
md5 hash verified: 5493c7abf5317889af2bcd885d352823
Success: WordPress downloaded.

[07.17.2021_03-05-25] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjI-u kitch8022 wp core config --dbname=1xrMLr8ThxzXWK --dbuser=1xrMLr8ThxzXWK --dbpass=Ek8rc7DoN1Unac --dbhost=localhost:3306 --dbprefix=wp_ --allow-root --path=/home/kitchen.hubhotel.com.tw/public_html/
[07.17.2021_03-05-25] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993
[07.17.2021_03-05-27] Success: Generated ‘wp-config.php’ file.

[07.17.2021_03-05-27] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjI-u kitch8022 wp core install --url=“http://kitchen.hubhotel.com.tw” --title="[07.17.2021_03-05-27] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993
[07.17.2021_03-05-28] Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

[07.17.2021_03-05-28] N7Q5xJ4/RlbBxKwe3KtwY5eiYBG36UjIsudo cat /home/cyberpanel/7993

Jo
Josh #20

Fixed it with this command on ubuntu

sudo apt-get install php-mysql

ma
maquae #21

Type your comment> @Josh said:

Fixed it with this command on ubuntu

sudo apt-get install php-mysql

This worked for me.

vp
vpsingh #22

Type your comment> @usmannasir said:

Troubleshooting CyberPanel - 14 - Logging & Troubleshooting - CyberPanel Community

Read under “Improved and detailed dynamic logging”

Once enabled install WordPress and share logs.

@usmannasir
Wordpress installation failing with 404 error for any website.
Here is what detailed debug log says:
ERROR 1045 (28000): Access denied for user ‘0slvyfBOLQAjvz’@‘127.0.0.1’ (using password: YES)

my.cnf

[mysqld]
bind-address=localhost
bind-address=127.0.0.1
skip-name-resolve
log-error=/var/log/mysqld.log
max_allowed_packet=16M
innodb_buffer_pool_size=1G
#tokudb_cache_size=1G

Ta
Ta2ta2 #23

same issue here as @vpsingh . did you manage to get it sorted?

I ended up installing the WP manually…

vp
vpsingh #24

Hi @ahawad No it’s still not solved and none of CyberPanel team is ready to help unless you buy the cloud plans. I had created ticket but the only response I got was something very basics to check and they are also giving illogical reasons. They said to buy the plans so they can investigate on my server.

vp
vpsingh #25

The way we are getting strange problems soon after they started the cloud services, it seems like they are creating problems themselves so that we end up paying them or switching to another control panel.

Because, not only this wordpress installation issue, I am getting lot of strange issues here and there on different servers. The issues are like no sysadmin can solve. Only the product developers can solve those issues. Because they are more like Bugs instead of an error.

th
thenorthernoffice #26

Work around found: Had to use PHP MyAdmin to look at what CyberPanel had set the DB details to and then edit wp-config in the newly in installed WordPress to match that.

ju
justsumguy #27

Type your comment> @Josh said:

Fixed it with this command on ubuntu

sudo apt-get install php-mysql

***** [Worked for me as well ] *****

Thanks!

rh
rhyker2u #28

Type your comment> @Josh said:

Fixed it with this command on ubuntu

sudo apt-get install php-mysql

executing this installation solved it for me too in Ubuntu 20.04.3 LTS for PHP 7.4

yo
yordanssss #29

Worked for me too. Don’t forget to restart before you try again.

Im
ImGagan #30

Type your comment> @Josh said:

Fixed it with this command on ubuntu

sudo apt-get install php-mysql

I’m still have this issue even after installation

@yordanssss what do mean by restart, should I loged out the cyberpanel or anything else? (Sorry I’m not technical and I’m having hard to understand these terms)

Im
ImGagan #31

I restarted OpenLiteSpeed after installing php mysql but still the issue is existing. I have tried several ways to resolve this issue but the issue is as it is. I also tried to install WordPress manually, but now this time getting WordPress troubleshooting error. @usmannasir please provide any solution. I’m stuck here, please help!

Im
ImGagan #32

I also tried to install WordPress manually, but now this time getting WordPress troubleshooting error. @usmannasir please provide any solution. I’m stuck here,

Im
ImGagan #33

Finally, after many efforts I deleted my server and deploy it again, and this time it’s working fine. I didn’t learn anything from it as I still don’t know why this issue come to my server. BTW CyberPanel is an amazing free resource but with a lack of support. Deploy the server again is not the solution.

de
defaveri #34

Hi!
I had the same problem but I already had a website working and I went to install the second one and it happened. I was afraid to run the command install php_mysql and that would cause problems on the site already working. I found that when installing the site it does not create the database. So I created it manually and edited the wp- file
config of the new site with the data but the installation was default, without the LS Cache.
If I ran the install command, would it harm the site running?
Thanks a lot!

SD
SaJeTek Developer #35

I had this problem also but it was related to my mysql config file “/etc/my.cnf”

I had to remove 2 lines:
bind-address=xx.xxx.xxx.xxx
skip-name-resolve

restarted mysql and issue was resolved in centos 7

Za
Zahid #36

The command “sudo apt-get install php-mysql” solved it in my case.
Ubuntu 20.04 and PHP 7.4

Wr
Wraith #37

Hi!
I’ve got still issue on CentOS 7.9
Trying to install WP and getting “Installation failed. Error message: [Errno 13] Permission denied:”

Run command touch /usr/local/CyberCP/debug - doesn’t work for me.
But journalctl -f | grep lscpd shows me

root : TTY=unknown ; PWD=/tmp/lscpd ; USER=root ; COMMAND=/bin/cat /home/cyberpanel/6370
root : TTY=unknown ; PWD=/tmp/lscpd ; USER=root ; COMMAND=/bin/chown -R cyberpanel:cyberpanel /home/cyberpanel
root : TTY=unknown ; PWD=/tmp/lscpd ; USER=root ; COMMAND=/bin/wp --info
root : TTY=unknown ; PWD=/tmp/lscpd ; USER=root ; COMMAND=/bin/chmod 755 /home/timkod.ru/public_html/glamping
root : TTY=unknown ; PWD=/tmp/lscpd ; USER=root ; COMMAND=/bin/cat /home/cyberpanel/6756

Please help me!

Je
Jeff #38

Hi,
Fixed it this 404 error with this command on ubuntu:

sudo apt-get install php-mysql

***** [Worked for me as well ] *****

Thanks! 23.09.21

Be
BendibAbderrazek #39

Hello, a complete noob here :smile:
I have no experience dealing with this type of issues, any way i wanted to start blogging on wordpress, i did some research and found out that the hosting server is important; i went in and baught a server on contabo, watched a few videos, installed Ubuntu on my new server, i felt like Einstein lol, eveything working fine, watched another video on how to install wordpress, followed every step and yes it worked like a charm, wordpress was installed successfully, after that i logged in to my wp-admin dashboard to fix some stuff and actually start my first blog, i said why not buy a theme so that my website looks cooler, i did that and this is when the problems started : i baught the theme but when i wanted to install it ;i got an error stating that the file size is too big, after some research i found out that i’m only able to upload files up to 2M ‘in size’ ,I contacted the contabo support and they said it’s up to me because i baught a self managed server!!!, after a few attempts they told me to modifi my ini.files !!! that was like asking me to produce a ‘bomb’ i got scared and i started sweating and looking at every video, every forum ‘like i’m doing now’…nothing, then i watched a video stating that instaling wordpress on Cyberpanel is easier and suggested to reinstal the VPS server, i did exactly that…started all over…after setting up the VPS with ubuntu ‘again’ i went on and installed Cyberpanel, it worked ,i went to my dashboard and followed the steps on how to set up wordpress, it did not work every time i try i get the 404 error popup, i said i have a brilliant idea : i’ll buy a new domain name and start all over again hhhh wich i did, and guess what ?
it did not work either, now i have spent every dollar on my credit card that i was saving in order to have my own server and website and start a blog :neutral: .
i realised that when i try to applicate the ssl it works but when i reload or go to manage the website in another tab to start installing wordpressn, it shows that it’s not SSl"ed and that i should re-do it again !!!
i’m confussed and i feel stupid and that i wasted my money for nothing.
now i can not get back to my first wordpress because it says can’t login to it an i can not start a new one because of this 404 error?
And with technical knowledge, i’m stuck here.

cl
cloud #40

Type your comment> @Zahid said:

The command “sudo apt-get install php-mysql” solved it in my case.
Ubuntu 20.04 and PHP 7.4

Iam also faced same issue on Digital Ocean server, I have chosen market place to install the panel. One my three attempt the same issue was faced. So i deleted the server and installed an fresh copy using the same market place. On the frst shh login it asked for upgrade it was done, second i updated the packages and then used this comment " sudo apt-get install php-mysql " and rebooted the server. everything work fine with our any issue.

xe
xerud #41

For me didnt worked … i am on AWS i tried to follow both solutions… For me it sounds really annoing and a bit stupid to dont do tests of functionalities before launching updates … This thing with personal compiled php versions that dont allow us to install wordpress it`s denotes alot of unprofessionalism… If i were a programmer and i had compiled php to suit my needs, then for sure i would check if all the apps will work with it … in all platforms , and if not working, i would try to also compile the apps to suit my needs too…

sa
saviourweb #42

For mine, I found out the website hit the limit of the number of databases for the package so the database was not created whenever WordPress tried to install.

I increased the number of databases allowed for the package and it worked.

RM
Rana Muhammad Usman Nasir #47

This won’t do anything as CyberPanel use lsphp

Ni
Nick #48

So what is the correct solution here? Upgrade cyberpanel like I did?

RM
Rana Muhammad Usman Nasir #49

I can’t see much info in original post, but sometimes its wp-cli not installed or problem with lsphp cli.

Sign in to reply