{"id":2700,"date":"2025-11-06T17:38:53","date_gmt":"2022-01-19T01:32:12","guid":{"rendered":""},"modified":"2025-02-02T00:46:19","modified_gmt":"2025-02-01T23:46:19","slug":"how-to-install-cachet-status-page-system-on-debian-12","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-cachet-status-page-system-on-debian-12\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Cachet Status Page System on Debian 12"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<section>\n<p>Cachet is a powerful, open-source status page system that helps you communicate downtime and system outages to your users effectively. It provides a sleek and professional way to show your service status. In this guide, we will walk through the steps to install Cachet Status Page System on Debian 12. Whether you&#8217;re using a local server or a <a href=\"https:\/\/ie.netcloud24.com\">VPS server<\/a>, this setup will get you up and running in no time.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before starting, ensure you have the following:<\/p>\n<ul>\n<li>A server running Debian 12 (it can be a local machine or a ).<\/li>\n<li>Root access or a user with sudo privileges.<\/li>\n<li>A working LAMP stack (Linux, Apache, MySQL, PHP) installed on your server.<\/li>\n<\/ul>\n<h2>Step 1: Update Your System<\/h2>\n<p>First, update your system to ensure all packages are up to date. Run the following command:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<p>This will make sure your system is ready for the installation of Cachet and all required dependencies. This step is crucial whether you&#8217;re using a local server or a <a href=\"https:\/\/ie.netcloud24.com\">VPS server<\/a>.<\/p>\n<h2>Step 2: Install Required PHP Modules<\/h2>\n<p>Cachet requires specific PHP extensions. Install them using the following command:<\/p>\n<pre><code>\r\nsudo apt install php php-mbstring php-xml php-bcmath php-json php-mysql php-curl php-zip -y\r\n        <\/code><\/pre>\n<p>These PHP modules will support the functionality needed for Cachet to run smoothly on your server.<\/p>\n<h2>Step 3: Install Composer<\/h2>\n<p>Composer is a dependency manager for PHP that Cachet relies on. Install Composer by running:<\/p>\n<pre><code>\r\nsudo apt install curl\r\ncurl -sS https:\/\/getcomposer.org\/installer | php\r\nsudo mv composer.phar \/usr\/local\/bin\/composer\r\n        <\/code><\/pre>\n<p>Once installed, verify the installation:<\/p>\n<pre><code>composer --version<\/code><\/pre>\n<p>You should see the version number of Composer if everything is set up correctly.<\/p>\n<h2>Step 4: Download and Set Up Cachet<\/h2>\n<p>Navigate to the directory where you want to install Cachet, such as the Apache web root directory:<\/p>\n<pre><code>\r\ncd \/var\/www\/\r\nsudo git clone https:\/\/github.com\/CachetHQ\/Cachet.git\r\ncd Cachet\r\n        <\/code><\/pre>\n<p>Now use Composer to install Cachet&#8217;s dependencies:<\/p>\n<pre><code>composer install --no-dev -o<\/code><\/pre>\n<h2>Step 5: Configure Cachet<\/h2>\n<p>Copy the example environment file to create your own configuration:<\/p>\n<pre><code>cp .env.example .env<\/code><\/pre>\n<p>Edit the <code>.env<\/code> file with your preferred text editor and update the database, email, and app settings:<\/p>\n<pre><code>sudo nano .env<\/code><\/pre>\n<p>Here, you need to update the database connection settings to match your MySQL configuration. It should look something like this:<\/p>\n<pre><code>\r\nDB_CONNECTION=mysql\r\nDB_HOST=127.0.0.1\r\nDB_PORT=3306\r\nDB_DATABASE=cachet\r\nDB_USERNAME=cachetuser\r\nDB_PASSWORD=yourpassword\r\n        <\/code><\/pre>\n<h2>Step 6: Set Up MySQL Database<\/h2>\n<p>Log into MySQL to create a database and user for Cachet:<\/p>\n<pre><code>sudo mysql -u root -p<\/code><\/pre>\n<p>Once logged in, run the following commands:<\/p>\n<pre><code>\r\nCREATE DATABASE cachet;\r\nCREATE USER 'cachetuser'@'localhost' IDENTIFIED BY 'yourpassword';\r\nGRANT ALL PRIVILEGES ON cachet.* TO 'cachetuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nEXIT;\r\n        <\/code><\/pre>\n<p>Ensure that the credentials in the <code>.env<\/code> file match these MySQL settings.<\/p>\n<h2>Step 7: Set Directory Permissions<\/h2>\n<p>Set the appropriate ownership and permissions for Cachet&#8217;s files:<\/p>\n<pre><code>\r\nsudo chown -R www-data:www-data \/var\/www\/Cachet\r\nsudo chmod -R 755 \/var\/www\/Cachet\r\n        <\/code><\/pre>\n<p>This ensures that the web server (Apache) has permission to access Cachet&#8217;s files.<\/p>\n<h2>Step 8: Set Up Apache Virtual Host<\/h2>\n<p>Now, configure Apache to serve your Cachet status page by creating a new virtual host file:<\/p>\n<pre><code>sudo nano \/etc\/apache2\/sites-available\/cachet.conf<\/code><\/pre>\n<p>Add the following configuration:<\/p>\n<pre><code>\r\n\r\n    ServerAdmin admin@yourdomain.com\r\n    DocumentRoot \/var\/www\/Cachet\/public\r\n    ServerName yourdomain.com\r\n    \r\n        AllowOverride All\r\n    \r\n    ErrorLog ${APACHE_LOG_DIR}\/error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n\r\n        <\/code><\/pre>\n<p>Save the file and enable the site:<\/p>\n<pre><code>\r\nsudo a2ensite cachet.conf\r\nsudo a2enmod rewrite\r\nsudo systemctl restart apache2\r\n        <\/code><\/pre>\n<h2>Step 9: Complete the Installation<\/h2>\n<p>Finally, complete the installation by running the following commands:<\/p>\n<pre><code>php artisan key:generate<\/code><\/pre>\n<p>Migrate the database:<\/p>\n<pre><code>php artisan migrate --force<\/code><\/pre>\n<p>Once this is done, your Cachet instance should be accessible via your domain or IP address.<\/p>\n<h2>Conclusion<\/h2>\n<p>By following these steps, you\u2019ve successfully installed the Cachet status page system on Debian 12. Whether it&#8217;s hosted on a local server or a <a href=\"https:\/\/ie.netcloud24.com\">VPS server<\/a>, Cachet provides a modern and efficient way to communicate your service status with users. For reliable hosting solutions, check out <a href=\"https:\/\/ie.netcloud24.com\">netcloud24.com<\/a> for scalable and secure VPS services.<\/p>\n<\/section>\n<footer>\n<p>For more tutorials and VPS hosting solutions, visit <a href=\"https:\/\/ie.netcloud24.com\">netcloud24.com<\/a>.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Cachet is a powerful, open-source status page system that helps you communicate downtime and system outages to your users effectively. It provides a sleek and professional\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2700","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2700"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2700\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}