{"id":64181,"date":"2022-02-09T08:14:38","date_gmt":"2022-02-09T14:14:38","guid":{"rendered":"https:\/\/www.scalahosting.com\/blog\/?p=64181"},"modified":"2025-12-08T05:39:54","modified_gmt":"2025-12-08T11:39:54","slug":"wordpress-manual-installation-and-wp-config-php-optimization","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/blog\/wordpress-manual-installation-and-wp-config-php-optimization\/","title":{"rendered":"WordPress Manual Install &amp; wp-config Tips"},"content":{"rendered":"\n<p>WordPress powers <strong>more than 40% of all websites<\/strong>, so it&#8217;s no surprise that software vendors and hosting providers are in a race to ensure that you can start work on your WP-based project as quickly as possible. <strong>One-click automatic installers<\/strong> are commonplace nowadays, and they can literally get you going in seconds.<\/p>\n\n\n\n<p>Nevertheless, some people still prefer manual installation. They also don&#8217;t shy away from editing the <strong>wp-config.php<\/strong> file, which, as we&#8217;ll find out in a minute, can have <strong>a significant effect on the site&#8217;s performance and security<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"things\"><strong>Things to Know Before Installing WordPress<\/strong><\/h2>\n\n\n\n<p>Before you can install WordPress, you&#8217;ll need a hosting account. WordPress works with <strong>MySQL databases and PHP<\/strong>, and you&#8217;ll also need <strong>Apache<\/strong>, <strong>Nginx<\/strong>, or another web server that supports these technologies.<\/p>\n\n\n\n<p>Your hosting account probably has <strong>a control panel and a file manager<\/strong>, which you&#8217;ll use to upload the WP core files. Alternatively, you can use either an FTP client or the command-line interface.<\/p>\n\n\n\n<p>A GUI-based database management system can also make your life a whole lot easier. If it&#8217;s not included in your plan, you&#8217;ll have to <a href=\"https:\/\/www.scalahosting.com\/kb\/how-to-create-or-delete-a-mysql-database-or-user\/\"><strong>manage MySQL<\/strong><\/a> via SSH.<\/p>\n\n\n\n<p><em>These are the prerequisites. So let&#8217;s see the actual steps.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step\"><strong>WordPress Manual Installation \u2013 Step by Step<\/strong><\/h2>\n\n\n\n<p><strong>Manually installing WP may sound like a complex job<\/strong>, but if you follow the logic, you&#8217;ll see that it&#8217;s hardly rocket science.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-create-a-mysql-user-account-and-a-database\"><strong>1. Create a MySQL user account and a database<\/strong><\/h3>\n\n\n\n<p>Your first job is to set up the database. In addition to it, you also need a MySQL user account associated with it. WordPress will use the account to access your site&#8217;s data and display it to visitors.<\/p>\n\n\n\n<p>Most hosting setups give you <strong>a point-and-click interface for creating and managing databases<\/strong>. Here, for example, is what you&#8217;ll work with if you use an SPanel <a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\"><strong>managed VPS from ScalaHosting<\/strong><\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation.png\"><img decoding=\"async\" width=\"969\" height=\"1024\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation-969x1024.png\" alt=\"WordPress Manual Install &amp; wp-config Tips, 1. Create a MySQL user account and a database\" class=\"wp-image-64184\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation-969x1024.png 969w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation-284x300.png 284w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation-768x812.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation-1454x1536.png 1454w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation.png 1903w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>As you can see, you can<em> usually create multiple user accounts and databases<\/em>. The great thing about GUI-based tools like the ones you see above is that you can <strong>create a user account and associate it with a database<\/strong> with no more than a couple of clicks.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-download-and-extract-the-wordpress-core\"><strong>2. Download and extract the WordPress core<\/strong><\/h3>\n\n\n\n<p><strong>WP&#8217;s latest version<\/strong> is available at <a href=\"https:\/\/wordpress.org\/\">https:\/\/wordpress.org<\/a>, and it&#8217;s completely free to download and use. It comes as <strong>a ZIP archive<\/strong>, which you&#8217;ll need to upload to your account&#8217;s document root directory (usually, the <strong>public_html<\/strong> folder) and extract the files in it.<\/p>\n\n\n\n<p>You can extract the ZIP on your local computer and upload them via <strong>an FTP client<\/strong>. However, many people will find it easier to use <strong>the control panel&#8217;s File Manager<\/strong> and its built-in extracting option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1.png\"><img decoding=\"async\" width=\"1024\" height=\"358\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1-1024x358.png\" alt=\"WordPress Manual Install &amp; wp-config Tips, 2. Download and extract the WordPress core\" class=\"wp-image-64185\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1-1024x358.png 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1-300x105.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1-768x268.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1-1536x537.png 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation1.png 1920w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>People who feel comfortable working with the command-line can also use <a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-ssh-and-how-to-use-it\/\"><strong>SSH<\/strong><\/a>, where they have <strong>access to WP-CLI<\/strong> \u2013 a specialized tool that can streamline the process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-follow-the-steps-in-wp-s-installation-wizard\"><strong>3. Follow the steps in WP&#8217;s installation wizard<\/strong><\/h3>\n\n\n\n<p>If you now go to your installation folder, WordPress will present you with <strong>a quick installation wizard<\/strong> to help with the final setup. After choosing a language for the interface, you need to <strong>configure WP to work<\/strong> with the database you created a few minutes ago.&nbsp;<\/p>\n\n\n\n<p>You&#8217;ll need <strong>the database name and the MySQL user account&#8217;s login credentials<\/strong>. Unless you have a custom setup, you can leave the <strong>Database Host <\/strong>and <strong>Table Prefix <\/strong>fields in their default state.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation2.png\"><img decoding=\"async\" width=\"807\" height=\"584\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation2.png\" alt=\"WordPress Manual Install &amp; wp-config Tips, 3. Follow the steps in WP&#8217;s installation wizard\" class=\"wp-image-64186\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation2.png 807w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation2-300x217.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation2-768x556.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>If you have entered the information correctly, the wizard will establish a connection to the database, and you will be able to run the installation.<\/p>\n\n\n\n<p>The final step is to <strong>set your site title and configure the admin account.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation3.png\"><img decoding=\"async\" width=\"789\" height=\"904\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation3.png\" alt=\"WordPress Manual Install &amp; wp-config Tips, 3. Follow the steps in WP&#8217;s installation wizard 2\" class=\"wp-image-64187\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation3.png 789w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation3-262x300.png 262w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/wp-manual-installation3-768x880.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"file\"><strong>Optimizing the WP-Config.php File<\/strong><\/h2>\n\n\n\n<p>During the installation process you&#8217;ve just completed, WordPress has automatically created <strong>wp-config.php<\/strong> \u2013 one of the main configuration files. You can now log into the WordPress dashboard and start work on your website. However, many people prefer to make some <strong>modifications to wp-config.php<\/strong> in an effort to improve their site&#8217;s performance, security, and reliability.<\/p>\n\n\n\n<p><strong>There are three options for editing the wp-config.php file:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You can <a href=\"https:\/\/www.scalahosting.com\/kb\/what-is-ftp\/\"><strong>use an FTP client<\/strong><\/a> to download it from the document root directory of your website, edit it with a text editor of your choice on your local computer, and then re-upload.<\/li>\n\n\n\n<li>You can edit it straight from your control panel&#8217;s File Manager.<\/li>\n\n\n\n<li>You can use SSH and a native text editor like Nano to make the changes on the server.<\/li>\n<\/ol>\n\n\n\n<p>If your modifications are to work, you need to ensure they&#8217;re situated above the &#8220;<em>\/* That&#8217;s all, stop editing! Happy publishing. *\/<\/em>&#8221; line.<\/p>\n\n\n\n<p>Bear in mind that wp-config.php is <strong>a core configuration file<\/strong>. If it breaks, the entire website might stop working, so it pays to create a backup before you continue with the modifications. There&#8217;s no shortage of things you can optimize.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280.png\"><img decoding=\"async\" width=\"1024\" height=\"711\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280-1024x711.png\" alt=\"WordPress Manual Install &amp; wp-config Tips, Optimizing the WP-Config.php File\" class=\"wp-image-64188\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280-1024x711.png 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280-300x208.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280-768x533.png 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/programmer-1653351_1280.png 1280w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"post-revisions\"><strong>Post revisions<\/strong><\/h3>\n\n\n\n<p>By default, <strong>WordPress keeps every single edit you make<\/strong>. This can be useful if you need to undo some accidental changes, but from a backend perspective, it&#8217;s hardly ideal. Every revision is a database entry, so if you make many changes to your posts and pages, you can quickly bloat the database and compromise the performance.<\/p>\n\n\n\n<p>Thankfully, you <strong>can limit the number of stored revisions or disable them altogether<\/strong>.<\/p>\n\n\n\n<p><strong>To limit the number of revisions WP keeps to three per post, enter the following line in wp-config.php:<\/strong><\/p>\n\n\n\n<p class=\"alert-orange\"><em>define( &#8216;WP_POST_REVISIONS&#8217;, 3 );<\/em><\/p>\n\n\n\n<p><strong>If you prefer not to store any revisions at all, you can use the following line:<\/strong><\/p>\n\n\n\n<p class=\"alert-orange\"><em>define( &#8216;WP_POST_REVISIONS&#8217;, false );<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-s-autosave-interval\"><strong>WP&#8217;s autosave interval<\/strong><\/h3>\n\n\n\n<p>While you&#8217;re editing a post, WordPress <strong>automatically saves your changes once every 60 seconds<\/strong>. This is convenient if you use the block editor to compose and format your content. However, it&#8217;s not much use if you write the text locally and use the <a href=\"https:\/\/www.scalahosting.com\/blog\/navigating-your-wordpress-dashboard\/\"><strong>WordPress dashboard<\/strong><\/a> only to publish it. At the same time, all this automatic saving generates database queries and additional load.<\/p>\n\n\n\n<p>Luckily, <strong>you can tweak WP&#8217;s autosave interval <\/strong>depending on your needs. For example, if you want to make WordPress automatically save your work every 180 seconds, you need the following line in the wp-config.php file:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>define(&#8216;AUTOSAVE_INTERVAL&#8217;, 180 );<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"file-editing\"><strong>File editing<\/strong><\/h3>\n\n\n\n<p>The damage could be pretty scary if an unauthorized user gains access to your WordPress dashboard.<\/p>\n\n\n\n<p>For example, if a hacker accesses your dashboard, they get pretty much unlimited control over your files.&nbsp;<\/p>\n\n\n\n<p>They can install or update<strong> themes and plugins<\/strong> and inject <strong>malicious code<\/strong>, which allows them to use your site as a launchpad for additional attacks on other targets. You can&#8217;t completely eliminate the consequences in case of a hack, but you can minimize the damage.<\/p>\n\n\n\n<p>Using a single line in the wp-config file, you can prevent unauthorized edits and updates to your files, themes, and plugins.<\/p>\n\n\n\n<p class=\"alert-orange\"><em>define( &#8216;DISALLOW_FILE_EDIT&#8217;, true );<\/em><\/p>\n\n\n\n<p>Bear in mind that the line above will also disable the plugin and theme editors available in the WordPress dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920.jpg\"><img decoding=\"async\" width=\"1024\" height=\"682\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920-1024x682.jpg\" alt=\"WordPress Manual Install &amp; wp-config Tips, File editing\" class=\"wp-image-64189\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920-1024x682.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920-300x200.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920-768x512.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920-1536x1023.jpg 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/cms-265125_1920.jpg 1920w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"defining-the-home-and-site-url\"><strong>Defining the home and site URL<\/strong><\/h3>\n\n\n\n<p>During the initial installation, your website&#8217;s home and site URLs are entered into the database, and every time a plugin or a theme needs to access them, it sends <strong>an SQL query<\/strong>. This happens more often than you might think, and processing all these queries may end up using a significant amount of hardware resources.<\/p>\n\n\n\n<p><strong>Defining the home and site URLs in the wp-config.php file will lower the load on the database and improve the performance. Here&#8217;s what you need to add:<\/strong><\/p>\n\n\n\n<p class=\"alert-orange\"><em>define(&#8216;WP_HOME&#8217;, &#8216;http:\/\/www.yourdomain.com&#8217;); <br>define(&#8216;WP_SITEURL&#8217;, &#8216;http:\/\/www.yourdomain.com&#8217;);   <\/em><\/p>\n\n\n\n<p><strong>Emptying the trash more frequently<\/strong><\/p>\n\n\n\n<p>If you want to remove a WordPress post or a comment, <strong>you don&#8217;t purge it straightaway<\/strong>. Instead, you first move it to the trash, from where you can delete it permanently. That way, you can be sure you won&#8217;t delete anything by accident.<\/p>\n\n\n\n<p>Items in the trash (and their database entries) are kept for <strong>30 days<\/strong> by default, but you can lower that period if you want to keep the database clean.&nbsp;<\/p>\n\n\n\n<p><strong>For example, if you wish to delete posts in the trash after a week, you need to add the following line to the wp-config.php file:<\/strong><\/p>\n\n\n\n<p class=\"alert-orange\"><em>define(&#8216;EMPTY_TRASH_DAYS&#8217;, 7 );<\/em><\/p>\n\n\n\n<p>You can also disable the trash feature altogether by swapping the &#8220;7&#8221; in the line above with &#8220;0.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201.jpg\"><img decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201-1024x683.jpg\" alt=\"WordPress Manual Install &amp; wp-config Tips, Defining the home and site URL\" class=\"wp-image-64190\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201-1024x683.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201-300x200.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201-768x512.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201-1536x1024.jpg 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2022\/02\/settings-265131_19201.jpg 1920w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"increasing-php-s-memory-limit\"><strong>Increasing PHP&#8217;s memory limit<\/strong><\/h3>\n\n\n\n<p>A low PHP memory limit can lead to server errors and <strong>the white screen of death<\/strong>. It&#8217;s usually configured via the <strong>php.ini<\/strong> file, but if you don&#8217;t have access to it, you can use <strong>wp-config.php<\/strong>.<\/p>\n\n\n\n<p>Here&#8217;s what you need to enter if you want to set it at 512MB:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;512M&#8217;);<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>There are<strong> easier ways of setting up WordPress<\/strong>, but doing it manually isn&#8217;t exactly rocket science. What&#8217;s more, you stand a better chance of understanding how WP works. With that knowledge, you&#8217;ll see how modifications to the wp-config.php file can improve your <strong>site&#8217;s performance and <\/strong><a href=\"https:\/\/www.scalahosting.com\/blog\/wordpress-security-guide\/\"><strong>security<\/strong><\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\"><strong>FAQ<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-difficult-is-it-to-install-wordpress-manually\"><strong>How difficult is it to install WordPress manually?<\/strong><\/h3>\n\n\n\n<p>Modern one-click installers can set up WordPress in seconds. However, even the manual installation isn&#8217;t something you need to be scared of. It boils down to <strong>uploading and extracting the WP core<\/strong>, <strong>setting up a database<\/strong>, and configuring the two to work together. If you&#8217;re careful, you&#8217;ll struggle to get it wrong.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-wp-config-php\"><strong>What is wp-config.php?<\/strong><\/h3>\n\n\n\n<p>Wp-config.php is one of WP&#8217;s core configuration files. It hosts many of the settings related to your WordPress installation, including the details that help the <a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-a-content-management-system\/\"><strong>content management system<\/strong><\/a><strong> communicate with the database.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-do-i-access-the-wp-config-php-file\"><strong>How do I access the wp-config.php file?<\/strong><\/h3>\n\n\n\n<p>The wp-config.php file is usually located in your website&#8217;s document root folder. If you have <a href=\"https:\/\/www.scalahosting.com\/kb\/how-to-establish-an-ftp-connection-to-your-hosting-account\/\"><strong>FTP access<\/strong><\/a>, you can download and edit it on your local computer. Alternatively, <strong>you can use either <\/strong><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-ssh-and-how-to-use-it\/\"><strong>SSH<\/strong><\/a><strong> or your control panel&#8217;s file manager<\/strong> to modify the file directly on the server.<\/p>\n\n\n\n<p><script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n        \"@type\": \"Question\",\n        \"name\": \"How difficult is it to install WordPress manually?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Modern one-click installers can set up WordPress in seconds. However, even the manual installation isn't something you need to be scared of. It boils down to uploading and extracting the WP core, setting up a database, and configuring the two to work together. If you're careful, you'll struggle to get it wrong.\"\n        }\n      }, {\n        \"@type\": \"Question\",\n        \"name\": \"What is wp-config.php?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Wp-config.php is one of WP's core configuration files. It hosts many of the settings related to your WordPress installation, including the details that help the content management system communicate with the database.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"How do I access the wp-config.php file?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"The wp-config.php file is usually located in your website's document root folder. If you have FTP access, you can download and edit it on your local computer. Alternatively, you can use either SSH or your control panel's file manager to modify the file directly on the server.\"\n        }\n      }]\n    }<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress powers more than 40% of all websites, so it&#8217;s no surprise that software vendors and hosting providers are in &#8230;<\/p>\n","protected":false},"author":113,"featured_media":64183,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"WordPress Manual Install & wp-config Tips | ScalaHosting Blog","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[39],"tags":[],"class_list":["post-64181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/64181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/comments?post=64181"}],"version-history":[{"count":3,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/64181\/revisions"}],"predecessor-version":[{"id":73389,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/64181\/revisions\/73389"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media?parent=64181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/categories?post=64181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/tags?post=64181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}