How to install PHP on OS X 10.2?

Hi,
I'm a bit confused. Ther are lots of PHP related files in the library folder, but when i try to open a php file (drag and drop onto safari dock icon), it just opens a blank browser window. How do i install php so i can open php files like this?
Thanks.

Damien--
You can't just drag a PHP file to a browser window. It's a server-side technology, so PHP web pages have to be served by a web server. Since you have OS X, you have Apache installed by default. Read this article on setting up PHP and Apache on Jaguar. That's part three of three parts, so look at the other two parts, especially part one, where he tells how to turn on the server...
charlie

Similar Messages

  • How to Install PHP in PL/SQL??

    Hello!!
    How to install php in pl/sql ??

    See Metalink Note 207303.1 for a compatibility matrix that details support for database links between database versions.

  • How to install php, perl, python, C text editor

    I want to know how to install perl, php, C , Java Text Editors in Mac OSX.
    which editor is better .

    C you installed by installing the XCode package from your installation DVD
    Perl is already installed
    PHP is already installed
    Text Editors are a Religion, as once you have trained your fingers to use a given text editor, you frequently do not want to change, so after that your editor is the only "True" editor :-)
    If you are serious about C programming in a Unix environment, then Vim or emacs.  If you are going to be doing mostly Mac OS X Objective-C, then use the XCode editor.  If this is just a hobby, then a GUI text editor such as one of the previously mentioned editors

  • How to install php module into web tier.

    Previously oracle http server included built-in php module so i could start php scripts under it but in the newest(web tire) version there is no built-in php module.
    But in the docs they say that it is possible but dont explain how to...
    So how to?)))

    Maybe this will help.
    http://www.oracle.com/technology/pub/articles/dev2arch/2007/02/php-java-bridge.html

  • How to install PHP 5.2.17

    Hello everyone,
    I'm new to Arch and I'm about to install LAMP on a laptop but I need specifically PHP 5.2.17 and I don't see it in AUR.
    I read somewhere that it isn't a good pratice to install via the basic ./configure make && make install so I'm a bit lost here...
    Any help will be greatly appreciated.
    Thanks in advance
    Regards
    Ok: I just found the wiki about downgrading packages, I think that's what I need, will give it a shot...
    Last edited by Blizz4rd (2011-08-12 18:18:58)

    Not sure if it's a good idea, but you could use abs to get the PKGBUILD of the stock PHP from extra and then set its $pkgver to 5.2.17. I'm not familiar with php's release policy though. Are critical vulnerability fixes backported to older stable versions upstream?

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • Installing php  on Lion

    Does anyone know how to install php on Lion?
    I tried editing the config file, but it doesn't allow me to edit the file: httpd.conf
    I can edit the folder(apache2) but not the file, I have full admin rights but when I try to edit the file in text edit it doesn't work...
    Thanks!

    php is a web server feature are you sure what you mean by wanting to install
    it on lion ?
    are you setting up a websever on your lion os ?
    http://en.wikipedia.org/wiki/PHP

  • How do I install php GD libray on Leopard 10.5.8?

    How do I install php GD libray on Leopard 10.5.8?
    I know there are a bunch of places on the internet that will help but they probably just want to open the door to attack my server. I don't want that - I want to command line it into Terminal myself.
    A related question: Why is the GD library not installed to begin with? It's an incredible tool but now people in my field are being LURED into installing GD libraries from 3rd parties into their command-line (from seemingly "friendly" coding forums they find on google). They think "I've done command-line maybe 5-10 times in my life - I can handle this." so they do it - but it's not their fault - they're just trying to get their job done. How does Apple feel about their servers being hijacked like this?
    Sorry for the double-post but I called my OS "tiger" in the title.

    I tried the malisphoto.com solution it but it didn't work for me.
    I even tried the one at entropy.com but that also didn't work.
    I was very careful and successful in the command line (bash) and afterwards, phpInfo() showed that the GD library was installed, however, my localhost GD (gif draw) scripts still kept showing the same old error messages on my localhost (and not online): "Fatal error: Call to undefined function imagecreatefromgif()"
    Perhaps I'm just wrong to think PHP GD will work on my localhost pages after performing these installations - perhaps I'm misunderstanding something? Am I'm trying to change a light-bulb with a jack-hammer?
    I should also point out that both solutions made my localhost run extremely slow. After restoring my system, it's all working fine (but without php GD).
    My system is a Power Mac 10.5.8 Leopard
    This is really lame. Is Apple trying to shut out PHP now? Is PHP the new "Flash"?

  • How to install FFMPEG-PHP

    Hello together,
    here is another question ! How can i install ffmpeg-php as an extension to the installed PHP version of OSX Server 10.5.5 ?
    Does anyone has a solution or a hint for me.
    Greets from Germany
    Jan

    I´ve done everything like you said. But i got the error below. What is re2c ? What i´ve done wrong ?
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc and cc understand -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... powerpc-apple-darwin9.5.0
    checking host system type... powerpc-apple-darwin9.5.0
    checking target system type... powerpc-apple-darwin9.5.0
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20060613
    checking for PHP installed headers prefix... /usr/include/php
    checking for re2c... no
    configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... no
    checking for awk... awk
    checking if awk is broken... no
    checking for ffmpeg support... yes, shared
    checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
    Greets from Germany
    Jan

  • [SOLVED] How to install Image magick extension for php?

    As in topic, how to install imagick extension for php (xampp)? I tried with pecl, i installed pear first and imagick with "pecl install imagick". I added extension to php.ini file (/opt/lampp/etc/php.ini) but when i try to start xampp, i get error:
    Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so: cannot open shared object file: No such file or directory in Unknown on line 0
    What should i do?
    Last edited by smiechowy (2011-03-06 12:23:55)

    it was installed in /usr/lib/php/modules/ I copied imagic.so to /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ but it still don't work ;/
    Edit: problem solved, i made a mistake adding "imagic.so" in php.ini instead of "imagick.so".
    Last edited by smiechowy (2011-03-06 12:23:39)

  • How do i install php on my mac pro os x lion

    I want to install php on my macbook pro that currently runs os x lion.

    It is built-in to every web browser.   Look in your browser preference to make sure it is turned on, and make sure you are using the most current version of the browser.   Mind you some scripts depend on Microsoft's ActiveX, which is not supported by Mac OS X.  For those, see this tip:
    https://discussions.apple.com/docs/DOC-2741

  • How to install and configure latest xampp, php, Mysql, apache server, and configure it with dreamvie

    Working on my next project for the tech blog Techmozilla I am trying to make php to work with Apache. . i surfed for the procedures and finally i was asked to do the below mentioned operation .. but i am unable to understand it can anyone please help me .I am using Windows XP
    # Add the following 3 lines to your httpd.conf file. You can put them anywhere in the file but maybe it makes sense to put them after the other LoadModule section.
    LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "D:\Program Files\php"
    Is there any other link which helps to install PHP,Apache and MySql. Please help me. Thank you in advance

    This forum is for helping people who are trying to download and install Adobe software products.  You need to find an information resource suitable to the task you are undertaking, most probably provided by whomever provided the resource(s) you are trying to install.

  • I can't figure out how to install Bootcamp 5.

    I recently bought a Windows 8 disc, with the hopes of installing it onto my MacBook Pro early 2011 version 10.8.5. I've read up on all of the instructions, and know how to install windows itself, but I cannot for the life of me figure out how to install Bootcamp 5. The instructions on Apple's support website say I need to open up the Bootcamp 5 folder that I put onto a flashdrive (which I did) and open the setup.exe file while in windows.... "while in windows"... don't I have to have Bootcamp 5 installed before I can have windows installed and open? I tried installing Bootcamp 4 and installing my windows 8 64-bit onto there, but as I suspected, it won't actually install the windows 8 information, because bootcamp 4 doesn't support windows 8 64-bit. This is the first time I've tried doing anything like this before. I don't have windows 7, or bootcamp 4, or parallels, or anything like that. After giving it a lot of thought, I'm beginning to worry that Bootcamp 5 can only be installed if you already have windows 7 on bootcamp 4, and you're just trying to upgrade. I really hope that's not the case, because I've already spent over $200 on the windows 8 disk, and I can't return it. If somebody could please tell me how to install Bootcamp 5, if it's even possible without windows 7 already on bootcamp 4, I would really appreciate it...
    Thanks!

    So I never installed grub or syslinux. You may want to reread the beginner's guide and specifically the section on efistub: https://wiki.archlinux.org/index.php/Beginners'_Guide#EFISTUB
    Roughly summarized, condensed, and paraphrased it goes like this (and leaving out stuff you don't need):
    Look at the output of "lsblk." It will probably show a 200MB partition as /dev/sda1. This is probably your UEFISYS partition.
    Mount the UEFISYS partition at /mnt/boot/efi, chroot and copy the kernel and initramfs files as described below.
    Create /boot/efi/EFI/arch/ directory.
    Copy /boot/vmlinuz-linux to /boot/efi/EFI/arch/vmlinuz-arch.efi. The .efi file extension is very important as some UEFI firmwares refuse to launch a file without this extension. Important: Remember that the file is called vmlinuz, but not vmlinux.
    Copy /boot/initramfs-linux.img to /boot/efi/EFI/arch/initramfs-arch.img.
    Copy /boot/initramfs-linux-fallback.img to /boot/efi/EFI/arch/initramfs-arch-fallback.img.
    Every time the kernel and initramfs files are updated in /boot, they need to be updated in /boot/efi/EFI/arch. This can be automated either using systemd or using incron (for non-systemd setups).
    You will find more nuggets here: https://wiki.archlinux.org/index.php/UEFI for your future improvements.
    Create a refind_linux.conf file with the kernel parameters to be used by rEFInd:
    # nano /boot/efi/EFI/arch/refind_linux.conf
    "Boot to X" "root=/dev/sdaX ro rootfstype=ext4 systemd.unit=graphical.target"
    "Boot to console" "root=/dev/sdaX ro rootfstype=ext4 systemd.unit=multi-user.target"
    Note that instead you may want to use a line similar to
    "Boot to X" "root=PARTUUID=78b89af1-8445-4f8d-bfed-9f57b96ee0a7 ro rootfstype=ext4 systemd.unit=graphical.target"
    Those two things pretty much did it for me: copy the kernel files into /boot/efi/EFI/arch (after you mount the UEFISYS partition there!!!) and make the refind.conf file.

  • How to install archlinux2008.6 from the hard drive?

    How to install archlinux2008_6 by archlinux2008_6_i686.iso in  hard drive?
    i get the booting files(archlive.img,vmlinuz26) in the archlinux2008_6_i686.iso and put them in c:\
    in the grub command mode the use of these code:
    root   (hd0,0)
    kernel (hd0,0)/vmlinuz26
    initrd (hd0,0)/archlive.img
    boot
    i get those from : http://blog.chinaunix.net/u/31909/showart_1121360.html
    but  it stopped  , some  code  printing on the screen...................it can not continue..
    from the  google  i  find :"this method must use  the "vmlinz "and the "initrd.img",this files is from  archlinux2008.03.iso
    i don't understand .......
    i must download the archlinux2008.03.iso?...........it's too much  trouble.
    How to install archlinux2008.6 from the hard drive? or  who could give me the two files (the "vmlinz "and the "initrd.img")  from  archlinux2008.03.iso?
    e mail: [email protected]
    THS.
    --------this is my  topic for the first time in english, I hope that you can  know what i said ~~~
    Last edited by 自学linux (2008-08-29 03:14:54)

    自学linux wrote:
    http://blog.chinaunix.net/u/31909/showart_1121360.html
    A waste of CD-ROM...........,in china, many people install linux  just  by iso,don't burn the iso,
    could you give me the two files (the "vmlinz "and the "initrd.img") in  archlinux2008.03.iso, those  can't  find  in  archlinux2008.06.iso
    my email :[email protected]
    Do you have a USB stick you could copy the image to? Where I live, a CD costs $0.50 at most. To put that into perspective. A coffee costs a $1.00. Either a CD costs a lot more than a coffee where you live or are you telling me you'd rather get a lot of grey hair than buy half a coffee?
    Sorry I can't be of much help. I don't know how to do this method of installation. If you're desperate, you could try making an extra partition, and trying something with that. Take a look at these:
    http://wiki.archlinux.org/index.php/Fas … nux_System
    http://wiki.archlinux.org/index.php/Ins … her_distro
    Last edited by solarwind (2008-08-27 04:37:59)

  • How to install windows 7 on macbook properly?

    Hello there;
    I've macbook 2007. I bought it used and it had windows 7 installed on it.
    something went wrong with the W7 and had to reinstall a fresh one one.
    I booted from W7 DVD and reinstalled the windows, everything is ok. network - wireless - graphic but only one thing went wrong.
    there was no sound, and there's a red led in audio jack. I googled for 6 hours trying to figure it out. and I've tried litteraly EVERYTHING people said about it.
    but that Led didn't turn off, and yet the sound didn't work.
    and then I heard something about BootCamp that helps with messed up drivers and I downloaded it but it didn't work on windows, it says it must be installed on MAC but I don't have MAC now.
    1- Is there a way to fix that sound issue without reinstalling windows? :-s I've really tried almost everything
    2- if no, How can I install mac, which version should I install? where to get it? how long will it take? then how to install W7 again from it?
    thanks in advance
    hope anyone can help with this.
    Bye

    That is odd if the codec's didn't work, but if there's a red light in the audio jack then it's most likely the sensor is fudged. Check this post from macrumors: I found a fix for the red light problem. I'm not sure if I like it, but it works. After reading forum thread after forum thread of users that had this problem, I found a dude who fixed his jack with a rubber ended bobby pin. It seems a sensor gets bent (?) and the system thinks your digital external line is still plugged in. I took the butt end of a matchstick and tickled inside the jack. My red light went out. My internal speakers work again.
    http://forums.macrumors.com/archive/index.php/t-237405.html
    Searching online seems to all point to a sensor most likely being the issue for the audio if there's a redlight showing. Your drivers could actually be fine, but won't matter if that sensor is damaged/loose. Are you getting sound from normal uses (youtube etc)?
    Pry won't matter but did you try in a VM as well? I have Win7 on VirtualBox (free).

Maybe you are looking for

  • Error in QS22 at the time of Catalog Assignment:

    HI QM Experts: Please suggest me for: I am creating an MIC with qualitative characteristics,when i go to assign catalog then getting below error message: "Select function is not supported in this field-Message No:Message no. QS273 Please give me the

  • Macpro dual core xeon.  Why can I not download Lion even with snow leopard 10.6.8 already as sysyem?

    macpro dual core xeon January 2008  Why can I not download Lion even with snow leopard 10.6.8 already as sysyem?

  • Window Layout FCP

    Almost everytime I start up FCP I have to load my own window layout. Whilst earlier FCP remembered this layout. Does anyone know how to solve this? I have this problem on my G5 but also on the Mac Pro. (Working on multiple mac's. Same problem there.)

  • ABAP code - General question

    Hi Guys, What is the difference between the following statements? In what scenarios should we use these? a.   CREATE DATA data_ref LIKE LINE OF xth_data.      ASSIGN data_ref->* TO <ls_data>. b.   LOOP AT xth_data ASSIGNING <ls_data>. c.   LOOP AT xt

  • How to install weblogic clusters on NT Services

    Hi ,           We have servers running in clustered environment, and would like to install           the clustered servers into the Windows NT Services and run from there. We           tried to execute the install.exe under weblogic/bin directory, bu