What are some common pitfalls when trying to install PHP on a UNIX server?

One common pitfall when trying to install PHP on a UNIX server is not having the necessary dependencies installed. Make sure to install the required packages such as libapache2-mod-php for Apache or php-fpm for Nginx. Additionally, failing to configure the PHP settings properly can lead to issues with the installation. ```bash sudo apt-get update sudo apt-get install libapache2-mod-php ``` ```bash sudo apt-get update sudo apt-get install php-fpm ```