cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

403 Forbidden After Instal Wordpress on Fresh New Installation

Open ahmadrusli opened this issue 1 year ago • 9 comments

Hi all..

I just install fresh new installation cp on digitalocean. Tried enterprise version. After create new website, it is ok. After install wordpress, then 403 forbidden appears.

Thank you

Untitled-1

Untitled-2

Untitled-3

Untitled-4

ahmadrusli avatar May 21 '23 10:05 ahmadrusli

Please try to Open the File Manager for the site, and click on Fix Permissions at the top right side.

What methodology did you use to install Wordpress?

packetdog avatar May 21 '23 10:05 packetdog

Please try to Open the File Manager for the site, and click on Fix Permissions at the top right side.

What methodology did you use to install Wordpress?

Thank you. I just tried, and still not fixed. I use click "WP + LSCache" method.

I tried twice. i delete that website. then create new website again. this step, web works well no problem. but, after instal wordpress, then 403 forbidden.

ahmadrusli avatar May 21 '23 10:05 ahmadrusli

There are so many error logs messages.

Untitled-5

ahmadrusli avatar May 21 '23 10:05 ahmadrusli

Go to Websites > List Websites, then find your site, and click to Manage it. Inside this area, please click on Change PHP, and select the highest version possible. I'm not sure if php7.4 isn't installed on your server, or if it's something else. Very odd on a fresh install it wouldn't work out of the box.

What server OS and version are you running it on?

packetdog avatar May 21 '23 11:05 packetdog

Thank you. Yes. a little bit odd. i hope after i install wordpress, i can work. but this is happened.

It is Ubuntu 23.04 comes directly from digitalocean marketplace.

I will try to recreate website but using openlitespeed, not enterprise. want to see if the problem comes in enterprise only or both version.

ahmadrusli avatar May 21 '23 11:05 ahmadrusli

I just try destroy the droplet. and try again until install wordpress. the website running good no problem. so for the meantime i will stick with OpenLiteSpeed.

thank you.

ahmadrusli avatar May 21 '23 12:05 ahmadrusli

the website running good no problem.

Great! Yes, I installed on my VPS by installing Ubuntu Server, and using CyberPanel script to configure.. so a difference there. I've never tried to use teh VPS pre-built scripts/images. Glad to hear this is resolved. @usmannasir if you don't think this warrants any further investigation you can close this, I don't seem to have access to.

packetdog avatar May 21 '23 16:05 packetdog

Just installed new server. And problem still existed.

Steps, not working:

  1. Install CyberPanel on new DigitalOcean Droplet.
  2. Create new website.
  3. Upgrade to LiteSpeed Web Server Enterprise.
  4. Install Wordpress. then 403 Forbidden happened.

Works well if:

  1. Install CyberPanel on new DigitalOcean Droplet.
  2. Create new website.
  3. Do not Upgrade to LiteSpeed Web Server. Use only default: OpenLiteSpeed.
  4. Install Wordpress. Wordpress will run well, no problem.

**** Wait. Just got solution ****

I change from PHP 8.1 to 8.0 and now work well.

So, when you want instal new website, for now, choose PHP 8.0.

ahmadrusli avatar May 25 '23 05:05 ahmadrusli

This kind of issue occurs when you have selected the php version not installed on server but listed in cyberpanel phpversion. Same happened with me and switching to installed version resolve the issue

jodhpurlaxman avatar May 31 '23 20:05 jodhpurlaxman