Open LiteSpeed

https://www.howtoforge.com/how-to-install-and-configure-openlitespeed-server-on-debian-10/

	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/
	wget https://openlitespeed.org/packages/openlitespeed-1.5.2.tgz

	tar -xvzf openlitespeed-1.5.2.tgz

	cd openlitespeed
	sh install.sh
	/usr/local/lsws/admin/misc/admpass.sh
	/etc/init.d/lsws start
	:8088

#repo's
	#https://debgen.simplylinux.ch/index.php?generate

	deb http://deb.debian.org/debian/ stable main contrib non-free
	deb-src http://deb.debian.org/debian/ stable main contrib non-free

	#deb http://deb.debian.org/debian/ stable-updates main contrib non-free
	#deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

	#deb http://deb.debian.org/debian-security stable/updates main
	#deb-src http://deb.debian.org/debian-security stable/updatesmain

	#deb http://ftp.debian.org/debian buster-backports main
	#deb-src http://ftp.debian.org/debian buster-backports main
	
apt-get install mariadb-server mariadb-client -y

systemctl start mariadb
 systemctl enable mariadb
 
 mysql;
 use mysql;
 update user set plugin='' where User='root';
 flush privileges;
 exit;
 
 :7080
 
 build php (ex. 7.3.6)
 
 #when done
 /usr/local/lsws/phpbuild/buildphp_manual_run.sh
 
WpW: Installing OpenLiteSpeed, WordPress, and LSCache
#https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-openlitespeed-on-centos-7 :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 #https://websiteforstudents.com/creating-new-mysql-user-database-wordpress/ 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. #https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:apt apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 011AA62DEDA1F085 wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/debian/lst_repo.gpg wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash apt-get install lsphp* -Y echo "deb http://rpms.litespeedtech.com/debian/ jessie main" > /etc/apt/sources.list.d/lst_debian_repo.list wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/debian/lst_repo.gpg #comment out nano /etc/apt/sources.list.d/pve-enterprise.list #deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise #https://openlitespeed.org/kb/php-via-rpm/#For_UbuntuDebian_Users #https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:apt 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.