A server-side scripting language used to build dynamic web pages.

learn more… | top users | synonyms

0
votes
1answer
7 views

Can't download over MacPorts

So I'm trying to install the PDO drivers for PHP via Macports. I am using install php5-mysql, but when I hit enter I get usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] ...
2
votes
2answers
1k views

How can I upgrade my PHP 5.3.1 to 5.3.2 on XAMPP Mac OS X?

I've just installed XAMPP on Mac OS X Snow Leopard, and everything is running correctly and setup completely well. However, I want to install an open source project that requires PHP 5.3.2 or higher. ...
0
votes
0answers
18 views

Can't start PHP localhost

So i've done this before but I don't remember the command. I was able to use a directory a localhost file. I've tried sudo apachectl start but when I go to localhost the page isn't found. I've also ...
0
votes
0answers
33 views

Mavericks XAMPP install PHP GD2 extension

I am using XAMPP for my PHP development on Mavericks. I am using PHPExcel for excel manipulations. The problem is PHPExcel requires PHP GD2 extension. Please guide me how to install this extension ...
1
vote
1answer
54 views

OS X PHP — dyld: Library not loaded: /usr/lib/libpq.5.dylib

What is the problem with my Mac's default PHP? Whenever I do php -version, it shows the following file missing information. How can I fix this problem?
0
votes
1answer
32 views

Uninstalling all instances of apache, php and mysql

So When I first got my mac mini, I installed things like apache, mysql and php - not knowing that apple either came with these or had a tool called mamp that would allow you to run these. I thought ...
0
votes
0answers
28 views

php tmpfile() - Could not create temporary files

I'm using a local PHP server, and when I try to create a temporary file, I get this message: $temp_file = tmpfile(); Could not create temporary files for attachments. Your tmp directory may be ...
0
votes
1answer
54 views

How is $PATH created?

I am still relatively new to the workings of the Mac OS but have extensive knowledge of Linux. I updated my php on Mavericks using the php_osx and the instructions stated to use export ...
0
votes
0answers
23 views

Make TextMate run php from a different binary, not the original php

I work with php and postgre, and since the stock php doesn't come with postgre I had to install a different php version. So I installed php5 from this website: http://php-osx.liip.ch It's a quick ...
2
votes
1answer
473 views

Setting PHP upload_max_filesize in Mountain Lion

I have edited /etc/php.ini and have inserted the following line of code to set the subject variable: upload_max_filesize = 20M However, within a Joomla website on this host, the PHP Information ...
0
votes
0answers
27 views

Homebrew php-fpm caused some crash logs on Console.app

I recently opened up Console.app application and saw there're a bunch of crash logs by PHP-FPM, which was installed with PHP from homebrew-php. The log files have something like in this paste: ...
1
vote
1answer
2k views

How can I uninstall PHP 5.4 and 5.5?

I'm new to PHP and Apache and I think I've messed some things up that I don't know how to fix. After following a tutorial I managed to update to PHP 5.5, and then started having problems. I went to ...
0
votes
0answers
61 views

install mysql for php 5.5 after install php with php-fpm and without mysql at first

I've installed nginx, php-fpm with brew via this command brew install --without-apache --with-fpm --without-mysql php55 now I need to adding MySql driver/adapter so my PHP code could connect to my ...
2
votes
0answers
775 views

How do I install the GnuPG PHP extension?

I'm having trouble installing a PHP native extension: GnuPG. Here's what I've tried so far. First: sudo port install gpgme sudo pecl install gnupg Output from the second command ends like so: ...
0
votes
1answer
152 views

Error installing unixodbc

I am trying to install php55 using brew, but when you start installing the dependency 'unixODBC' stops at the last line this is the message that shows ➜ ~ brew install -vu php55 ==> Installing ...
1
vote
2answers
238 views

Why does my OS X still run older php even though I updated it?

I have just updated my system php in terminal via command line. I deleted the export path in .bash_profile as it was pointing to mamp but for some reason my php still says 5.3 not 5.4 when I run php ...
1
vote
1answer
127 views

How to undo “sudo rm -rf /etc/apache2/other/+php-osx.conf”

After I did this: sudo unlink /usr/local/php5 sudo rm -rf /usr/local/php5-* To remove the supplemental configuration file that was installed with the updated PHP software, you may be able to remove ...
2
votes
0answers
1k views

