This will change the default executable file to index.php now restart the server using the following commandĪfter restarting the server you might be encountered with the error user permissions here you need to give “read and write permission” to the user to make changes. I turned that off and it still won't start. I thought this may have happened after adding a new printer and enabling print sharing. Also tried sudo apachectl stop and sudo apachectl start. This indicates the default file run by our webserver when we type Now we want to run the file with the name index.php to do so change it to the following code Apache web server suddenly no longer starts. Goto terminal again and type the following command Now we need to change the default file used by our local host. Once you remove # from the beginning you need to press ctrl +x to exit from the nano editor and you will be asked to save the changes that you made in nano file. #LoadModule php7_module libexec/apache2/libphp7.so After getting the line you need to uncomment it that is remove # from the beginning. 1) Update the repository index of homebrew To install Apache on our MacOS, we first need to update the index of homebrew package installer. To save our time we can use (cmd+f) in the nano editor and copy paste the following line. UNIX controlling machine remotely 155 SSL (Secure Socket Layer) Apache using 179 standards W3C goals 46 static websites developing 40 status bar. Installation of Apache web server on MacOS includes following steps. The above nano text editor will open here you need to uncomment the line which has php in it (that is removing # from the front).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |