{"id":8,"date":"2025-04-10T21:03:16","date_gmt":"2025-04-10T13:03:16","guid":{"rendered":"https:\/\/jerrykhoo.com\/?p=8"},"modified":"2025-04-11T18:03:39","modified_gmt":"2025-04-11T10:03:39","slug":"troubleshooting-my-wordpress-installation","status":"publish","type":"post","link":"https:\/\/jerrykhoo.com\/index.php\/2025\/04\/10\/troubleshooting-my-wordpress-installation\/","title":{"rendered":"Troubleshooting My WordPress Installation"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"file-size-exceeds-the-upload-max-filesize\">File Size exceeds the upload_max_filesize<\/h2>\n\n\n\n<p>Users working on new installation of WordPress instances may run into this challenge when they are either trying to upload a theme or plugin or a media file for that matter. This can be easily resolved by changing values in the php.ini file which in typical installation of apache2 would be in the \/etc\/php\/8.3\/apache2\/ file directory<\/p>\n\n\n\n<p>Open up php.ini using nano,<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\">nano php.ini<\/code><\/pre>\n\n\n\n<p>Look for &#8220;upload_max_filesize&#8221; and change the value to a bigger value as per your circumstances. Save and reload Apache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wordpress-asking-for-ftp-sftp-permission-when-you-try-to-update-delete-plugins\">WordPress asking for  FTP\/SFTP permission when you try to update\/delete plugins<\/h2>\n\n\n\n<p>This happens when the WordPress installation is not owned by www-data. Navigate to the folder that has your WordPress installation (example \/var\/www\/goonie\/)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R www-data:www-data \/var\/www\/goonie\/<\/code><\/pre>\n\n\n\n<p>Reload your WordPress page and your issue should be resolved.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-the-minimal-php-modules-we-need-to-install-for-a-standard-instance-of-wordpress\">What are the minimal php modules we need to install for a standard instance of WordPress<\/h2>\n\n\n\n<p>We can install the following php modules, where x is the current version of php being installed in your instance<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install php8.x-fpm -y\nsudo apt install php-mysqli -y\nsudo apt install php-mbstring -y\nsudo apt install php-xml -y\nsudo apt install php-zip -y\nsudo apt install php-gd -y\nsudo apt install php-curl -y<\/code><\/pre>\n\n\n\n<p>You will then need to enable the modules <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable php8.1-fpm\nsudo systemctl status php8.1-fpm<\/code><\/pre>\n\n\n\n<p>Restart Apachee for good measure<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>File Size exceeds the upload_max_filesize Users working on new installation of WordPress instances may run into this challenge when they are either trying to upload a theme or plugin or a media file for that matter. This can be easily resolved by changing values in the php.ini file which in typical installation of apache2 would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","iawp_total_views":35,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":6,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jerrykhoo.com\/index.php\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}