Better PHP syntax coloring for XCode, and support for short_open_tag [closed]

The syntax coloring definition for PHP in Xcode (as of 5.0) is pretty poor: probably some 30% of PHP keywords are missing from the definition and are not highlighted as such PHP blocks in the middle ...
1
vote
2answers
44 views

When will PHP 5.4 appear in default OS X installations?

I am wondering when PHP 5.4 will appear in default OS X installations, or as part of official Software Update. Does anyone have historical information on how late after release of PHP 5.2 that PHP ...
1
vote
2answers
106 views

Is it possible to remove all installed terminal applications and extensions back to native without doing a clean OSX install?

Basically I would like to know if it is possible to remove all php, apache, homebrew, mac ports etc. installs back to native without doing a clean install of the OS? If not is the best way to go ...
0
votes
1answer
70 views

What is wrong with my PHP on my apache2 web server (OS X 10.6)

I have a web server on my mac mini that runs the default (installed with snow leopard) apache2 web server. It works fine for any programming language that outputs stdout for cgi scripts, but every ...
0
votes
0answers
55 views

How to tell PHP-FPM to use PHP 5.4?

I am trying to update to PHP 5.4 using https://github.com/josegonzalez/homebrew-php. However, I cannot find any PHP-related .plist files anywhere in /usr/local for updating FPM to use PHP 5.4 as ...
5
votes
5answers
8k views

How can I increase command line memory_limit for PHP with MAMP PRO?

I've edited every single php.ini on my Mac (at least all the ones found by "locate") and still can't seem to increase the memory_limit directive for PHP. I'm using MAMP PRO and running PHP scripts in ...
0
votes
0answers
104 views

Getting PHP response om my Mac OS X 10.8

I've tried to install MAMP (also the "manual version of these things) but I haven't got any PHP enabled response from my web server yet.... Running MAMP and loading localhost/index.html returns "It ...
1
vote
1answer
303 views

How to make ffmpeg use correct libfreetype version?

I have a PHP application that uses ffmpeg with libfreetype. I installed both ffmpeg and libfreetype from macports. But I keep getting this error: 2013-08-30 14:44:21 - Generate poster - Create ...
0
votes
0answers
65 views

Web development on PowerPC

I'm interested in LAMP stack and Nodejs stack for PowerPC (iMac g5). Do they exist for Mac OS X 10.5.6 PPC?
1
vote
0answers
113 views

PHP exec() with Mac ports issue

I'm running PHP 5.3 from Mac Ports. I'm seeing some odd behavior with "exec()" that I can't track down. Calling commands that are installed in system-standard directories work, but calling commands ...
0
votes
0answers
112 views

Why am I getting these errors when trying to install php 5.5.0?

