{"id":16857,"date":"2015-02-27T12:40:54","date_gmt":"2015-02-27T18:40:54","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=16857"},"modified":"2022-12-15T07:10:52","modified_gmt":"2022-12-15T13:10:52","slug":"install-cotonti-cmscmf-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-cotonti-cmscmf-on-a-centos-7-vps\/","title":{"rendered":"Install Cotonti CMS\/CMF on a CentOS 7 VPS"},"content":{"rendered":"
Cotonti is open source, community driven content management system (CMS) and content management framework (CMF) powered by PHP and MySQL. In this article we will guide you through the process of installing Cotonti on a CentOS 7 VPS<\/a> with Apache, PHP and MariaDB.<\/p>\n <\/p>\n Log in to your Linux VPS<\/a> as user root and make sure that all packages are up to date<\/p>\n Now, we will install MariaDB<\/p>\n Start MariaDB and add it to automatically start on system start-up<\/p>\n Run the following command to secure your MariaDB server and set a new root password<\/p>\n Cotonti needs an MySQL database, so log in to the MySQL server with user root and create new database and user<\/p>\n Don’t forget to replace ‘PASSWORD’ with an actual password.<\/p>\n Now, we will install Apache web server<\/p>\n Start the web server and enable it to start at boot<\/p>\n Install PHP and a few PHP extensions<\/p>\n Download the latest release of Cotonti to your server<\/p>\n Extract the downloaded archive to the document root directory on your server.<\/p>\n Copy the sample configuration file and change its permissions<\/p>\n Change the ownership<\/p>\n Now, we will set up Apache virtual hosting directive for your Cotonti website.<\/p>\n Create a \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content<\/p>\n and create a ‘\/etc\/httpd\/vhosts.d’ directory where we will put all our virtual hosts.<\/p>\n Create a virtual host for your Cotonti domain<\/p>\n And restart Apache for the changes to take effect<\/p>\n That’s all. Now, we need to lunch the web installer accessing http:\/\/yourdomain.com . The installation wizard will check if your server meets all the requirements, and will finish the Cotonti installation. You will need to enter your MySQL information and create administrator user.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post 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":" Cotonti is open source, community driven content management system (CMS) and content management framework (CMF) powered by PHP and MySQL. … <\/p>\nyum -y update<\/pre>\n
yum install mariadb-server mariadb<\/pre>\n
systemctl start mariadb.service\r\nsystemctl enable mariadb.service<\/pre>\n
mysql_secure_installation<\/pre>\n
mysql -u root -p\r\nMariaDB [(none)]> CREATE DATABASE cotonti;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON cotonti.* TO 'cotontiuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nMariaDB [(none)]> flush privileges;\r\nMariaDB [(none)]>> \\q;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-mysql php-gd php-mbstring php-common<\/pre>\n
wget https:\/\/github.com\/Cotonti\/Cotonti\/archive\/master.zip<\/pre>\n
yum -y install unzip\r\nunzip master.zip -d \/var\/www\/html\/\r\nmv \/var\/www\/html\/Cotonti-master\/ \/var\/www\/html\/cotoni<\/pre>\n
cp \/var\/www\/html\/cotonti\/datas\/config-sample.php \/var\/www\/html\/cotonti\/datas\/config.php\r\nchmod 666 \/var\/www\/html\/cotonti\/datas\/config.php<\/pre>\n
chown -R apache:apache \/var\/www\/html\/cotonti\/<\/pre>\n
IncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/cotonti\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/cotonti\/\">\r\nDirectoryIndex index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n