Php on mac

Hello! I am having a serious problem with my xampp. I download it and installed it. It worked perfectly fine, but suddenly it stopped working. I ran a command into the terminal ,hoping that it would work, then typed "localhost" in my browser and all I get is the message "it Works!",but it actually does not work.. I tuned of the web sharing and the apache is running but gain when I type "local host" into the browser it' does not work, even the php files which I save in the htdocs folder do not work . I tried to change the file "index.php" (which is in the xampp folder) to any other name but it did not work out. I really need your help.
Thank you!
version 10.9.5
mac OS X

This website has generally been the repository for all good PHP things on the Mac:
http://www.entropy.ch/software/macosx/php/
PHP is a coding language which provides a method of parsing databases on the server side while distributing content in plain HTML.
While you may link to websites with suffixes of .php, it will gather content off the PHP page from a regular HTML file. Your Sites folder in your home folder when personal web sharing is turned on in the Sharing preferences becomes your defacto web server folder on Mac OS X client. For Mac OS X Server info, check the Mac OS X Server forums to find out if there are any differences:
http://discussions.apple.com/category.jspa?categoryID=96
Message was edited by: a brody

Similar Messages

  • Entrophy PHP and Mac OSX

    I have just installed entrophys PHP 5 on my mac, and have had
    a message that says:
    Install failed. The following install step failed: run
    postflight script for Entrophy PHP. Contact the software
    manufacturer for assistance.
    I have tried testing with phpinfo, but I am only seeing
    <?php phpinfo(); ?> in the browser. I have restarted to try
    and get rid of the problem, I have reinstalled too, but no joy.
    Any ideas as to where I go from here?
    Mat

    matthew stuart wrote:
    > Any ideas as to where I go from here?
    Entropy's own user forums are the best place to get help with
    issues
    like that:
    http://www.entropy.ch/phpbb2/
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Apache php mysql mac 10.4.8 client

    does anyone know the version of php mysql and apache on 10.4.8 if it's shipped with osx and how to upgrade them
      Mac OS X (10.4.8)  

    mysql is not shipped... unless youre talking about osx server then it may be.
    php is 4.4.1 and the path is /usr/bin/php and /usr/lib/php
    apache is 1.3.33 and the relevant paths are /usr/libexec/httpd and /usr/sbin
    I wouldnt reommmend upgrading any of them because its possible they could be broken by future system updates, although i dont specifically know of this ever happening. but for development purpouses its better to isolate your environment. Instead of upgrading the system versions i would recommend installing the versions you wish into /usr/local and jsut setting things up to run from there. Marc Lyiange's php packages do this for you by default (www.entropy.ch). MySQL also comes as a mac binary and installs into /usr/local. As for Apache that will require some configuration What i would do is install it into usr/local. Then i would rename /usr/sbin/httpd to /usr/sbin/httpd-1.3.33 and /usr/sbin/apachectl to /usr/sbin/apachectl-1.3.33. then make symlinks to /usr/local/apachedir/bin/apachectl and /usr/local/bin/httpd to /usr/sbin/httpd and /usr/sbin/apachectl.
    Of course you could always change the appropriate plists to just run your version of apache but i dont know what those are off hand. For what its worth unless you need a particular module thats not supported on 1.3.33 i wouldnt even mees with apache 2.0. its jsut not worth the effort in my opinion.

  • ANN: Setting up PHP in Mac OS X Leopard - tutorial

    The Mac PHP package created by Marc Liyanage that I recommend
    in my
    books is not yet compatible with Mac OS X 10.5 (Leopard). The
    new
    version of Mac OS X comes with Apache 2.2.6 and PHP 5.2.4
    preinstalled,
    but not enabled. Getting them up and running involves a few
    simple edits
    to text files. Detailed instructions can be found on my site
    at
    http://foundationphp.com/tutorials/php_leopard.php.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

    Hi Sheila,
    I am using a mac air and ipad mini. My mac is OS X 10.9.1
    I looked at your link and used it step by step to set it up but was advised to initially put in a dummy email so that it allows me to add in imap.
    Firstly my ipad is all working and my hotmail account is well synched. However with my mac after adding my hotmail account is does not work 100%
    Inbox shows up along with all my folders, however i have the following problems:
         1-attachments seem to be 'empty' when i try and open them?
         2-when i do things on imail it does not seem to synch with my original hotmail account online, but my ipad and original hotmail account synch perfectly. ie. if i read an email on ipad it shows as read on the other, same with deleting emails etc. but this does not happen on the mac.
         3)I then went to add another email account (hotmail) and all the folders appear with emails in but the inbox reamins empty, i can still send emails from this account but no new emails show in the inbox despite emails showing in sent, draft etc.
    I have been told conflicting information about what to put in as server names when setting up the account, maybe this is the problem?
    Also should i be able to view attachments in emails when offline? My email is not so so large so i would like to be able to?
    Thank you in advance for any information.
    Simon

  • Integrated PHP in Mac OS X

    I'm trying to install MagickWand, a PHP API for ImageMagick (an open-source Unix image editor). I need to untar the directory in the /ext directory in my PHP source directory. The problem is that, since I'm using the built-in PHP (v. 4.3.11), which I didn't install, I don't know where the source directory is. The "which php" command in tcsh gives me "/usr/bin/php", but that's not a directory; phpinfo() tells me the php.ini file is in /etc (and /etc does contain a file called php.ini.default), but, again, no directory. What should I do?
    PowerMac Dual-2GHz G5   Mac OS X (10.4.5)  

    Hi,
    I don't what you have to do after putting the files in the ./ext/. directory, but here are hints where to find this directory.
    The php-ext directory can be found at:
    /usr/include/php/ext
    And if you don't find a php.ini in /etc you should create one. This is easy.
    If no php.ini can be found, php uses defaults, that is the reason, why something is set within php to values.
    Just copy the /etc/php.ini.default to /etc/php.ini and you got it.
    Now you can change the /etc/php.ini file to values you like and don't forget to restart your Apache-Server.
    Two ways:
    1. within System-Preferences turn off and turn on personal websharing
    2. apachectl restart
    During the restart your new /etc/php.ini file will be used.
    You can check if you change one of the default values and and after the restart call the phpinfo()-Routine again and you should see the new value set.
    Hope that helps,
    ~ Markus

  • Is php in mac osx

    i am trying to learn on writing php script
    From what i know appache is already part of my macbook pro but what about php is there a version instaled also?
    I have been instructed to write this sript to see if php was installed
    <?php
    phpinfo();
    ?>
    but i am not geting the version and the spread sheet as i am supposed to get.
    Someone wants to help a newbee il be please to find out how to start the proper way
    Thanks
    Yves

    Is there anything useful here or here?
    (14798)

  • Where is PHP.ini Mac OS X ,  XAMPP Server

    Here is the path, where you can find PHP.ini in your macbook, if you're using XAMPP server .

    keg55 wrote:
    Go back into the App Store, login with your Apple ID then press/hold the Options/Alt key and click on the Purchases tab at the top. You should see Lion available to install. Click INSTALL and Lion will redownload. Just remember NOT to continue with the installation after it downloads.
    Very strange! This is what I get when I follow your instructions:

  • Impossible to send an email with Mac OS X, apache 1.3, php and sendmail

    I want to use my MacMini as Web Werver and I want to send an email using php by the mail() function. But it doesn't work. What must I do ?
    Please help me !

    Here is procedure to do working an email (in french) :
    Email envoyé par la fonction mail() de php sous Mac OS X avec votre serveur web perso sous apache.
    Si vous n'arrivez pas à envoyer un email par php à un destinataire, il peut y avoir au moins deux raisons :
    - une erreur dans le codage de la fonction mail( ) (voir pour cela : http://fr.php.net/manual/fr/function.mail.php)
    - un problème dans l'utilisation par php de sendmail (expliqué dans http://fr.php.net/manual/fr/ref.mail.php). Et comme la doc n'est pas explicite, vous allez ici comprendre ce qu'il faut faire. Deux jours de travail pour en arriver là à un ignorant du programme Terminal de Mac OS X, de sudo, et tout le reste... !
    Pour que cela fonctionne il faut modifier deux fichiers :
    Pour cela, sauvegardez d'abord le fichier /etc/postfix/main.cf en en faisant une copie. Pour cela, vous pouvez faire :
    sudo pico /etc/postfix/main.cf
    puis mettre un espace n'importe où où cela est possible, puis CTRL X, ajoutez un caractère ou deux au nom du fichier, puis Y.
    Pour modifier ensuite le premier fichier, faites à nouveau :
    sudo pico /etc/postfix/main.cf
    et ajoutez la ligne :
    myhostname = nomdedomainevalide.com
    à mettre après :
    # INTERNET HOST AND DOMAIN NAMES
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #myhostname = host.domain.tld
    #myhostname = virtual.domain.tld
    Enregistrez (CTRL X, puis Y)
    Ce nom de domaine que vous devez ajouter doit être valide et ne pas être le même que celui que vous allez mettre dans le deuxième fichier à modifier. Pour cela faites une sauvegarde comme précédemment pour le fichier main.cf, puis tapez à nouveau :
    sudo pico /usr/local/php5/lib/php.ini
    Ajoutez la ligne :
    sendmail_path = /usr/sbin/sendmail -t -i -f adressevalide@nomdedomainevalide
    que vous mettez après :
    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25
    ; For Win32 only.
    ;sendmail_from = [email protected]
    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    Puis enfin, enregistrer (CTRLX, puis Y)
    Je répète qu'il est impératif que le nom de domaine de l'adresse email ne soit pas le même que celui placé dans le premier fichier main.cf. Par ailleurs l'adresse email doit être valide pour être acceptée comme telle par celui qui reçoit votre message. Il vaut mieux que cette adresse soit votre adresse car elle ne sert qu'à vous envoyer des messages d'erreur envoyés par sendmail si jamais il y avait une erreur bien sûr !!! Le programme sendmail étant situé dans le path donné ci-dessus : /usr/sbin.
    Si cela ne fonctionne pas, vous pouvez debugger en faisant :
    sudo pico /var/log/mail.log
    cela vous permet de comprendre ce qui se passe chaque fois que vous envoyez par php un email.
    La procédure indiquée fonctionne avec Mac OS X.4.8, apache 1.3 et php 5.2.0
    Good Luck!

  • Unable to view php files in Design View?

    Need help! I cannot select design view when working with a PHP document, the DesignView option is disabled?
    My information.
    -          Dreamweaver CS5
    -          Mac OSX 10.6 snow Lepoard
    I have searched online and I also went through the FAQ but couldn’t find anything relating to this particular issue and my Professor at school said that I need to contact Adobe directly as design view should always be available but all that I would see in Design View are the HTML elements within the PHP file.
    The Design View button is disabled, I can not click on it all and so for my class assignments. I have to copy the PHP code into a new HTML document and only then am I able to view the html/php and edit the HTML elements, and then copy and paste it back into the PHP file once I have the html elements/design set up correctly.
    I did a similar “Set up PHP for Mac OS X – MAMP” to the version available here, could I have set this up incorrectly and that is why Design View is disabled?
    Thanks I appreciate your guys expertise and any help!

    Kanjan wrote:
    Need help! I cannot select design view when working with a PHP document, the DesignView option is disabled?
    Go to Dreamweaver > Preferences, and select File Types / Editors from the Category list on the left. Make sure that .php is NOT listed among the filename extensions in "Open in code view".
    Adding a filename extension to that list prevents files from being opened in Design view.

  • How do i set up a PHP,MYSQL,Apachie server on my macbook

    I play a well known MMORPG (WoW) and my guild recently lost there site due to owner of the site leaving the guild, i had previously mentioned i had a little experience in designing but not developing so they asked me to develop a web site for the guild with DKP (Dragon Kill Points like currency) info, Forum and other features.
    basiclly most of the work is done on the site design wise and mockups i just now have to create a forum, so i found an online document showing step by step forum development (using Dreamweaver 8 and impAKT) but a pre-req is i have to have a server set up on my system to create it i have no idea about server set up or maintence and i have never had a site published please any help would be much apreciateded on setting up a server. Thank you for your time.

    Apache is already running on your Mac if you are running OS X.
    PHP for Mac OS X is free, and can be downloaded from http://www.entropy.ch/software/macosx/php/. There is some good instructions on installing and testing your installation. It also provides links to PHP add-ons, such as MySQL. Great page. I think it should get you started in the right direction.

  • Server Not Found - php in CS5.5 'Live Code' Issues

    Hi
    I'm new to this Forum, so hello to one and all.
    I have just started to learn php and was lead to believe that CS5.5 would be able to let me see what was happening when I place a new bit of php in the Live View. However, all I get is an error code saying the following:
    Server Not Found
    The page "http://ftp.sharkdesigns.co.uk/public_html/php.php" was not loaded because Dreamweaver could not find the server "ftp.sharkdesigns.co.uk". Please make sure you are connected to the internet and the server name is correct.
    Not being a computer buff I have no idea why this should be happening, since I have built my web site on the CS4 version without any issues.
    I have learned some HTML, CSS etc. by sheer trial and error, since the books I have assume that you know what you’re talking about to be able to read what they are talking about, but nobody explained what they are talking about when they talk about the stuff that you need to know … Confused? Join my world, because I’m so confused that I have lost track of everything I have learned and don’t know where to look in the hope that an answer will materialise. The problem is that I don’t use the special terms that are so common in this industry often enough to remember what they actually mean for more than a few minutes, so when I try to learn something new, I have to start all over again as if I didn’t know anything at all. By way of added frustration, I also don’t know what to ask or how to ask for it because I don’t know that it is there to be asked for in the first place (example: - if you can’t spell the word ‘One’, and there is no one else to ask how it is spelled, how do you look it up in a dictionary unless you can already spell it?).
    The problem I have is that if it works I can use it, but if it doesn’t work you need a Masters degree to get it to work to use it, which I don’t, and there is just on one to ask what is going wrong. So unless you know what to ask and how to ask for it, which I don’t, you just have an error message that stumps you before you have even started.
    I know that this is a lot of rambling, but I just need my system to work so that I can lean a little php to make my web site run better, and there is no one I know who can help.
    Can anyone help?

    Mark Shark Designs wrote:
    Hi
    I'm new to this Forum, so hello to one and all.
    I have just started to learn php and was lead to believe that CS5.5 would be able to let me see what was happening when I place a new bit of php in the Live View. However, all I get is an error code saying the following:
    If you have just started to learn php then you will want to set up a local server testing environment to test your pages rather than keep uploading the files to your remote and checking them out, which seems a bit backwards to me if your'e going to be using php a lot.
    For PC:
    http://www.webassist.com/support/documentation/how-tos/xampp_for_windows.php
    For Mac:
    http://www.webassist.com/support/documentation/how-tos/mamp_for_mac.php

  • Can't log php errors.

    I installed php 5.2.5 per the instructions on this page:
    http://switch.richard5.net/isp-in-a-box-v2/installing-php-on-mac-os-x/
    I've also installed Apache 2.2.8 and MySQL 5.1.24.
    Everything seems to be working fine, except for one strange problem. I cannot log php errors.
    I have edited my php.ini file so that
    error_log = "/Library/PHP5/logs/php_error.log"
    ... and I have set the permissions on the php_error.log file to 777.
    I have created a test .php file with deliberate errors, but none of the errors show up in the php_error.log file. The test error I am using is "if ($undefinedvariable) { do something }"
    No php error messages are showing up in Apache's log file.

    I contacted Richard Valk, and he suggested checking where my installation of PHP expected the php.ini file to be, by creating a script file to run the phpinfo() command. I found out that my installation expected php.ini to be in /Library/PHP5/lib/, and it was actually in /etc/. I don't remember if I moved it there or what exactly.
    I copied the php.ini file to /Library/PHP5/lib/, toggled Apache, and php error logging works now.
    Big thanks to Mr. Valk!

  • Mcrypt on mac osx lion

    Hello,
    Has anyone already tried to install magento web shop on a mac Lion Server (10.7) succesfully?
    I tried to install the magento software but cannot succeed because of a missing dependency: Mcrypt.
    I have tried to install the mcrypt from macports (sudo port install mcrypt) succesfully and also by hand.
    But it won't show up in my php info page as available. (I have enable_dl On in the php.ini)
    If anyone can help me, thanks!

    Not sure if you solved this, but I got it worked out on Snow Leopard using Michael Gracie's article (and all the comments) here:
    http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-le opard-10-6-1/
    I see he's now updated it for Lion here:
    http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10 -7/
    Hope that helps!

  • Php gd module

    went into my php.ini file and found that the gd module has a ; before it (i.e. that it's commented out) but its gd.dll surely thats not right should it not be .so or something?

    PHP on Mac OS X is not something most people do unless they want to test run a website with PHP on their Mac, or run a web server on their Mac. Since those kinds of operation typically require a little knowledge of Unix, you might find a better answer on the Unix board:
    http://discussions.apple.com/forum.jspa?forumID=735
    The only easy to install PHP on Mac OS X, I was somewhat familiar with months ago was Entropy PHP:
    http://www.entropy.ch/software/macosx/php/

  • RaLink wifi x10 150n usb adapter mac 10.8

    I have the RaLink wifi x10 150n usb adapter.  I used it successfully with
    OS 10.6 and am looking for a software and/or driver update so it will work with 10.8.
    Does anyone kn ow where I can find it?
    If not can anyone recomend a good usb adapter with removeable antenna that I can use with a cantenna?
    I need to be able to pick up the wifi from my house in my out building.
    Thanks!! 

    OOPS!
    I downloaded the driver again and used the Uninstaller; then reinstalled and it now works!
    Driver download from http://www.mediatek.com/_en/index.php
    Pick Mac 10.8 Driver

Maybe you are looking for

  • Photoshop CC 2014 won't open any files, not even create new ones

    I have a freshly installed version of Photoshop CC 2014 and it just won't open any single file no matter what I do.  I also have Illustrator CC 2014 installed for the past week, and it is behaving fine, and even opening up the files that Photoshop wo

  • MSS: Team Explorer dynamic width

    Hi all, I am facing following problem: we have exchange the Team Viewer by the Team Explorer (EP 6.0). It is working quite fine. The only thing is the Team Explorer is not expanded to its full width when the user calls it for the first time. I have f

  • Adobe photoshop elements 3 into my OSX macbook 10.9.4?

    How do I reinstall my adobe photoshop elements 3 into my OSX macbook 10.9.4?  I have the disks and they go all the way to the end and fail....

  • Job for refreshing materialized view will be failed by manually is ok

    Hello to all I have created a read only materialized view and i have created a stored procedure tha calls DBMS_MVIEW.REFRESH for refreshing the materialized view by this script CREATE MATERIALIZED VIEW "REZA"."T1_MV2" REFRESH FAST WITH PRIMARY KEY AS

  • Error During updation of Notification in PM Wok order

    Hi All, I have created the Notification by using 'BAPI_ALM_NOTIF_CREATE' After that i am trying to assign that notification to work order using 'BAPI_ALM_ORDER_MAINTAIN' But i am unable to change that work order it is giving error 'No External number