Enable PHP on osX 10.4.10

I'm a newbie so bear with me.
I have an iMac osX 10.4.10
I want to run Gallery 2 on the local server on my computer to set it up.
I used MAMP. Easy. It shows green lights for Apache Server and MySQL server using PHP 5. Great!
Now I need to Enable PHP. I found this:
http://docs.info.apple.com/article.html?artnum=107292
"For 10.3 or later
Open Server Admin.
Select the Web service from the desired server in the Computers & Services list.
Click on Settings.
Click Modules.
Enable or disable the php4_module as desired.
Save the changes.
Restart the Web Service."
I downloaded Server Admin and started it.
My local address is http://myname.local/
Server Admin says, "There is no server available at the address you entered.
All services failed to access the address you provided for myname.local. Check the address and try to log on again or contact your network administrator.
All I want to do is activate PHP...that's it!
The directions in the above link are NOT for osX 10.4.10...So now what do I do?
Thanks
Tim

Are you using Mac OS S Server?
You posted in the Server forum. Server Admin is geared to managing Mac OS X Server and can't help you with the client version of the OS.
To enable PHP on the client version of Mac OS X you're going to have to manually edit /etc/httpd/httpd.conf and uncomment the lines:
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c

Similar Messages

  • How do I enable php in OSX 10.9.3

    I downloaded webserver and have a apache and mysql and the site is working when i connect but only the html pages, the php pages dont work and i noticed the webserver says PHP is disbaled how do I enable the PHP?

    Look here....
    http://support.apple.com/kb/PH15645

  • Enabling php

    Hi there, I am running into some serious issues with enabling the built-in PHP on Mountain Lion.
    I have followed the steps described in an article that I have found through google. Everything were fine until I hit to the steps to enabling PHP service. Unfortunately, I serached through google to see if I can find a solution to it, and it turns out unsuccessful. So, keeping up with a little hope to see if one of your smart techs can solve my issue with PHP:
    I have created a .conf file using my shortname as described in the article that I found on google. Everything went fine with localhost, but when I tried to access to http://localhost/~username then the headache message popped out stating that 403 forbidden. I tried to change access permission but turned out disappointed. Well, with no one can seek for help, my only hope is on you guys. Looking forward to get a good hand soon.

    Hi, I am assuming you are trying to configure the httpd.conf file on your computer.
    In OSX, by default when you enable Apache, the root folder is OSX HDD > Library > WebServer > Documents
    Place a test html file or php file (e.g. something that displays the message 'Hello World') in that folder and open up Safari or any web browser of your choice and just enter http ://localhost/(your test file) in the address bar.  Does the test open and display whatever message it is supposed to show?
    You can edit the httpd.conf file via terminal:
    sudo nano /etc/apache2/httpd.conf
    enter your administrator password
    Scroll down the file and uncomment (delete #) for the LoadModule lines to enable the modules you want.
    (The PHP module is near the end of that LodeModule list, just remove the # in front of the line to enable it.)
    Scroll down more to the line that begins with DocumentRoot "/Library....  and change the root directory path to whatever you want.
    (If you want to be able to open up http ://localhost/(your username) in a web browser, make sure that a folder with your username exists inside the root directory.)
    Save and exit httpd.conf file by entering the following keyboard commands:
    ctrl + o, press enter to save
    ctrl + x
    Don't forget to restart Apache after editing the httpd.conf file with this command in terminal:
    sudo /usr/sbin/apachectl restart

  • PHP on OSX

    Hi can any tell me how to enable php on a macbook pro running
    OSX so that I can preview my web pages in safari. Thanks

    PHP is pre-installed on all Macs as part of the Apache
    installation that is being run. However, to my knowledge it is the
    legacy, and now unsupported, version 4.
    I would recommend heading over to www.entropy.ch for the PHP
    package that is there.
    If you need mySQL to go along with it I recommend taking the
    official route over to mySQL.com where they have an installer
    package ready for all Macs.

  • Enable PHP and apache!

    Hello,
    Is there a simple way to enable php and apache on my new imac? So I can test my website locally. Hopefully its not a lot of steps. I have seen a lot of tutorials by using google. But they involve terminal and I don't know that well to be able to mess with it. I don't want to ruin my computer. So any help would be appreciated.
    Thanks,
    Kash_Money

    And to answer your first question, "how can I use a .html extension page" see http://discussions.apple.com/thread.jspa?messageID=5850167&#5850167
    which is, however, for Tiger. On Leopard, the relevant file is /etc/apache2/httpd.conf and it turns out that /etc/apache2/other/php5.conf is even more relevant for exactly what you want.
    Specifically, first read the first paragraph therein for why you should do something else instead. However, the hopefully not too crazy instructions (sorry, but the only way I know how uses the Terminal and emacs, so due to your Terminal-phobia I'll give detailed instructions and hope I'm not insulting you too much), will be for what you want, not for what I think you should do. The Terminal+emacs instructions are needed because /etc/ is a hidden directory owned by root, which makes it hard to use TextEdit to edit it.
    So open a Terminal , and type
    sudo emacs /etc/apache2/other
    emacs is a text editor that works inside the Terminal, and which, for the uninitiated, has weird key bindings. You'll probably see something like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Press the down arrow key, ctrl-e, and type " .html". The file contents should now look like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php .html
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Type ctrl-x ctrl-s to save, and then ctrl-x ctrl-c to exit.
    Restart the web server, either by typing
    sudo apachectl restart
    or by going into System Preferences and unchecking, then checking web sharing.

  • How to enable php

    I am trying to enable php on my macbook with Lion 10.7.  I have found and changed the http.conf file, but I can't save the changes.  My computer tells me I don't have permission, but it doesn't give me any pop up to confirm my permission.  Can anyone help.

    Well, first make sure that you are accessing the PHP through the browser with an URL that begins with 'http' or 'https'. If you access it through Finder, or opening it directly in your browser, the web server (that would normally process the PHP script), is completely bypassed.
    If that's not the issue, open Terminal.app. Type
    grep -i php /etc/apache2/httpd.conf
    The result should be
    {quote}
    LoadModule php5_module libexec/apache2/libphp5.so
    {quote}
    If you see a '#' at the beginning of the line, the PHP module was disabled. You need to edit /etc/apache2/httpd.conf and remove the '#' (in the terminal, type 'sudo nano /etc/apache2/httpd.conf').
    While you are at it, also do
    grep -i apache2/other /etc/apache2/httpd.conf
    ... and if it doesn't look like this
    {quote}
    Include /private/etc/apache2/other/*.conf
    {quote}
    Edit the file and add that line.
    If that's OK, then type
    cat /etc/apache2/other/php5.conf
    That should look like this
    {quote}
    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    {quote}
    ... if not, edit that file and make it look like it is above. Once all that is done, go to System Preferences, click on the Sharing icon, and uncheck Web Sharing, then check it again a couple of seconds later (to restart the web server).

  • Enabling php on this Mac OS X 10.6.6

    PHP version 5.3.3 seems installed.  But when I attempt to open php pages the browser opens them as text.  It seems that I must edit the httpd.conf file to actually enable php.  I changed the permissions on the file with sudo chmod ug+rw for httpd.conf.  TextEdit still doesn't allow me to change it.  It's saying that I don't have permission to write to that folder.  I changed the permission the /etc/apache2 and that didn't  help.  What must I do to be able to modify httpd.conf and enable php support?

    Welcome to Apple Support Communities.
    , System Preferences, Internet & Wireless, Sharing
    You many need to click the padlock at the bottom and enter the admin password to unlock Sharing so you can make changes.

  • Enabling PHP is breaking Apache.

    I am following the tutorial at, http://developer.apple.com/mac/articles/internet/phpeasyway.html, to enable apache/mysql. Where the tutorial is titled, "Enabling PHP in Apache", I copy and pasted the code to terminal. Osascript password prompted and I entered. When the script finished, I can't access "my computers website", as it just returns as busy/not found. For some reason the Mac HD: private: etc: apache2: httpd.conf file (the copy) is created, but is completely blank. When I replace it with the original, I can access "my com website" again.
    Also. The httpd.conf file does not have a line "#LoadModule php5_module libexec/apache2/libphp5.so".... so there is nothing to toggle?
    Can I just edit that file manually to enable Php?
    Message was edited by: thejackkelly

    Solved with new php install.

  • Hi, I am running Mac OS X 10.5.8 (9L31a) Mac Pro. Can I upgrade to enable the new OSX maverick software?

    I am unsure about upgrading the OSX 10.5.8 (9L31a) software on my mac pro (2006-7) model. Would or could I upgrade to snow leopard to enable the new OSX Maverick to work on my unit.
    Thank you.

    A 2007 Mac Pro isn't capable of running Mavericks. The newest OS it can run is Lion 10.7.5; installing it requires going through Snow Leopard or finding a Mac OS X 10.7 install thumbdrive.
    (96480)

  • How do i enable php on my mac

    I would like to enable php on my mac (and apache if necessary).
    It needs to be simple.
    I can do this on a pc (with XAMP).
    I have some development with php to do?

    actually there are no cookies on mac's. only got CACHES:
    go to Finder
    choose Go (menu bar)
    hold OPTION Button (keyboard)
    choose Library
    choose Caches

  • Enable PHP Imap Extension on Lion Server (I Willing to Pay for the Service)

    Can anyone teach me or know how to enable PHP Imap extension on my Lion 10.7 server?
    I willing to pay for the service fee for this.
    Kindly contact me asap [email protected], I need my server to have this feature as soon as possible.
    I found a several blogs for this but still can't get it work exactly.
    Thanks a millions!
    Jack

    I also want IMAP support in PHP on Lion Server.
    I found the tutorials below:
    http://www.september28.co.uk/blog/2011/11/24/php-imap-support-in-mac-os-x-lion-w ithout-recompiling-php/
    or
    http://blog.xeonxai.com/2009/12/03/160/
    but honestly, with my limited knowledge of the command line and php installation, it's almost like trying to read chinese. I could probably follow the instructions, but if anything went wrong I'd be completely lost and I wouldn't know how to get back to square one. Looking for a "dummies" guide...

  • Saving with Reader Enabled Acrobat Pro OSX

    Hi, I have a form that I populate using a 3rd party tool.  When this form is opened in Adobe Reader I got the message "this form has changed and is no longer redaer enabled".  I solved this by purchasing Acrobat X Standard and using it to re-save the form as  "save as" -> "reader extended PDF" -> "Enable forms fill in...".   Then when I open it again in ADobe reader I am able to fill in fields, save send to someone else who does the same etc.
    However, my co-worker who needs to do this uses a Mac.  So I had him buy Acrobat.  He was only able to find "Adobe X Pro" so that is what he bought.  The behavior of this program is very different.
    When he opens one of these forms that has been populated by my 3rd party tool, he goes to save it as "reader enabled" the options on the "save as" menu are very different.  Only the bottom on is available (says something like "extended features". Anyway, when he chooses the only option available he gets a message that says "this form is already reader enabled".  !!!!!  This is a problem because if we open that same form with Adobe reader it says "This form is no longer reader enabled"
    We have spent $800+ buying two versions of Acrobat and still do not have a solution, feeling more then a little frustrated. 
    How can we force Acrobat Pro X osx to resave as "reader enabled"
    Help!!!

    Your "3rd party tool" probably corrupts the file in some way, or at least changes it and thereby removes the additional reader rights enabled by Acrobat.
    In Acrobat X Pro (Windows or Mac, doesn't matter) you enable those rights by going to File > Save As > Reader Extended PDF > Enable Additional Features.

  • How to enable php, mysql, and apache?

    Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...
    According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
    Can somebody help me please.

    Please look at my second post. I corrected what I said:
    macwiz1220 wrote:
    O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*
    Take a look at this article on LAMP on Leopard.

  • How to enable php ziparchive extension in solaris 10

    Hi,
    I have to enable php_zip.so extension for my phpexcel .How could i do this without re configure php ?

    If the extension=zip.so line is not in php.ini file then you must configure php to accept this extension and restart the webserver.

  • Getting error after enabling php in httpd.conf

    Hi,
    I want to get php enable on the Apache web sever that is part of OS 10.6.1. I read the docs and uncommented the Load line for php in httpd.conf. Then I restarted the web server. Now when i try to access via Safari a phpinfo( ); command as part of a simple .php file, I get the following error:
    Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
    Fatal error: Unknown: Failed opening required '/Users/mobilemojo/Sites/phpinfo.php' (include_path='.:/usr/lib/php') in Unknown on line 0
    Is there something else that has to be modified to get php module to load?
    Thanks in advance!
    K

    Hi Sridhar,
    Please compare the DTS settings on the Windows 7 computer and the Windows Server 2008 R2 computer and make sure they are identical.  Make sure the “Allow Inbound” and “Allow Outbound” options are check, and pay attention to the authentication mode as
    well.
    Besides, make sure both Distributed Transaction Coordinator (TCP-In) and Distributed Transaction Coordinator (TCP-Out) rules in Firewall are enabled.
    If the issue persists and there are any security/anti-virus software, temporarily disable the security/anti-virus software and check the issue again.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • What is the point of the Mail Activity box?

    At the bottom left of the Apple Mail app. window, there is a Mail Activity box. This used to be very useful back in the days of, I think, Tiger, or maybe Leopard, but since upgrading to Lion, nothing has ever appeared in that box. If I want to see Ac

  • My phone is not notifying me of some text messages and phone keeps asking for apple id password when in messages, what's wrong with my phone?

    My phone sometimes does not alert me when I get messages from certain people, and is constantly asking me to put in my password for my apple ID. I have only done it once, but the prompt immediately popped up again, and is really just a major nusaince

  • Syncing playcount iphone to itunes

    I don't use iTunes alot when it comes to playing music but I use my iPhone alot in the iPod function. I noticed the iTunes playcount is not updated when I play music on the iPhone eventhough the iPhone itself keeps a playcount list. Can anyone tell m

  • Migrating Logic Pro to a New Mac

    Hi all - I have an older iMac with Logic Studio Pro on it and all backed up to Time Machine. Today I got a MacBook Pro and the first thing I did was restore the Time Machine backup to it. Everything worked fine - well, almost. I am missing some ESX24

  • I can't view the MVDemo on a standalone OC4J!

    I deploied mapviewer on a standalone OC4J server. I can add datasource and post the map requist correctly. But I can't view the mv's demos navigating its links. The error is like "the page does not exist". I can use the mvdemos on OracleAS. In additi