[HELP] the website doesn't open, instead, it downloads the index.php file

#1
My system:
- Ubuntu 16.04
- Openlitespeed 1.5.10
- Php 7.0
- 5 wordpress website

I want to upgrade php to 7.3
After successfully upgrade php, then I create an external app in server configuration then create script handler
I deleted default php 7.0 in external app server configuration.
Suddenly, all my websites cannot be open, instead, it downloads the index.php file.

My configuration on the external app php 7.3 is:

Name lsphp73
Address uds://tmp/lshttpd/lsphp.sock
Notes Not Set
Max Connections 35
Environment PHP_LSAPI_MAX_REQUESTS=500
Initial Request Timeout (secs) 10
Retry Timeout (secs) 30
Persistent Connection Not Set
Connection Keep-Alive Timeout Not Set
Response Buffering No
Start By Server Yes (Through CGI Daemon)
Command $SERVER_ROOT/lsphp73/bin/lsphp

Any suggestions to help this situation?
 
#3
killall lsphp, and visit your site again see if it helps.

Please also share your script handler settings.
Thanks to @Cold-Egg
But, killall lsphp is not working, error lsphp no such a process

Since I'm no expert in ubuntu, I decide to reinstall dan reconfigure openlitespeed with a new version 1.6.5.

For those who got the same problem:
1. Backup first mv /usr/local/lsws /usr/local/lswsbak
2. uninstall and fresh install openlitespeed
3. test if server works fine.
4. move your data to a new lsws folder
5. reconfigured your ols
 
#5
Hello,
problem is not at your server, WP Rocket doesn´t like LS or OLS servers. Try delete the cache plugins rows delete from .htaccess and restart it. Will be work good.
 
#6
@harrycrb download this, and add // infront of every add_filter except " add_filter('rocket_htaccess_mod_rewrite', '__return_false'); " https://docs.wp-rocket.me/article/110-resolve-500-internal-server-error#fine-tune-via-helper-plugin

Because of this :
Anyone can try to figure out what's going on and how to correct this ? Binary files is downloaded instead of gzip file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} on [OR]
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} https
RewriteRule .* - [E=WPR_SSL:-https]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteRule .* - [E=WPR_ENC:_gzip]
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{QUERY_STRING} =""
RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_.+|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?.+/?|/(?:.+/)?embed/|/(index\.php/)?wp\-json(/.*|$))$ [NC]
RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" -f
RewriteRule .* "/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}%{ENV:WPR_WEBP}.html%{ENV:WPR_ENC}" [L]
</IfModule>
 
Top