How do I restore Apache and PHP to Leopard defaults? -


I used to use PHP on my computer to enable PHP, but I have used all my Apache configurations The file is lost. I ran this script which I found on Google to restore Apache on Mac OS X:

  # / bin / sh # ./apache_refresh.sh #if Running with permissions error: U chmod + x filename.sh #WARNING this to remove or change your APACHE settings so backup if you have anything that you might want to "save echo *************** ********* Apache server refresh start ******* - Leopard #make a temporary directory to work with ", so that you can, unless you change Select echo Te "****************** ************* source to folder" current Apache version, updated #get mkdir ~ / Desktop / Apache-floating cd ~ / Desktop / Apache-temporary or echo changed if necessary "*** **************************** Downloading Apache Server "Curl -O http://www.gtlib.gatech.edu/pub/apache/httpd/httpd-2.2.11.tar.gz #if you change the Apache version over here also echo it changing is to be sure "to ******************** *********** remove Apache server" tar xzvf httpd-2.2.11 .tar.gz cd httpd-2.2.11 #youdefault Can change the setting specified path, "Darwin" is set to the default Leopard, if you do not know what this means do not change! Echo "***************** Configuration of Darwin Layout" --enable-layout Configure = Darwin \ - Enabled- went shared mods = all \ --with-ssl = / usr \ --with-mpm = prefork \ --disable- unique ID \ --enable-ssl \ --enable- DAV \ --enable- cache \ --enable- proxy \ --enable-LogIO \ --enable-Deflate \ --with- included April \ --enable-cgi \ --enable-cgid \ --enable-suexec #make files echo "** make ***************************** compile Apache server "#install files echo" ******** ** ********************* installing Apache server "sudo host echo setting file #backup" ************* * ****** *********** Backing host file "CD / private / etc sudo cp host hosts.backup #delete host echo file" *********** **** am **************** be removed host file "sudo rm host echo" ********************* * ********* create new host file "cd ~ / desktop / apache-temporary cat" Host & lt; & Lt; EOF ## # Host Database # # is the loopback interface # when the system boots to configure the local host. Change not to this entry ## 127.0.0.1 localhost 255.255.255.255 broadcasthost :: 1 localhost fe80 :: 1% lo0 localhost EOF #move file ******* to dir echo "new host / etc ********** ************** moving host Filer "sudo mv ~ / Desktop / Apache-temp / hosts / etc #set host file permissions echo" ** ********** ******************* host file permissions set to "CD / private / etc sudo chown root host Httpdkconf #backup file echo "********* ********************** httpd.conf file" backed up httpd cd / private / etc / apach e2 sudo cp httpd.conf httpd.conf.backup #delete .conf echo file "******************************* httpd Delete the .conf file "sudo rm httpd.conf #copy httpd original folder echo" ********************** Creating new httpd.conf file "from .conf file CD original sudo cp httpd.conf /private/etc/apache2/httpd.conf #backup httpd-vhosts.conf file echo" ********** ************************************************************* httpd-vhosts.conf file "CD / personal / etc / apache2 / additional sudo CP httpd-vhosts.conf httpd- the vhost original additional folders echo "s.conf.backup #copy httpd-vhosts.conf file ****************************** * Copying new httpd-vho sts.conf file "CD / private / etc / apache2 / original / additional sudo cp httpd-vhosts.conf temporary folder echo #remove /private/etc/apache2/extra/httpd-vhosts.conf" ** ***** ************************ remove the temporary folder, "Rm r ~ / Desktop / Apache-temporal echo" **** ******* ******************** start the Apache server "sudo echo start apachectl" ************** ******* ********** done " 

Apache went restored, but does not seem httpd.conf file / apache2 in / etc look like httpd.conf Comes with Leopard. As a result, I can not follow the leopard's specific guides on the internet. Is there any way by which I can restore Apache 2+ PHP to the default leopard?

The files were used to pull out the need. I believe the relevant files reside in a package named BSD, which you can extract using. Then, find the files you want and copy them to places established by hand.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -