Results 1 to 5 of 5

Thread: Want to enable PHP in Leopard

  1. #1
    Join Date
    Sep 2010
    Posts
    54

    Want to enable PHP in Leopard

    I use apple laptop running on Mac OS X 10.5 Leopard. I wanted to use PHP on this machine and I have heard that it comes with preinstalled PHP 5.2.4. As far I know that it enables by default but I think these is not enabled on my machine. I have tried to enabling it using my ways but not succeed. If anyone knows how I can enable it, then please tell me. Any suggestions will appreciate. Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    962

    Re: Want to enable PHP in Leopard

    Go to the Text wrangler and then go to the file menu and click on the open hidden. From the open dialog box click on all files from the enable drop down menu and then look for
    • HD:private:etc:apache2:httpd.conf, and hit Open.

    Scroll to the
    • #LoadModule php5_module libexec/apache2/libphp5.so

    In your case version may be different. Go to that line and delete $ or # sign after removing this sign it will look like this,
    • LoadModule php5_module libexec/apache2/libphp5.so.

    And then save this file. After doing all this PHP will enable on your computer.

  3. #3
    Join Date
    May 2008
    Posts
    991

    Re: Want to enable PHP in Leopard

    I was also wanted to enable PHP and for that I have done some settings, I will also suggest to these settings. In Finder, click on to the Go menu and then click on “Go to folder” and type "/etc/apache2/”. You will see a file named httpd.conf, copy this file to desktop and open it with TextEdit and look for this line "#LoadModule php5_module libexec/apache2/libphp5.so". Remove “#” and then save that file. After all this copy it to "/etc/apache2/ and then restart your Mac to enabling PHP.

  4. #4
    Join Date
    May 2008
    Posts
    1,020

    Re: Want to enable PHP in Leopard

    I have gone through you question and I have found an answer, that is edit this line /private/etc/apache2/httpd.conf by going into the text editor and make changes in line no.114 that is uncomment it and then it will look like LoadModule php5_module libexec/apache2/libphp5.so. Then at the ends, click on the system preference and go to the sharing. Stop web sharing and restart it again. I hope this information may help you.

  5. #5
    Join Date
    Nov 2009
    Posts
    824

    Re: Want to enable PHP in Leopard

    Here I have given you some settings follow those for enabling PHP. Go to the terminal and type cd/etc/apache2 for going to apache2 and then in the text editor open httpd.conf using pico and then look for php. Make changes in the line that loads php module, by removing # and then to save all this modifications by pressing Control X, then Y and enter on keyboard. If you are having any other queries then reply me.

Similar Threads

  1. Replies: 5
    Last Post: 20-10-2010, 02:09 AM
  2. Can i reinstall Leopard from Snow Leopard
    By Abhisar G in forum Hardware Peripherals
    Replies: 5
    Last Post: 03-08-2010, 05:40 AM
  3. Mac OS X : Leopard vs Snow Leopard
    By Solomon in forum Polls & Voting
    Replies: 3
    Last Post: 06-10-2009, 12:47 PM
  4. Enable NTFS Read / Write in Snow Leopard
    By piyush chavla in forum Operating Systems
    Replies: 3
    Last Post: 22-09-2009, 12:17 PM
  5. difference between 'Enable write cache ' & 'Enable advanced'
    By BlackSunReyes in forum Windows Vista Performance
    Replies: 2
    Last Post: 22-04-2008, 08:14 AM

Tags for this Thread

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
  •  
Page generated in 1,714,296,842.21072 seconds with 17 queries