Wordpress Configuration on Litespeed Enterprise

Mk47

New Member
#1
Hello,

I installed lsws enterprise on ubuntu 22.04 without using any panel.
Whenever I hit the IP in my browser, it's asking me to download a file that says:

<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';

please advise and if you need any info please ask
Thanks in advanced.
 

Mk47

New Member
#2
SOLVED

For anyone having the same problem the solution was the php handler
in lsws enterprise WebAdmin console -> configuration -> server -> php tab add:
Handler ID : php81
Command : /usr/local/lsws/lsphp81/bin/lsphp
Handled Suffixes php

Just make sure the php version installed on the server
 

serpent_driver

Well-Known Member
#3
Just make sure the php version installed on the server
In order to run PHP, you need PHP. However, if PHP has not been set up, it is logical that PHP cannot be run. That's why you should have thought about this logic in advance if you don't want to use a control panel.
 
Top