So I am trying to upgrade the native php installation on my mac and i keep getting these errors: ld: library not found for -ljpeg clang: error: linker command failed with exit code 1 (use -v to see ...
0
votes
0answers
212 views

MySQL error 2006 MySQL server has gone away after upgrade to 5.6.10 using homebrew on Max OS X 10.8.3

I upgraded my installation of MySQL on my Mac OS X 10.8.3 using homebrew brew install mysql Everything seemed to go smoothly, but...not really, as it turns out. I cannot add a new user (neither ...
0
votes
1answer
194 views

Unable to enable PHP in OSX 10.8 mountain lion

I have enabled php according to PHP's instructions and uncommented, #LoadModule php5_module libexec/httpd/libphp5.so in /private/etc/apache2/httpd.conf. However the line, #AddModule mod_php5.c ...
2
votes
0answers
30 views

How can I shut down an unlisted php-fpm?

I have two installations of php on my machine. One came with apache and is a 5.3 version, and I'm trying to use a 5.4 version with nginx. I'd like to work on project using nginx, but I can't figure ...
0
votes
1answer
539 views

Mac equivalent of /etc/nsswitch.conf for PHP chroot

I've setup a chroot for my PHP server running behind nginx on mac. It works except for any call to a CURL request fails with an error like cURL resource: Resource id #43; cURL error: Couldn't resolve ...
2
votes
3answers
329 views

How can I run a PHP script by dropping file on icon?

I have a php script that takes a filename as an argument. When I run it from a terminal window I type ./my_script.php file_to_process.txt It works great! What I would like to be able to do is to ...
0
votes
1answer
560 views

How to change MPM prefork to worker on default Apache OSX installation?

On CentOS, the Apache configuration can be found in /etc/sysconfig/httpd How to change MPM prefork to worker on default Apache OSX installation?
0
votes
1answer
1k views

How to restore PHP to the original configuration?

I did something wrong and now my PHP is not working anymore. I'm using OS X Lion. I can I restore it to the original configuration?
1
vote
0answers
78 views

Setting the config for PHP 5.3.15 and above

I have PHP 5.3.15 running on my Mac (OS 10.8.2). I have Apache running with virtual hosts. Also, I've installed FreeTDS for connecting to MSSQL. I still need to configure the /php/ext/mssql to run ...
3
votes
3answers
5k views

PHP 5.4 Installation on Mountain Lion

I just installed Mountain Lion, and of course I've had to set up Xcode Command Line Tools, reinstall Git, and do other things to get up and running again for programming. Naturally, PHP was pushed ...
0
votes
0answers
297 views

How do I switch which instance of php is used on my Mac?

I have three installed versions of php on my Mac. When I check using phpinfo() via a web browser, the one that is being invoked is version 5.3.15. I would like to switch it to the installed instance ...
2
votes
2answers
686 views

Upgrading to PHP 5.4 using Mac Port

I tried following the excellent instructions on this gist to upgrade my Mac to PHP 5.4, but before I do, I need to know: Is there an easy way to find out which php extensions do I have installed ...
4
votes
2answers
9k views

How do I enable PHP on Mountain Lion OS X 10.8?

Just upgraded to Mountain Lion, and wanted to make PHP work on the built-in version of Apache.
0
votes
1answer
368 views

Cannot find where php5-fpm is stored in MacPorts

I installed php5 from macports. But i can't find php-fpm for start. Look in /opt/local/sbin and /usr/sbin/ I used console command: sudo port install php5 May be need some like php5 +fastcgi fscgi
5
votes
2answers
1k views

Install MAMP (not PRO) For PHP And Mail Sending

I first tried searching here at apple.stack but couldn't find a solution that seemed to work for me, so I'm trying my hand at posting a question. I already spent a few good hours trying to make it ...
3
votes
3answers
4k views

Web Sharing Apache Localhost - Access permissions

I want to install phpMyAdmin on the native Apache webserver that is bundled with Mac OS X 10.6. I turned on Web Sharing in System Preferences. Yet, me fear is that my computer is granting access to ...
0
votes
1answer
147 views

*AMP setup Impact on upgrading from Snow Leopard to Mountain Lion

I have Snow Leopard. I want to upgrade to Mountain Lion. I've setup PHP as mentioned here. Will upgrading to Lion affect my PHP setup or any other setup like MySQL for that matter ?
4
votes
1answer
6k views

Which php.ini file do I have to edit on Mountain Lion?

I recently upgraded to Mountain Lion and reconfigured my apache2 (https.conf) file in the terminal to load PHP and start automatically. My localhost/~username/phpinfo.php page comes up to show my ...
0
votes
1answer
475 views

Install Apache, PHP and MySQL on Mac w/o MacPorts?

For some reason I can't use MacPorts. So the question is if it's possible to install Apache, PHP and MySQL on Snow Leopard w/o using MacPorts? Please don't offer MAMP or other bundles. Thanks in ...
1
vote
3answers
773 views

Forbidden error setting up a PHP app on Mac OS X 10.6

I have enabled Web Sharing in OS X 10.6 and now I can access http://localhost/~myuser from the browser. Now I have copied this PHP app to my ~/Sites/the_app folder, but when I want to access it in ...
0
votes
1answer
188 views

“Natively” add emails to Mail by PHP pipe script

I found this awesome tutorial on how to send emails on localhost that will open your Mail showing you the email that was sent from PHP, however this is slightly annoying getting Mail to open when an ...
-1
votes
2answers
85 views

what is different with Safari and other webkit [closed]

Why Safari on Mac OS X can execute processingjs on local without web server like MAMP but not Chrome? There is a Apache Server include in Mac OS ? Here is a zip folder sample.
3
votes
1answer
2k views

What permissions do I need to give for my server setup?

I am trying to have a server setup for my web app locally on my MacBook Pro. I have installed Apache, PHP successfully and checked out my web app's code to /var/www location. Now there's a script in ...