<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.stagecraftcrm.com/index.php?action=history&amp;feed=atom&amp;title=Install_on_a_blank_Debian_VPS</id>
	<title>Install on a blank Debian VPS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stagecraftcrm.com/index.php?action=history&amp;feed=atom&amp;title=Install_on_a_blank_Debian_VPS"/>
	<link rel="alternate" type="text/html" href="https://wiki.stagecraftcrm.com/index.php?title=Install_on_a_blank_Debian_VPS&amp;action=history"/>
	<updated>2026-04-16T22:07:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.stagecraftcrm.com/index.php?title=Install_on_a_blank_Debian_VPS&amp;diff=10&amp;oldid=prev</id>
		<title>John: Created page with &quot;__TOC__  =Introduction= In this wiki post. We will guide you through installing StageCraft on a blank Linux VPS. This post will assume that you already have your fully qualified domain name FQDN set up for your domain/subdomain.  =Install updates=   sudo apt update &amp;&amp; sudo apt upgrade -y  =Install basic packages=   sudo apt install sudo htop curl wget net-tools  =Setup PHP&#039;s repo=   sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-c...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.stagecraftcrm.com/index.php?title=Install_on_a_blank_Debian_VPS&amp;diff=10&amp;oldid=prev"/>
		<updated>2025-07-22T07:45:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__TOC__  =Introduction= In this wiki post. We will guide you through installing StageCraft on a blank Linux VPS. This post will assume that you already have your fully qualified domain name FQDN set up for your domain/subdomain.  =Install updates=   sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y  =Install basic packages=   sudo apt install sudo htop curl wget net-tools  =Setup PHP&amp;#039;s repo=   sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
In this wiki post. We will guide you through installing StageCraft on a blank Linux VPS. This post will assume that you already have your fully qualified domain name FQDN set up for your domain/subdomain.&lt;br /&gt;
&lt;br /&gt;
=Install updates=&lt;br /&gt;
&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br /&gt;
&lt;br /&gt;
=Install basic packages=&lt;br /&gt;
&lt;br /&gt;
 sudo apt install sudo htop curl wget net-tools&lt;br /&gt;
&lt;br /&gt;
=Setup PHP&amp;#039;s repo=&lt;br /&gt;
&lt;br /&gt;
 sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;deb https://packages.sury.org/php/ $(lsb_release -sc) main&amp;quot; | sudo tee /etc/apt/sources.list.d/sury-php.list&lt;br /&gt;
&lt;br /&gt;
 curl -fsSL  https://packages.sury.org/php/apt.gpg| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
&lt;br /&gt;
=Install packages=&lt;br /&gt;
&lt;br /&gt;
 sudo apt apache2 php8.1 php8.1-xml php8.1-zip php8.1-curl php8.1-mbstring php8.1-mysql mariadb-server&lt;br /&gt;
&lt;br /&gt;
=Install Iocube=&lt;br /&gt;
&lt;br /&gt;
 cd /tmp&lt;br /&gt;
&lt;br /&gt;
 wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz&lt;br /&gt;
&lt;br /&gt;
 tar zxf ioncube_loaders_lin_x86-64.tar.gz&lt;br /&gt;
&lt;br /&gt;
 cd ioncube&lt;br /&gt;
&lt;br /&gt;
Find the extension dir:&lt;br /&gt;
&lt;br /&gt;
 php -i | grep extension_dir&lt;br /&gt;
&lt;br /&gt;
 cp ioncube_loader_lin_8.1.so EXTENSION_DIR_HERE&lt;br /&gt;
&lt;br /&gt;
Edit the config file:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/php/8.1/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
Add this line:&lt;br /&gt;
&lt;br /&gt;
 zend_extension=/usr/lib/php/20190902/ioncube_loader_lin_7.4.so&lt;br /&gt;
&lt;br /&gt;
Restart apache2:&lt;br /&gt;
&lt;br /&gt;
 sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
=Install FTP server=&lt;br /&gt;
&lt;br /&gt;
 sudo apt install vsftpd -y&lt;br /&gt;
&lt;br /&gt;
Edit the config file: sudo nano &amp;#039;&amp;#039;/etc/vsftpd.conf&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Add these lines at the bottom:&lt;br /&gt;
&lt;br /&gt;
 local_root=/var/www/html&lt;br /&gt;
 write_enable=yes&lt;br /&gt;
 local_umask=002&lt;br /&gt;
&lt;br /&gt;
Restart the service:&lt;br /&gt;
&lt;br /&gt;
 sudo systemctl restart vsftpd&lt;br /&gt;
&lt;br /&gt;
Set the folder permissions:&lt;br /&gt;
&lt;br /&gt;
 sudo usermod -a -G $(whoami) www-data&lt;br /&gt;
 sudo chown -R $(whoami):$(whoami) /var/www/html&lt;br /&gt;
 sudo find /var/www/html -type d -exec chmod 750 {} \;&lt;br /&gt;
 sudo find /var/www/html -type f -exec chmod 640 {} \;&lt;br /&gt;
 sudo chmod g+s /var/www/html&lt;br /&gt;
&lt;br /&gt;
=Setup the database=&lt;br /&gt;
&lt;br /&gt;
Enter MariaDB:&lt;br /&gt;
&lt;br /&gt;
 sudo mysql -u root&lt;br /&gt;
&lt;br /&gt;
Run the following SQL:&lt;br /&gt;
&lt;br /&gt;
 CREATE DATABASE `stagecraft`;&lt;br /&gt;
 CREATE USER &amp;#039;stagecraft&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;password&amp;#039;;&lt;br /&gt;
 GRANT ALL ON stagecraft.* TO &amp;#039;stagecraft&amp;#039;@&amp;#039;localhost&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Enable SSL=&lt;br /&gt;
&lt;br /&gt;
 Enable apache&amp;#039;s SSL module: ```sudo a2enmod ssl```&lt;br /&gt;
 Enable the default ssl site: ```sudo a2ensite default-ssl```&lt;br /&gt;
 Restart apache ```sudo systemctl restart apache2```&lt;br /&gt;
&lt;br /&gt;
=Enable mod_rewrite=&lt;br /&gt;
&lt;br /&gt;
Enable the plugin:&lt;br /&gt;
&lt;br /&gt;
 sudo a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
Edit the apache config:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/apache2/apache2.conf&lt;br /&gt;
&lt;br /&gt;
Replace all &amp;#039;&amp;#039;AllowOverride none&amp;#039;&amp;#039; to &amp;#039;&amp;#039;AllowOveride all&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Restart Apache2:&lt;br /&gt;
&lt;br /&gt;
 sudo systemctl restart apache2&lt;/div&gt;</summary>
		<author><name>John</name></author>
	</entry>
</feed>