It’s also easy to install. Just upload the web content files to your server and you’re done! With Cockpit, you can browse your website, make changes and see the result immediately. It’s a great way to build and update your content.  It offers features that may not be available to other PHP-based CMS, like WordPress Joomla, or Drupal. For one, it doesn’t need a database server, call it database-less. You can build any content with Cockpit. For more about Cockpit CMS, please check its homepage.

Install Apache2 HTTP Server

Cockpit CMS requires a web server and the Apache2 HTTP server is the most popular open-source web server available today. To install the Apache2 server, run the commands below: After installing Apache2, the commands below can be used to stop, start and enable the Apache2 service to always start up with the server boots. Now that Apache2 is installed. to test whether the web server is working, open your browser and browse to the URL below. If you see the page above, then Apache2 is successfully installed.

Cockpit CMS is a PHP-based CMS and PHP is required. However, PHP 7.2 may not be available in Ubuntu’s default repositories. To run PHP 7.2 on Ubuntu 16.04 and previous, you may need to run the commands below: Then update and upgrade to PHP 7.2 Next, run the commands below to install PHP 7.2 and related modules. After installing PHP 7.2, run the commands below to open the PHP default configuration file for Apache2. The lines below are a good setting for most PHP-based CMS. Update the configuration file with these and save. Every time you make changes to the PHP configuration file, you should also restart the Apache2 web server. To do so, run the commands below: Now that PHP is installed, to test whether it’s functioning, create a test file called phpinfo.php in the Apache2 default root directory. ( /var/www/html/) Then type the content below and save the file. Next, open your browser and browse to the server’s hostname or IP address followed by phpinfo.php You should see the PHP default test page.

Download Cockpit CMS Latest Release

To get Cockpit CMS latest, run the commands below: Then run the commands below to set the correct permissions for Cockpit CMS to adjust the directory permissions.

Configure Apache2 Cockpit CMS Site

Finally, configure the Apache2 configuration file for Cockpit CMS. This file will control how users access Cockpit CMS content. Run the commands below to create a new configuration file called cockpit.conf Then copy and paste the content below into the file and save it. Replace the highlighted line with your domain name and directory root location. Save the file and exit. After configuring the VirtualHost above, enable it by running the commands below

Enable Cockpit CMS Site and Rewrite Module

After configuring the VirtualHost above, enable it by running the commands below, then restart the Apache2 server. Next, open your browser and browse to the server hostname or IP address and you should see the Cockpit CMS setup page. create an admin account and save. After that, Cockpit should be installed and ready to use. The cockpit is a headless and API-driven content management system (CMS). Its structure allowed you to have just the amount of functionality you needed in a flat file CMS solution, adding extensions (blade packs) for further functionality, whilst allowing setup on simple servers with no database. You may also like the post below:

How to Install Cockpit CMS on Ubuntu Linux with Apache - 44How to Install Cockpit CMS on Ubuntu Linux with Apache - 16How to Install Cockpit CMS on Ubuntu Linux with Apache - 40How to Install Cockpit CMS on Ubuntu Linux with Apache - 97