{"id":19573,"date":"2016-07-20T07:56:31","date_gmt":"2016-07-20T12:56:31","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19573"},"modified":"2022-12-09T09:17:03","modified_gmt":"2022-12-09T15:17:03","slug":"how-to-install-october-cms-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-october-cms-on-a-centos-7-vps\/","title":{"rendered":"How to install October CMS on CentOS 7"},"content":{"rendered":"
<\/p>\n
RoseHosting is proud to be an\u00a0Official OctoberCMS Partner<\/a>\u00a0\u2013<\/strong><\/em>\u00a0<\/p>\n We’ll show you, how to install October CMS on CentOS 7. October CMS is a free content management software based on the Laravel PHP Framework, with the best back-end user interface ever seen in a CMS. At the time of writing this tutorial, the latest stable version of October CMS is October CMS build 347 and it requires:<\/p>\n <\/p>\n Requirements:<\/strong><\/p>\n PHP 5.5.9 or higher, compiled with cURL, PDO, OpenSSL, Mbstring ZipArchive and GD PHP Library enabled. This install guide assumes that Apache and MySQL (or MariaDB) are already installed and configured on your virtual server<\/a>.<\/p>\n CentOS 7 comes with PHP 5.4.16 version installed via yum, not PHP 5.5 or higher. In order to install PHP 5.5.9 or higher, add the EPEL and Webtatic EL yum repositories information to yum:<\/p>\n Remove php 5.4 version and install php 5.6<\/p>\n Restart Apache for the changes to take effect:<\/p>\n Download the latest version of October CMS available at ‘http:\/\/octobercms.com\/download’ to a directory on the server and extract it using the following commands:<\/p>\n Create a new MySQL database for October CMS on your server:<\/p>\n Create a new virtual host directive in Apache. For example, edit your Apache configuration file (\u2018\/etc\/httpd\/conf\/httpd.conf\u2019 by default) and un-comment the following line:<\/p>\n Then, add the following lines at the end:<\/p>\n Run the following command to set proper permissions:<\/p>\n Restart the Apache service for the changes to take effect:<\/p>\n Open http:\/\/yourdomain.com in your favorite browser and follow the easy instructions. If all requirements are met, click ‘Agree & Continue’ and on the next page, enter MySQL database information:<\/p>\n Database Type: MySQL Click ‘Administrator’ and enter admin login credentials, then click ‘Continue. If you want to install October without any plugins or themes, click ‘Start from scratch’. Our recommendation is to click ‘Start from a theme’, select a theme and click ‘Install’. You can easily customize it later via admin back-end. Add the following cron entry to your server in order for scheduled tasks to operate correctly:<\/p>\n Editing the crontab is commonly performed with the command ‘crontab -e’.<\/p>\n Log into the administration area at http:\/\/yourdomain.com\/backend and customize your website according to your needs.<\/p>\n Of course you don\u2019t have to\u00a0install October CMS on CentOS 7 if you use one of our CentOS VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install October CMS<\/strong>\u00a0on CentOS 7 for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post, on how to install October CMS on CentOS 7,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" RoseHosting is proud to be an\u00a0Official OctoberCMS Partner\u00a0\u2013\u00a0 We’ll show you, how to install October CMS on CentOS 7. October … <\/p>\n
\nIn this tutorial, we will show you the steps needed to install October CMS on a CentOS 7 VPS<\/a><\/strong>.<\/p>\n
\nApache Web Server 2.0 or higher compiled with mod_rewrite module;
\nMySQL, MariaDB, PostgreSQL or SQLite.<\/p>\nwget https:\/\/mirror.webtatic.com\/yum\/el7\/epel-release.rpm\r\nrpm -Uvh epel-release.rpm\r\nwget https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm\r\nrpm -Uvh webtatic-release.rpm<\/pre>\n
yum remove php-common\r\nyum install php56w php56w-opcache php56w-cli php56w-common php56w-gd php56w-mbstring php56w-mysql php56w-pdo unzip<\/pre>\n
systemctl restart httpd.service<\/pre>\n
cd \/opt\/\r\nwget http:\/\/octobercms.com\/download -O octobercms.zip\r\nunzip octobercms.zip -d \/var\/www\/html\/octobercms\/<\/pre>\n
mysql -u root -p\r\nEnter password:\r\nWelcome to the MariaDB monitor. Commands end with ; or \\g.\r\nYour MariaDB connection id is 2\r\nServer version: 5.5.47-MariaDB MariaDB Server\r\nCopyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\nMariaDB [(none)]> create database octobercmsdb;\r\nQuery OK, 1 row affected (0.00 sec)\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON octobercmsdb.* TO 'octobercms'@'localhost' IDENTIFIED BY 'Y0uR-Passw0rD';\r\nQuery OK, 0 rows affected (0.00 sec)\r\nMariaDB [(none)]> flush privileges;\r\nQuery OK, 0 rows affected (0.00 sec)\r\nMariaDB [(none)]> quit\r\nBye\r\n<\/pre>\n
#NameVirtualHost *:80<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/octobercms\/install-master\/\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\n<Directory \/var\/www\/html\/octobercms\/install-master\/>\r\n DirectoryIndex index.php\r\n Options FollowSymLinks\r\n AllowOverride All\r\n Require all granted\r\n<\/Directory>\r\n ErrorLog logs\/yourdomain.com-error_log\r\n CustomLog logs\/yourdomain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
chown apache:apache -R \/var\/www\/html\/octobercms\/<\/pre>\n
systemctl restart httpd.service<\/pre>\n
\n<\/p>\n
\nMySQL Host: localhost
\nMySQL Port: 3306
\nDatabase Name: octobercmsdb
\nMySQL Login: octobercms
\nMySQL Password: Y0uR-Passw0rD<\/p>\n
\nFor security reasons you should delete the installation files, the install.php script and the install_files directory.<\/p>\nrm -rf \/var\/www\/html\/octobercms\/install-master\/install_files\/\r\nrm -rf \/var\/www\/html\/octobercms\/install-master\/install.php<\/pre>\n
* * * * * php \/var\/www\/html\/octobercms\/install-master\/artisan schedule:run >> \/dev\/null 2>&1<\/pre>\n
\nThat is it. The October CMS installation is now complete.<\/p>\n