Modify the Apache configuration (to enable php)

  1. Open System Preferences -> Sharing and make sure that "personal web sharing" is turned off (if it is on, you can turn it off during this installation)
  2. Open Terminal (on Applications/Utilities) and type the following string:

    sudo pico /etc/apache2/httpd.conf

    You will be asked for the administrator password. Once you have typed it (please notice that you won't be able to see what you are typing!) press return.

    A text editor (pico) window will be opened with the apache configuration text file in it.

    thumb_10.6-1

  3. By using the down arrow key, reach the line that reads:

    "#LoadModule php5_module libexec/apache2/libphp5.so"

    (tip: you can search this line by using the search function of pico (Ctrl+W) typing the word "php")

    10.6-2

  4. To uncomment this line use the arrows keys go to the beginning of the line and remove the character "#" using the backspace key. now the line should be displayed as:

    LoadModule php5_module libexec/apache2/libphp5.so

    10.6-3


  5. Press Ctrl+O and then press Return to confirm that you want to save settings.
  6. Press Ctrl-X to quit Pico.