{"id":283,"date":"2025-07-17T11:09:28","date_gmt":"2025-07-17T11:09:28","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/07\/17\/11792202-how-to-install-custom-php-on-hostinger-agency-plan\/"},"modified":"2025-08-27T06:36:59","modified_gmt":"2025-08-27T06:36:59","slug":"11792202-how-to-install-custom-php-on-hostinger-agency-plan","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11792202-how-to-install-custom-php-on-hostinger-agency-plan\/","title":{"rendered":"How to Install Custom PHP on Hostinger Agency Plan?"},"content":{"rendered":"<p class=\"no-margin\"><b>Agency Plan<\/b> fully supports <b>custom PHP-based<\/b> websites &mdash; including popular content management systems (CMS) and frameworks built in PHP, such as Moodle, Prestashop, Laravel, and more. You can set up your website using either the <b>File Manager<\/b> or <b>SSH access<\/b> provided in your hosting account. In this article, we will walk you through both steps.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_0d5ebb9d67\">Step 1 &ndash; Prepare your project<\/h2><p class=\"no-margin\">To begin, download the latest version of the project you want to deploy. In this tutorial, we&rsquo;ll guide you through the installation of <b>PrestaShop<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Go to the <b><a href=\"https:\/\/www.prestashop.com\/en\/download\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Prestashop download page<\/a><\/b> to get its latest version.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_34cbb73173\">Step 2 &ndash; Add a new website<\/h2><p class=\"no-margin\">On the <a href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Website List<\/a> &gt; <b>Add website<\/b> &gt; <b>Custom PHP\/HTML website<\/b>, then add your domain name, or you also can <a href=\"\/support\/2489693-how-to-access-your-website-content-without-a-domain\" target=\"_blank\" class=\"intercom-content-link\">Use temporary domain<\/a>. Once it&rsquo;s done, go the <b>Dashboard<\/b>.<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/cfb86370-02c1-4941-91f5-fded0567dcf2.jpg\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_3b166c5d43\">Step 3 &ndash; Install your project<\/h2><h3 id=\"h_72f38b50e5\">Install via SSH<\/h3><ol>\n<li>\n<p class=\"no-margin\"><a href=\"\/support\/10657418-agency-hosting-plans-how-to-use-remote-access-ssh-sftp\" target=\"_blank\" class=\"intercom-content-link\">Connect to your SSH<\/a><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Once you&rsquo;re logged in, go to your desired directory to install the project.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Inside public_html, you will see only default.php file for newly added website <\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/03e94b8f-48a3-40a0-a7ff-4932765ca9ac.jpg\"><\/div>\n<\/li>\n<li>\n<p class=\"no-margin\">Exit the SSH. From your local device, upload the project file to the hosting and the directory. <\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/7c1cdd85-719c-44b2-9ebf-8f9c50b33445.jpg\"><\/div>\n<pre><code>scp -P 65002 ~\/Downloads\/prestashop_edition_basic_version_9.0.0-1.0.zip username@yourdomain.com:\/home\/username\/domains\/yourdomain.com\/public_html<\/code><\/pre>\n<p class=\"no-margin\">Replace:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><code>~\/Downloads\/prestashop_edition_basic_version_9.0.0-1.0.zip<\/code> with the actual path to the file on your computer<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><code>username<\/code> and <code>yourdomain.com<\/code> with your actual SSH credentials and domain<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><code>-P 65002<\/code> is the default SSH port <br>&#8203;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p class=\"no-margin\">Login back to the SSH, then unzip the project <\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/fd83565b-f529-415b-b643-4178caa768d3.jpg\"><\/div>\n<pre><code>unzip prestashop_edition_basic_version_9.0.0-1.0.zip<\/code><\/pre>\n<p class=\"no-margin\">&#8203;<\/p>\n<\/li>\n<\/ol><h3 id=\"h_a90570ad1e\">Install via File Manager<\/h3><ol>\n<li>\n<p class=\"no-margin\">Open your File Manager<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click the<b> Upload Files<\/b> icon at the top-right. <\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/a692f9b3-ba0e-496c-aad5-f5e315ebea6d.jpg\"><\/div>\n<\/li>\n<li>\n<p class=\"no-margin\">Extract the file. <\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/07\/37486b8d-9d8b-49f9-8cae-a54fa33eaad2.jpg\" width=\"132\"><\/div>\n<\/li>\n<\/ol><h2 id=\"h_d1f20c15e3\">Step 4 &ndash; Create database<\/h2><p class=\"no-margin\">After the installation file is uploaded to File Manager, you just need to <a href=\"\/support\/1583542-how-to-create-a-new-mysql-database\" target=\"_blank\" class=\"intercom-content-link\">create the database<\/a> for the website. <\/p><p class=\"no-margin\"><b>Important<\/b>: database credentials also should have been updated in the application. For Prestashop, it is located under the file <i>\/app\/config\/parameters.php<\/i><\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_85a18fbaa7\">Step 5 &ndash; Launch the website<\/h2><p class=\"no-margin\">The last step, launch the website and complete the necessary configuration steps. Your website is ready! &#128640; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step-by-step of installing custom PHP website on Agency Plan<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[294],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-agency-hosting-plans"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11792202-how-to-install-custom-php-on-hostinger-agency-plan\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":1679,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/283\/revisions\/1679"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}