What are the potential pitfalls to avoid when installing PHP on a local web server?

One potential pitfall to avoid when installing PHP on a local web server is not configuring the correct PHP settings, such as the maximum file upload size or execution time limits. This can lead to issues with uploading large files or running long scripts. To solve this, you can adjust these settings in the php.ini file.

// Increase maximum file upload size
ini_set('upload_max_filesize', '20M');

// Increase maximum execution time
ini_set('max_execution_time', 300);