How can the ScriptAlias directive be used in the httpd.conf file to properly configure PHP?

To properly configure PHP in the httpd.conf file using the ScriptAlias directive, you need to specify the path to the PHP executable and the path to the directory where PHP scripts are located. This allows Apache to recognize PHP files and execute them properly. An example of how to use the ScriptAlias directive in the httpd.conf file to configure PHP: ``` ScriptAlias /php/ "C:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php-cgi.exe" ``` In this example, we are specifying the path to the PHP executable as "C:/php/" and telling Apache to treat files with a .php extension as PHP scripts. The Action directive tells Apache to use the php-cgi.exe executable to process PHP scripts.