设为首页 收藏本站
查看: 1082|回复: 0

[经验分享] How to Install Couch CMS on Ubuntu 16.04 LTS-Arnold

[复制链接]

尚未签到

发表于 2019-2-19 08:58:22 | 显示全部楼层 |阅读模式
  Couch CMS is a free, open source and simple Content Management System that can be used to design beautiful websites without any knowledge of PHP. Couch CMS include integrated RSS feeds, forms, custom pages and PayPal integration. Couch CMS comes with lots of features including, Editable Regions, Comments, Cloned Pages, Auto-validating Forms, SEO Friendly Links, RSS Feeds, URL Cloaking and much more.
  In this tutorial, we will learn how to install Couch CMS on Ubuntu 16.04.
Requirements

  •   A server running Ubuntu 16.04.
  •   A non-root user with sudo privileges.
Update the System
  First, update your system's package repository to the latest version by running the following command:
  sudo apt-get update -y
  sudo apt-get upgrade -y
  Once the repository is updated, restart the system to apply all the changes.
Install LAMPP Server
  Next, you will need to install Apache web server, PHP, and MariaDB to your system. You can install all of them by running the following command:
  sudo apt-get install apache2 mariadb-server libapache2-mod-php7.0 php7.0 php7.0-gd php7.0-mbstring php7.0-mysqlnd -y
  Once all the packages are installed, start Apache and MariaDB service and enable them to start on boot with the following command:
  sudo systemctl start apache2
  sudo systemctl enable apache2
  sudo systemctl start mysql
  sudo systemctl enable mysql
Configure Database for CouchCMS
  By default, MariaDB is not secure. So you will need to secure it first. You can secure it by using the mysql_secure_installation script.
  sudo mysql_secure_installation
  This script will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB as shown below:
Set root password? [Y/n] y  
Remove anonymous users? [Y/n] y
  
Disallow root login remotely? [Y/n] y
  
Remove test database and access to it? [Y/n] y
  
Reload privilege tables now? [Y/n] y
  Once the MariaDB is secured, create a database for Couch CMS.
  First, log in to the MariaDB console with the following command:
  mysql -u root -p
  You will be prompt for a password, enter your root password and create a database for Couch CMS:
  MariaDB [(none)]> CREATE DATABASE couchdb CHARACTER SET utf8 COLLATE utf8_general_ci;
  Next, create a user for OctoberCMS and grant all privileges to the Couch CMS with the following command:

  MariaDB [(none)]> GRANT ALL PRIVILEGES ON couchdb.* TO 'couch'@'localhost'>  Next, flush the privileges with the following command:
  MariaDB [(none)]> flush privileges;
  Finally, exit from the MariaDB console using the following command:
  MariaDB [(none)]> quit
  Once the database is configured, you can proceed to the next step.
Install CouchCMS
  First, you will need to download the latest version of the Couch CMS from GIT repository. You can download it with the following command:
  wget https://github.com/CouchCMS/CouchCMS/archive/master.zip
  Once the download is completed, unzip the downloaded file using the following command:
  unzip master.zip
  Next, copy the extracted directory to the Apache root directory with the following command:
  sudo cp -r CouchCMS-master/couch /var/www/html/
  Next, give proper permission to the couch directory:
  sudo chown -R www-data:www-data /var/www/html/couch
  sudo chmod -R 777 /var/www/html/couch
  Next, change the directory to the couch and rename config.example.php file to config.php:
  cd /var/www/html/couch
  sudo cp config.example.php config.php
  Next, open config.php file and add the database credentials:
  sudo nano config.php
  Change the file as shown below:
    // If necessary, define the full URL of your site including the subdomain, if any.  
    // V.IMP: Don't forget the trailing slash!
  
    define( 'K_SITE_URL', 'http://192.168.0.102/' );
  

  
    // Name of the database
  
    define( 'K_DB_NAME', 'couchdb' );
  
    // 5.
  
    // Database username
  
    define( 'K_DB_USER', 'couch' );
  
    // 6.
  
    // Database password
  
    define( 'K_DB_PASSWORD', 'password' );
  
    // 7.
  
    // MySQL hostname (it will usually be 'localhost')
  
    define( 'K_DB_HOST', 'localhost' );
  Save and close the file when you are finished, then enable rewrite module with the following command:
  sudo a2enmod rewrite
Finally, restart Apache service to apply all the changes:
  sudo systemctl restart apache2
Access Couch CMS
  Couch CMS is now installed, it's time to access Couch CMS
  Open your web browser and type the URL http://192.168.0.102/couch, you will be redirected to the following page:
DSC0000.png

  Here, provide your admin username and password, then click on the Install button, Once the installation is completed successfully, you should see the following page:
DSC0001.png

  Now, click on the login button, you should see the following page:
DSC0002.png

  Here, provide your admin username and password, then click on the Log In button, you should see the Couch CMS dashboard in the following image:
DSC0003.png




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-674163-1-1.html 上篇帖子: How to Install OroCRM with Nginx on Ubuntu16.04LTS-Arnold 下篇帖子: How to install XMB forum on Ubuntu 16.04 LTS-Arnold
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表