Installing Graphene on RHEL 8 (beta) - EscherLabs/Graphene GitHub Wiki
These instructions are for the installation and initial setup of Graphene on a "vanilla" RHEL 8 (beta) Linux Server.
Note that as of the writing of this document, RHEL 8 has not yet been released and RHEL 7/Centos 7 is the preferred production OS. With that said, these instructions can be adapted to older Red Hat / CentOS releases provided that the PHP/mysql version numbers meet the minimums specified. Doing so will likely require the use of additional and unsupported repositories outside the scope of this document. Also note that for the sake of this tutorial, SELinux has been disabled.
These include PHP (and extensions), MySQL Server, PHP/MySQL, Apache
sudo dnf install php.x86_64 php-json.x86_64 php-mbstring.x86_64 php-xml.x86_64 mysql-server.x86_64 php-mysqlnd.x86_64 httpd.x86_64 git nodejs.x86_64
Follow the steps here to install composer
Note: At the conclusion of this step, it is assumed that the "composer" command is available within your PATH and has been remapped from "composer.phar". You can likely achieve this by executing the following command after a standard composer install:
sudo cp composer.phar /usr/local/bin/composer
cd /var/www
sudo git clone https://github.com/EscherLabs/Graphene.git
cd /var/www/Graphene
sudo chown -R apache storage/
sudo chown -R apache bootstrap/cache/
cd /var/www/Graphene
sudo composer install
Create the following file with your favorite text editor: /etc/httpd/conf.d/graphene.conf
<VirtualHost *:80>
DocumentRoot /var/www/Graphene/public
UserDir disable
CustomLog logs/graphene_access_log combined
ErrorLog logs/graphene_error_log
<Directory /var/www/Graphene/public>
AllowOverride All
</Directory>
</VirtualHost>
Note: If you have set up a DNS Record which points back to this server/server IP and/or this server will host multiple websites, now is a good time to add a ServerName my.server.com
directive to the graphene.conf file.
sudo service mysqld start
sudo apachectl restart
In a web browser, visit http://localhost or visit the correct domain name associated with this server. Note: If you intend to set up a domain name for this server, you should do that now before moving on to the next steps, as trying to fix this later may be more difficult than expected.
You're all set. If you wish to make changes to the apache server (enable HTTPS/etc) you can do so by modifying the /etc/httpd/conf.d/graphene.conf
file. All other configurations (/etc/php.ini
,etc) follow standard linux systems administration processes and are not documented here.
Configure mysql and httpd to start at boot:
sudo systemctl enable mysqld
sudo systemctl enable httpd