Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    _Install PHP module in mac OSX:

    Follow these steps to install php module in your mac. (this version only supports Mac OSX 10.2.x if you are using Mac OSX 10.1.x the older version still available on php.net for you to download).

    Step 1: Install PHP module:
    Open a terminal window

    shell~> curl -O http://www2.entropy.ch/download/libphp4.so.gz __ //wait for download to finish//
    shell~> gunzip libphp4.so.gz
    shell~> sudo mv libphp4.so /usr/libexec/httpd/

    Step2: Activating the PHP Module
    Open a terminal window

    shell~> cd /etc/httpd
    shell~> sudo apxs -e -a -n php4 libexec/httpd/libphp4.so


    On OS X prior to 10.2, type
    shell~> sudo perl -p-i.bak -e 's%#(AddType \S+-php[ -])%$1%i' httpd.conf
    On OS X 10.2, type
    shell~> echo 'echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf' | sudo sh -s
    (Note: Don't type this by hand, do a copy/paste from this web page directly to the terminal)

    then finally type in
    shell~>sudo apachectl graceful __ //to restart the web server //


    PHP should now ready to use, you can test this by make a file with this content:

    [code:<? echo ("hello world")?> ]

    Then save it into your "/users/Sites/" folder with name "hello.php". then use your browser to open http://127.0.0.1/~your_short_username/test.php. If you can see the hello world text is mean php module is installed in your server .
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  2.  

  3. #2
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    Install MySQL server:

    __Step 1: download mySQL version on mysql.com
    Here is version mySQL 4.0 from mySQL.com ( mysqlmax - 6.6Mb) - ( Mysqlstandard - 7.2Mb) - ( Mysqldebug - 16.5Mb). After downloaded mount the dmg file then run install.

    __step 2: Activate mysql server
    MySql requires useraccount named "mysql" which already have in mac osx 10.2.x(you need to creat it in mac osx 10.1 or older)

    _then open a terminal window type in this:

    shell~> cd /usr/local/mysql
    shell~> sudo ./bin/mysqld_safe
    password:__ //Enter your administrator password//
    dont wait, Press CTRL+Z immediately - mySQL server should now be activated, and started.

    You should now be able to connect to the MySQL server, e.g. by running:

    shell~> /usr/local/mysql/bin/mysql

    Everything should be ok now, good luck and have fun with it.
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  4. #3
    Senior Member iphong's Avatar
    Join Date
    Mar 2003
    Location
    Arlington, VA
    Posts
    751
    Member #
    916
    That is what exactly what i have done in my mac to install PHP/MySQL. is also what have been mentioned in my website http://phongvtvn.curvedspaces.com/de...tallserver.php all this are useful for mac users.
    Vu Tuan Phong
    iPhongDesign

    http://iphong.com
    http://adstudio1.com

  5. #4
    Junior Member
    Join Date
    Oct 2003
    Posts
    1
    Member #
    3410
    I get the reply: No such file or directory
    MySQL installed itself under Library/MySQL

    what to do?

  6. #5
    Senior Member zionlocke's Avatar
    Join Date
    Jan 2003
    Location
    .: l33t Basement :.
    Posts
    736
    Member #
    483
    Liked
    3 times
    i'm new to mac osx, how to open a term? i'm finally trying it out on campus.
    Cheers, zionlocke :chinese:
    Links: Zion Creation | Blog


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com