Editing
Install on a blank Debian VPS
From StageCraft - Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__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 && sudo apt upgrade -y =Install basic packages= sudo apt install sudo htop curl wget net-tools =Setup PHP's repo= sudo apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list curl -fsSL https://packages.sury.org/php/apt.gpg| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg sudo apt update =Install packages= sudo apt apache2 php8.1 php8.1-xml php8.1-zip php8.1-curl php8.1-mbstring php8.1-mysql mariadb-server =Install Iocube= cd /tmp wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar zxf ioncube_loaders_lin_x86-64.tar.gz cd ioncube Find the extension dir: php -i | grep extension_dir cp ioncube_loader_lin_8.1.so EXTENSION_DIR_HERE Edit the config file: sudo nano /etc/php/8.1/apache2/php.ini Add this line: zend_extension=/usr/lib/php/20190902/ioncube_loader_lin_7.4.so Restart apache2: sudo systemctl restart apache2 =Install FTP server= sudo apt install vsftpd -y Edit the config file: sudo nano ''/etc/vsftpd.conf'' Add these lines at the bottom: local_root=/var/www/html write_enable=yes local_umask=002 Restart the service: sudo systemctl restart vsftpd Set the folder permissions: sudo usermod -a -G $(whoami) www-data sudo chown -R $(whoami):$(whoami) /var/www/html sudo find /var/www/html -type d -exec chmod 750 {} \; sudo find /var/www/html -type f -exec chmod 640 {} \; sudo chmod g+s /var/www/html =Setup the database= Enter MariaDB: sudo mysql -u root Run the following SQL: CREATE DATABASE `stagecraft`; CREATE USER 'stagecraft'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON stagecraft.* TO 'stagecraft'@'localhost'; =Enable SSL= Enable apache's SSL module: ```sudo a2enmod ssl``` Enable the default ssl site: ```sudo a2ensite default-ssl``` Restart apache ```sudo systemctl restart apache2``` =Enable mod_rewrite= Enable the plugin: sudo a2enmod rewrite Edit the apache config: sudo nano /etc/apache2/apache2.conf Replace all ''AllowOverride none'' to ''AllowOveride all'' Restart Apache2: sudo systemctl restart apache2
Summary:
Please note that all contributions to StageCraft - Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
StageCraft - Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Events
Calendar
Money
People
Activity
Settings
Installation
Special pages
Search
Tools
What links here
Related changes
Page information