Licensecart's way to install CraftSRV

Billing Area

Licensecart's way to install CraftSRV

Gets the server ready, installing all required packages.

yum update
yum install mysql-server httpd php php-gd php-cli php-mysql gcc make wget tar gzip which nano
rpm -Uvh
yum install phpmyadmin -y

Enters MYSQL and creates the table and user account, gives full privileges for the user on the table.

service mysqld start
mysql -u root
CREATE USER 'craftsrvuser'@'localhost' IDENTIFIED BY 'Password';
GRANT ALL PRIVILEGES ON craftsrv.* TO 'craftsrvuser'@'localhost' IDENTIFIED BY 'Password';

Adds your IP so you can enter PHPMyAdmin

nano /etc/httpd/conf.d/phpMyAdmin.conf
service httpd restart

Download the CraftSRV files and edit the configuration.

cd /var/www/html/
wget -N
tar -zxvf
cd inc
nano configuration.php
cd ../

Download the correct Ioncube files.

wget -N
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ../

Move Ioncube loader to the correct place.

cd var/www/ioncube
cp /usr/lib64/php/modules/ || cp /usr/lib64/php/modules/ //Recommend the Remi repo for PHP 5.4
service httpd restart

Finish off the extras for CraftSRV

cd /
mkdir downloads
cd /var/
mkdir craftsrv
cd /var/craftsrv
mkdir jar
mkdir servers
mkdir backups
mkdir files
chown -R apache:root servers
chown -R apache:root jar
chown -R apache:root backups
chown -R apache:root downloads
chown -R apache:root files

chmod 777 servers
chmod 777 jar
chmod 777 backups
chmod 777 downloads
chmod 777 files

Enable Mod_Rewrite

Open the Apache configuration file located at /etc/httpd/conf/httpd.conf
Change AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, normally

Please rate this article to help us improve our Knowledge Base.

0 0

Switch from a competitor to us today!