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

Similar Messages

  • 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

  • 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

  • Multibutton mouse- how do I enable it in OSX Mavericks?

    I can't find it in preferences and I've searched everywhere. I checked "mouse" in preferences and there is no option to enable or disable multibutton mouse. I also checked assessibility and can't find it.

    Get third-party mouse software. I suggest USB Overdrive... or SteerMouse. If software for the Mac came with the mouse then you can use it.

  • 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).

  • Does anyone know how to update/recompile PHP to include IMAP?

    I've just installed phplist (http://www.phplist.com/), which is a newsletter mailer based on php. Some of the features require that IMAP be installed with the php installation. Evidently Apple's OSX install does not include IMAP in PHP by default, but presumably IMAP can be added if PHP is recompiled. (See http://www.php.net/manual/en/ref.imap.php). I was planning on updating PHP using Alex's very helpful tutorial, available at http://osx.topicdesk.com/content/category/4/18/62/, and at the same time adding IMAP.
    Altho Alex does not touch on IMAP in his tutorial, I believe that to includ IMAP in the PHP installation, the configuration string must include "--with-imap-ssl=/sw --with-imap=/usr/share/c-client", or something similar. In any event, it seems that "c-client" does not live in /usr/share nor anywhere on my system, so I have not attempted an installation so far.
    Does anyone know how to update/recompile PHP to include IMAP? And if "c-client" is required, how do I intall that first?

    Disregard last post--that was a non-starter, but I think I have a successful installation, which I will post here as the documentation on this from php and from phplist is pretty bad:
    First get and compile the c-client library, which is necessary for those wanting to run phplist:
    sudo mkdir -p /SourceCache
    cd /SourceCache
    sudo curl -O ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
    sudo tar xzf c-client.tar.Z
    cd imap-2006h
    sudo make oxp
    sudo mkdir lib
    sudo mkdir include
    Next open /SourceCache/c-client and drag all the */.h files (including the aliases) into “include.” Then drag all the */.c files (aliases too) into “lib”.
    Find “c-client.a” and change name to "libc-client.a" and place in the lib folder.
    Correct permissions on lib and include.
    Finally install php (cheers to Alex) as follows:
    cd /SourceCache
    sudo curl –O http://us.php.net/distributions/php-4.4.7.tar.gz
    sudo tar xzpf php-4.4.7.tar.gz
    cd /SourceCache/php-4.4.7
    sh
    CFLAGS=-DBIND8COMPAT
    export CFLAGS
    sudo ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock --with-imap=/SouceCache/imap-2006h --without-pear
    sudo make
    sudo make install
    sudo apachectl graceful restart
    exit
    One last question, Alex: can I safely delete the SourceCache folder now that the installation is complete? My only concern is that the config string points to items in the folder, and I'm wondering whether I ought to have placed them inside /usr/share instead of SourceCache, or doesn't it make a difference?
    Lost count Mac OS X (10.4.9)

  • 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.

  • How do I enable the startup sound on Mac OS 10.2.8(Jaguar)

    Three things
    1.How do I enable the startup sound on Mac OS 10.2.8(Jaguar)
    I am using an iMac G4
    I like the startup chime of mac osx but it doesn't seem to be chiming when I turn the computer on.
    2. How do I get safari+flash player  on 10.2.8
    3. How do I update the computer (e.g. Windows update kind off thing)
    Please help.
    Cheers,
    Mittens131

    1. Make sure the volume is on. Check that the machine makes other sounds.
    2. Here is a link for Safari for a Mac 10.2.8
    http://support.apple.com/kb/HT2964
    Though I'd be surprised if it would be very useful. Things have changed a lot on the internet since that came out. An old version of Firefox might be better. I don't know where you would get an old version of flash. It is an Adobe product.
    3. There are no further updates to  Jaguar 10.2 than you already have, 10.2.8 that was the last update.

  • How do I enable WebGL in Safari 5.1?

    How do I enable WebGL in Safari 5.1? I keep seeing lots of cool demos and can't wait to try it out!

    >>... open the Develop menu in the menu bar and select Enable WebGL.
    >> ...This seems to have been disabled in later versions of Safari...we are now at OSX 9, Safari 7
    Safari 7 on 10.9  : What's been disabled ?

  • Dumb PHP ? How do I use PHP in .html files.[solved]

    I've googled but I just seem to be missing it.
    Could someone please point me to documentation or tell me what/how do I enable the Apache server to process inline php in .html files?
    Last edited by FeatherMonkey (2008-03-25 16:51:21)

    http://www.desilva.biz/php/phpinhtml.html
    Instead of using htaccess, you can just change httpd.conf.
    Last edited by lucke (2008-03-25 16:02:56)

  • How do I enable the GD library in OAS 10.1.2 ?

    I am running OAS 10.1.2 on HP UX 11i 64 bit.
    OAS 10.1.2 supports PHP, but the image function does not work. The imagecreate function gives the error:
    Call to undefined function: imagecreate()
    According to www.php.net, image functionality requires the GD library and one
    is bundled since PHP 4.3. OAS 10.1.2 has PHP 4.3.9 so I assume that GD is
    available.
    But how do I enable the GD library?
    Herman

    In php.ini look for extension_dir, make sure it points to somewhere that exists and then further down you will see Dynamic Modules set out a little like this...
    ;extension=php_gd2.dll (Windows)
    For installation (Quote from PHP Manual)...
    To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
    In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.

  • How do i enable spanish in the safari dictionary?

    I understand from the last sentence on description of the safari dictionary on the Apple website, Spanish should be supported.  But no definitions for Spanish words come up.  How do I enable Spanish?  Is it possible to obtain translations to English as well as definitions in Spanish?
    http://www.apple.com/osx/apps/all.html#dictionary
    Dictionary
    Words at your fingertips.
    Find definitions and synonyms using the New Oxford American Dictionary and Oxford American Writer’s Thesaurus, which include over 250,000 words, in Dictionary. You can look up words directly from a variety of applications, including Safari and Mail. When you’re connected to the Internet, you can look up terms in Wikipedia directly from the Dictionary application. That means access to millions of articles written by thousands of people all over the world. Dictionary even includes a list of Apple terms and definitions — such as “Finder” and “AirPort” — that help you get to know your Mac better. And Dictionary includes support for British English, Japanese, Japanese translation, Japanese synonyms, Simplified Chinese, Spanish, and German.

    To enable dictionaries, you go to dictionary.app > preferences and check the box you need.
    Apple doesn't supply a translation dictionary for Spanish, but you might be able to add it if you can find one somewhere:
    http://m10lmac.blogspot.com/2013/01/adding-dictionaries-to-dictionaryapp.html

  • 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

  • How to install freehand on Mac OSX 10.8 operating system

    How to install freehand on Mac OSX 10.8 operating system

    soniamp wrote:
    How to install freehand on Mac OSX 10.8 operating system
    1.  Installing Snow Leopard Server into Parallels for DUMMIES:
    http://forums.macrumors.com/showthread.php?t=1365439
    2.  Adobe's official patch for Freehand MX to run in Snow Leopard:
    http://helpx.adobe.com/freehand/kb/cant-launch-freehand-mx-mac.html
    Freehand MX running in Snow Leopard Server installed in Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]

  • 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.

Maybe you are looking for

  • How do I get a transparent background in my Illustrator file?

    I'm relatively new to Illustrator, (I'm working in CS4) and created a corporate logo for one of my clients.  When I place the logo into Photoshop or InDesign, the logo is in a white box.  How can I make the background transparent in the original Illu

  • IPod 120GB (6G) no longer syncing

    After starting to experience some minor issues with my ipod (album art got mixed up and now and again a freeze) I thought it might be a good idea to restore and start afresh. Now I wish I hadn't... Ever since I have restored (and several times now) m

  • Report through VKM2

    Sales Documents released through VKM3 or VKM4, for Credit Check not displayed through VKM2. Reasons thereof???

  • Zen vision M battery replacem

    hello all i need a little help i have to change the battery in my zen vision m 30gb what battery model should i use ? ( is 3.7 v li-ion polymer ok ... wheres the best place to get it ) ? how do i open the case ( mp3 player ) ? do i need a special too

  • Help - two I tunes, one ipod - but cannot download !!

    My son and I both have an ipod, and I actually managed to set up my itune account, visit the store and download all the stuff i bought, but he has since fiddled and when I now log onto the itunes, i can buy and see what I have purchased, but it does