Now restart the server and it should be able to process PHP files. LoadModule php7_module libexec/apache2/libphp7.so Open nf file with the command as follows:- # vi /etc/apache2/nf In order to install PHP, in Mac OS you will just need to enable PHP support for Apache, i.e, to need to make changes in its (httpd) configuration file. Now your VirtualHosts setup is done now, just restart the apache with command # apachectl restart Make sure that you change your DocumentRoot, ServerName and Directory location according to your needs. ServerAlias ErrorLog "/private/var/log/apache2/-error_log"ĬustomLog "/private/var/log/apache2/-access_log" common # vi /etc/apache2/nfĭocumentRoot "/Users/Apple/CODE/" To enable VirtualHosts, we need to make some changes in the Apache Configuration file (nf). In this location, you all can create your application in order to host your web applications. The default location for Apache webserver project files is /Library/WebServer/Documents/.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |