{"id":15036,"date":"2025-06-13T18:11:13","date_gmt":"2025-06-13T12:41:13","guid":{"rendered":"https:\/\/www.skynats.com\/?p=15036"},"modified":"2025-06-13T18:11:15","modified_gmt":"2025-06-13T12:41:15","slug":"how-to-install-leantime-on-ubuntu-24","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-leantime-on-ubuntu-24\/","title":{"rendered":"How to Install Leantime on Ubuntu 24"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">How to Install Leantime on Ubuntu Using Apache, <a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">MySQL<\/mark><\/a>, and PHP (LAMP Stack).Leantime is a lean, open-source project management system designed for startups and small teams. In this guide, you&#8217;ll learn to install Leantime on Ubuntu 24 using Apache, MySQL, and PHP (LAMP stack).<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-install-apache2-and-enable\"><strong>Install Apache2 and enable<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install apache2\nEnable and start Apache:\n\nsudo systemctl enable apache2\nsudo systemctl start apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-small-font-size\" id=\"h-install-mysql\"><strong>Install MySQL<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install mysql-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create Leantime Database<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log into MySQL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mysql -u root -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following SQL commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE leantime_db;\nCREATE USER 'leantime_user'@'localhost' IDENTIFIED BY 'password';\nGRANT ALL PRIVILEGES ON leantime_db.* TO 'leantime_user'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace &#8216;password&#8217; with a secure password.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-install-php-and-required-extensions\"><strong>Install PHP and Required Extensions<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install PHP and necessary modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php php-cli php-fpm php-mysql php-json php-opcache php-mbstring php-xml php-gd php-curl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php -v<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-download-leantime\"><strong>Download\u00a0 Leantime<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to your web root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Download and extract Leantime:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install unzip\nsudo wget https:\/\/github.com\/Leantime\/leantime\/releases\/download\/v3.5.5\/Leantime-v3.5.5.zip\nsudo unzip Leantime-v3.5.5.zip\nsudo mv Leantime-v3.5.5 leantime\nsudo chown -R www-data:www-data leantime<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-nbsp-set-up-the-environment-configuration-file\"><strong>&nbsp;Set Up the Environment Configuration File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Leantime uses a .env file to store database and environment configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the config directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/html\/leantime\/config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the sample environment file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo cp env.example .env<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the .env file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano .env<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update the following lines with your database information:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DB_HOST=localhost<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DB_NAME=leantime_db<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DB_USER=leantime_user<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DB_PASSWORD=password<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure these match the credentials you created earlier in MySQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save and close the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-nbsp-configure-apache\">&nbsp;<strong>Configure Apache<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a virtual host configuration:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano \/etc\/apache2\/sites-available\/leantime.conf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Paste:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;VirtualHost *:80&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;DocumentRoot \/var\/www\/html\/leantime\/public<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;ServerName IP address or domain name<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&lt;Directory \/var\/www\/html\/leantime\/public&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride All<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Require all granted<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;&lt;\/Directory&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;ErrorLog ${APACHE_LOG_DIR}\/leantime_error.log<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;&nbsp;&nbsp;&nbsp;CustomLog ${APACHE_LOG_DIR}\/leantime_access.log combined<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;\/VirtualHost&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable site and modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2ensite leantime.conf\nsudo a2enmod rewrite\nsudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-complete-leantime-installation\"><strong>Complete Leantime Installation<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In your browser, go to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">http:\/\/&lt;your-server-ip&gt;\/install<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Or:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">http:\/\/yourdomain.com\/install<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following this step-by-step guide, you\u2019ve successfully Install Leantime on Ubuntu 24 and configured it on an Ubuntu server using the LAMP stack. Your setup now includes a secure, open-source project management platform that supports agile workflows, kanban boards, Gantt charts, and more\u2014ideal for teams looking to streamline their project planning and execution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you face any issues during the installation or need expert assistance, don&#8217;t hesitate to reach out for professional <strong><a href=\"https:\/\/www.skynats.com\/linux-server-management\/\">Linux Server Management<\/a><\/strong> support. A reliable team can help you you Install Leantime on Ubuntu 24, configure, secure, and optimize your setup, ensuring smooth and efficient project management operations.<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install Leantime on Ubuntu Using Apache, MySQL, and PHP (LAMP Stack).Leantime is a lean, open-source project management system designed for startups and small teams. In this guide, you&#8217;ll learn to install Leantime on Ubuntu 24 using Apache, MySQL, and PHP (LAMP stack). Install Apache2 and enable Install MySQL sudo apt install mysql-server Create [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1052,241,1051,993],"class_list":["post-15036","post","type-post","status-publish","format-standard","hentry","category-blog","tag-leantime","tag-linux","tag-linux-sever-management-system","tag-ubuntu-24"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=15036"}],"version-history":[{"count":5,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15036\/revisions"}],"predecessor-version":[{"id":15046,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/15036\/revisions\/15046"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=15036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=15036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=15036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}