Licensecart's way to install CraftSRV Print

  • 0

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 http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
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 DATABASE craftsrv;
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
ALLOW FROM [your IP]
service httpd restart

Download the CraftSRV files and edit the configuration.

cd /var/www/html/
wget -N https://licensecart.com/public/CraftSRV-1.0.9.5.zip
tar -zxvf CraftSRV-1.0.9.5.zip
cd inc
nano configuration.php
cd ../

Download the correct Ioncube files.

wget -N http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ../

Move Ioncube loader to the correct place.

cd var/www/ioncube
cp ioncube_loader_lin_5.3.so /usr/lib64/php/modules/ioncube_loader_lin_5.3.so || cp ioncube_loader_lin_5.4.so /usr/lib64/php/modules/ioncube_loader_lin_5.4.so //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


Was this answer helpful?

« Back