Configuring sendmail on Jaguar
Subject:   When will you guys get it?
Date:   2002-09-26 20:32:23
From:   anonymous2
There are a lot of us Mac users that are designer types not ITs. All we want to to is have MySQL, PHP, Apache and Sendmail working locally to develop web sites. I got the first three working, but I don't even know how to configure Apache to load index.php file by default, or make a alias to the localhost. When testing a mail script Apache is just spinning it's wheels while PHP is trying to send the mail somewhere. Most Mac users are not going to host a real site on their desktops so why not give us an article that spells out what we really need step by step? I would even by a book if I knew of one, that kept it simple and concentrated on local hosting.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • When will you guys get it?
    2002-09-26 23:39:00  patrick_s [View]

    Brother... I've been there. The articles here are great, but they do assume (with all due respect) a little bit of UNIX geerkery. Check out their starting articles such as learning the Mac OS X terminal. * As for your 2 questions:

    Load index.php by default:

    Launch Terminal:
    1. Edit the httpd.conf file by typing: sudo pico /etc/httpd/httpd.conf (This line means that you want to edit (pico is an editor) the file 'httpd.conf' (located in /etc/httpd/) and you want to do it as a 'superuser' (hence the sudo command).
    2. Enter your admin password. (this is necessary because of the 'sudo' command)
    3. After the file is opened (in pico) hold down the Control key and type w. -- This command will allow you to enter some text to search for.
    4. The cursor will be in a white bar at the bottom of the terminal, labeled 'Search:'. Type index.html, and hit the return key.
    5. The cursor will move to a line that reads "DirectoryIndex index.html". Move your cursor to the end of this line and type 'index.php'. Make sure there is a space between 'index.html' and 'index.php'
    6. Save the httpd.conf file by holding down the Control key and typing o. Hit the enter key to confirm the save.
    7. Exit pico by holding down the Control key and typing x.
    8. Restart Apache by typing: sudo apachectl graceful, enter your password if/when prompted.

    The alias to the local host is a little bit more involved. If the behavior you are looking for is: Typing your domain name ( into your web browser displays your local web server, then post your email address as a response and I'll send you a document that will help you out.

    * I take no responsibility if you screw up your system using the steps I described above.