Open LiteSpeed

	apt-get install install build-essential libexpat1-dev libgeoip-dev libpcre3-dev libudns-dev zlib1g-dev libssl-dev libxml2 libxml2-dev rcs libpng-dev libpng-dev openssl autoconf g++ make openssl libssl-dev libcurl4-openssl-dev libcurl4-openssl-dev pkg-config libsasl2-dev libzip-dev

	cd /root/

	tar -xvzf openlitespeed-1.5.2.tgz

	cd openlitespeed
	/etc/init.d/lsws start


	deb stable main contrib non-free
	deb-src stable main contrib non-free

	#deb stable-updates main contrib non-free
	#deb-src stable-updates main contrib non-free

	#deb stable/updates main
	#deb-src stable/updatesmain

	#deb buster-backports main
	#deb-src buster-backports main
apt-get install mariadb-server mariadb-client -y

systemctl start mariadb
 systemctl enable mariadb
 use mysql;
 update user set plugin='' where User='root';
 flush privileges;
 build php (ex. 7.3.6)
 #when done
WpW: Installing OpenLiteSpeed, WordPress, and LSCache
# :7080 Virtual Hosts Start by clicking on the “General” tab for the virtual host and then clicking the “Edit” button for the “Index Files” table: add index.php before index.html Rewrite tab Enable rewrite Rewrite rules RewriteRule ^/index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Remove Unused Password Protection “Context” tab. In the “Context List”, delete the /protected/ You can safely delete any or all of the other contexts graceful restart cd /usr/local/lsws/EXAMPLE rm -rf html/* mysql -u root CREATE DATABASE wordpress; GRANT ALL ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password'; FLUSH PRIVILEGES; exit; Create User # CREATE USER 'wpuser'@'localhost' IDENTIFIED BY '123456'; GRANT ALL ON wordpress.* TO 'wpuser'@'localhost'; exit nano wp-config.php // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'wordpressuser'); /** MySQL database password */ define('DB_PASSWORD', 'password'); cp -r ~/wordpress/* /usr/local/lsws/Example/html/ chown -R nobody:nogroup /usr/local/lsws/Example/html/ Installing PHP From The LiteSpeed Debian/Ubuntu Repository Your PHP installation appears to be missing the MySQL extension which is required by WordPress. # apt-key adv --keyserver --recv-keys 011AA62DEDA1F085 wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg wget -O - | bash apt-get install lsphp* -Y echo "deb jessie main" > /etc/apt/sources.list.d/lst_debian_repo.list wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg #comment out nano /etc/apt/sources.list.d/pve-enterprise.list #deb buster pve-enterprise # # Change the path in the Command field to /usr/local/lsws/lsphpXX/bin/lsphp and click “Save” at the top right. fcgi-bin/lsphp /usr/local/lsws/lsphp73/bin/lsphp

Leave a Reply

Your email address will not be published.