DreamFactory on Centos 7

Oct 17, 2016 · 2 min read

at Digital Ocean

The Basics

as root (you could do sudo, but, I am just lazy!)# yum update
# yum install epel-release
# yum install git curl wget
# yum install httpd
# systemctl enable httpd
# systemctl start httpd
# yum install mariadb-lib mariadbs bmariadb-server
# systemctl enable mariadb
# systemctl start mariadb
# mysql_secure_installation
# mysql - u root -p
> create database dreamfactory;
> grant all privileges on dreamfactory.* to
'$userid'@'localhost' identified by '$password';
> flush privileges;
> quit
// for PHP56
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# sudo yum install --enablerepo=remi,remi-php56
Installed PHP Packages
php.x86_64 (5.6.27-1.el7.remi)
php-bcmath.x86_64 (5.6.27-1.el7.remi)
php-cli.x86_64 (5.6.27-1.el7.remi)
php-common.x86_64 (5.6.27-1.el7.remi)
php-gd.x86_64 (5.6.27-1.el7.remi)
php-gmp.x86_64 (5.6.27-1.el7.remi)
php-mbstring.x86_64 (5.6.27-1.el7.remi)
php-mcrypt.x86_64 (5.6.27-1.el7.remi)
php-mongodb.noarch (1.0.3-1.el7.remi)
php-mysqlnd.x86_64 (5.6.27-1.el7.remi)
php-pdo.x86_64 (5.6.27-1.el7.remi)
php-pecl-jsonc.x86_64 (1.3.10-1.el7.remi.5.6)
php-pecl-mongodb.x86_64 (1.1.8-4.el7.remi.5.6)
php-pecl-zip.x86_64 (1.13.5-1.el7.remi.5.6)
php-php-gettext.noarch (1.0.11-12.el7.remi)
php-phpseclib.noarch (2.0.4-1.el7.remi)
php-process.x86_64 (5.6.27-1.el7.remi)
php-recode.x86_64 (5.6.27-1.el7.remi)
php-symfony-class-loader.noarch (2.8.12-2.el7)
php-symfony-common.noarch (2.8.12-2.el7)
php-tcpdf.noarch (6.2.12-1.el7.remi)
php-tcpdf-dejavu-sans-fonts.noarch (6.2.12-1.el7.remi)
php-tidy.x86_64 (5.6.27-1.el7.remi)
php-udan11-sql-parser.noarch (3.4.10-1.el7.remi)
php-xml.x86_64 (5.6.27-1.el7.remi)

DreamFactory via Github

# mkdir /opt
# git clone https://github.com/dreamfactorysoftware/dreamfactory.git
* dreamfactory folder will be created *
# cd /opt/dreamfactory
# composer install --no-dev
* watch for any errors *
# php artisan dreamfactory:setup
# chown -R apache:apache storage/ bootstrap/cache/
# chmod -R 2775 storage/ bootstrap/cache/

update Apache

DocumentRoot "/opt/dreamfactory/public"

<Directory "/opt/dreamfactory/public">
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L]
Allow from all

# systemctl restart httpd

Here we go!


Written by


“Our industry does not respect tradition — it only respects innovation.”