Skip to content

Commit

Permalink
php.ini edit
Browse files Browse the repository at this point in the history
  • Loading branch information
elkcityhazard committed Dec 9, 2024
1 parent 569db2b commit b48e97f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/blog/2024/12/wordpress-selfhosted.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,19 @@ server {
- `sudo nginx -t`
- `sudo systemctl reload nginx`

## Updating PHP.INI For Wordpress File Uploads & Post Requests
- `php --ini`
- Look for the loaded configuration file which in my case is
`/etc/php/.3/cli/php.ini`
- `sudo vim /etc/php/8.3/cli.php.ini`
- `upload_max_filesize = 1048M` This can be whatever you need it to be
- `post_max_size = 1048M` This can be whatever you need it to be
- `Save the buffer`
- `sudo systemctl reload php8.3-fpm.server` Pay attention to what your php
version for this.



## Conclusion

Congratulations! You have successfully set up a self-hosted WordPress site on your own virtual private server. By following this tutorial, you have gained control over your website, improved security, and learned valuable Linux skills along the way.
Expand Down

0 comments on commit b48e97f

Please sign in to comment.