SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs down apache and php newbie

    hi all

    how doo i save the apache httpd.conf file in Terminal? I'm on Mac OS X 10.3.8 apache 1.3
    And how do i use the menus in httpd.conf under Terminal

    Code:
    sudo emacs /etc/httpd/httpd.conf

    I cant find these lines, what should i do?

    Code:
    #AddType application/x-httpd-php .php #AddType application/x-httpd-php-source .phps
    php seems to be working properly

    Code:
    <?php phpinfo(); ?>
    It shows the status... so i gusse its working fine

    i followed all the steps here but still failed to get phpbb2 instalation to got to install... it stays at the same page no erros messages just the same

    i think apache has something to do with it

  2. #2
    SitePoint Columnist
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First - if you are not used to editing httpd.conf - back it up:

    1) sudo cp /etc/httpd/httpd.conf /etc/httpd/httpd.orig

    Then open the file in Vi and do the following:

    1) sudo vi /etc/httpd/httpd.conf
    2) in Vi type (without quotes) '/php4_module' and press return

    (this is a way to search for text in vi. You do find again by pressing N. You can go to line numbers by typing :and the line number - i.e. :27)

    This will take you to the first occurence of this text in the file which should look like this:

    #LoadModule php4_module

    - if it has a # in front of it - press the 'i' key and position your cursor on the L and press the delete key - which will delete #.

    (if anything goes wrong - you can press the esc key and then type :q! and press return and it will close the file without saving your changes)

    3) Then press the esc key and again type /AddModule mod_php4.c and press return

    You should see #AddModule mod_php4.c

    Follow the procedure above - pressing the 'i' key and positioning your cursor on the A and pressing delete.

    At this point press esc and then type :wq and Return if everything seems ok. This saves the file. You now need to restart Apache. This can be done in System Preferences under Sharing by turning off and on Web Sharing.

    If php is otherwise working properly - try your install again. Be sure to follow permission requirements explicitly when installing in /Library/WebServer/Documents and also insure your mysql is setup properly.
    Freelance System Administrator, Researcher, Writer
    Practical Applications
    Open Sourcery "SitePoint's Open Source Blog"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •