PHP is a server-side scripting language used to build dynamic web pages.

learn more… | top users | synonyms

0
votes
2answers
20 views

PHP loop through files in directory [closed]

I´m new at PHP and finding it difficult to understand the manual. I need to run this code : $snapchat->setStory($imagePath) for every file present in a certain directory. After code has run the ...
0
votes
1answer
28 views

Uninstall PHP on Mac Mountain Lion

I have installed PHP 5.4.40 on my Mac OS Mountain Lion, but need >=5.5.9 (for laravel/lumen-framework v5.1.0 installation), so i run installation with package installer, iMac-Dmitry:Projects dmitry$ ...
0
votes
0answers
12 views

Mavericks PHP versions issue

I just ran the command below to update PHP on my system (twice, forgot I ran it before). curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 Output Detected OS X Mavericks 10.9 All ok. Get ...
0
votes
1answer
68 views

Uninstall/ disable php 5.6.9 osx Yosemite

I´m running osx yosemite with homebrew, apache, php5.6.9 and have installed php 5.3. I need php 5.3 to run a certain api which known to have complications with ph5.6.9. But how can I disable php 5.6.9 ...
0
votes
1answer
33 views

403 forbidden on Apache vHost

I'm using Mac OS X 10.6.8 and I'm trying to configure a vHost. I configured it and it gave me a 403 Forbidden, and I'm having trouble giving _www permission to read/write in ~/Document/workspace/dev ...
0
votes
0answers
45 views

How to compile PHP with OpenSSL on OS X 10.9?

So I'm while trying to compile PHP 5.6.10 from the source faced the following problem: Undefined symbols for architecture x86_64: "_PKCS5_PBKDF2_HMAC", referenced from: _zif_openssl_pbkdf2 in ...
0
votes
3answers
100 views

Install php on Mac Yosemite

I am trying to run Laravel but I was getting a mcrypt error. I found more than one php on my mac so I decided to delete both and reinstall. However I can not seem to find instructions on how to ...
0
votes
1answer
217 views

Can't install php56-mcrypt with homebrew

I use Homebrew on my testing server on OS X. I have php56, autoconf, and mcrypt installed through homebrew. I was successful doing this on a different Mac but I am not having any luck this time. ...
0
votes
0answers
89 views

Local User Authentication for Postfix in Yosemite for php PEAR Mail

In summary up front: what I want is for php PEAR Mail_mime() to authenticate with postfix on my local computer, then for postfix to send all messages to a single address. I have a Yosemite (10.10.3) ...
0
votes
1answer
51 views

Joomla not working on Localhost:8000

I was migrating a Joomla site to a new server. Before uploading to the new server, I wished to test it on my localhost php server. I have done this with Wordpress sites and other PHP/MySQL things with ...
2
votes
0answers
74 views

Installing a different version of Apache and PHP

I have OS X Yosemite, it comes with default Apache 2 and PHP versions. I want to set up a development environment with older version of Apache (2.2) and PHP (5.3). I have a product set up running on ...
0
votes
2answers
134 views

PHP on OSX 10.10

How do I install/allow php to run on Yosemite? I've read a lot about doing stuff through terminal, but none of the 'tutorials' are thorough, they just tell me to do 'sudo....' I've tried it, and ...
0
votes
0answers
48 views

Laravel loading error in Mac Yosemite — Mcrypt Extenstion

When I tried to access my laravel after successfull updation, instead of the default page it shows an error in the webpage. Mcrypt PHP extension required. I have tried some fixes like this and ...
0
votes
1answer
160 views

Error when installing Apache 2.4, PHP 5.5 and MySQL via Homebrew

I tried to install Apache and PHP on Mac OS X version 10.9.5 brew install httpd24 php55 --with-mysql --with-homebrew-apache --homebrew-apxs -v exit with this error ...
2
votes
1answer
721 views

Can't access apache-powered website at localhost

I was trying to enable php, mysql, apache on my macbook pro running yosemite. I followed this guide but it doesn't run. What's wrong in setting up a local web server on OS X Please help.....I get an ...
0
votes
1answer
68 views

Admin vs firstname and lastname

I've been using OS X since Lion. I'm a sole user of my Mac. When I log into the Mac, I log in as Admin. Also, in System Preferences, under Users & Groups, the Current User is listed as Admin. ...
0
votes
1answer
167 views

phpinfo() displays Wrong version openssl in OS X

I upgraded openssl from version 0.9.8zc to OpenSSL 1.0.2 version. I used this web page How to upgrade OpenSSL in OS X? to do this. The next step I upgraded php to 5.6 version from this web page ...
1
vote
1answer
105 views

Linking homebrew, php, mcrypt, and localhost:8000

I currently using php -S localhost:8000 for my php testing server on OS X. I am trying to use OpenCart which requires mcrypt and OS X does not come with that. I installed Homebrew, php 5.6.5, and ...
0
votes
1answer
487 views

PHP version shown in command line differs from phpinfo(); in localhost:8000

I started my OS X PHP test server by typing php -S localhost:8000 I updated my PHP on OS X to 5.6 and when I check the version through the command line by typing: php -v It tells me that I have ...
0
votes
0answers
65 views

Where phpstorm indexes located? And how to change location path?

I have small space on internal hdd. Therefore I use external hdd. My phpstorm projects are located there. If external hdd has been reconnected phpstorm project needs to be reindexed. It takes too ...
1
vote
1answer
99 views

Set sublime text to read .asp files as .php files (with php syntax)

I have a few .asp files that I want to edit with Sublime Text, however, I always have to change the syntax to PHP under View -> Syntax -> PHP. Is there anyway that I can make Sublime Text ...
0
votes
3answers
103 views

Enabling Apache

I cannot find the web sharing option in the system preferences under "Sharing"(where the web sharing is supposed to be). I am using Mac Os x 10.9.4
1
vote
0answers
213 views

Apache/PHP can't resolve localhost

After upgrading to Yosemite, I'm having an issue with Apache and PHP running locally. PHP can't find my local database server using localhost but it can if I specify 127.0.0.1 or test.dev (which ...
4
votes
4answers
4k views

phpMyAdmin 403 Forbidden Error after upgrade to Yosemite

I upgraded my Mac to Mac OS X Yosemite. I had a AMP stack installed via Homebrew on Mavericks and it worked fine. After upgrading to Yosemite, I have the following problems: when trying to load ...
0
votes
1answer
639 views

OSX 10.9.5 upgrade causes apache/php downgrade

Today I installed the OSX 10.9.5 upgrade and it appears to have downgraded my Apache and PHP version. Is there an easy way to reverse this unwanted downgrade? Or do I have to reinstall apache via ...
1
vote
1answer
309 views

Can't compile PHP 5.6.1 from source

I'm trying to compile PHP 5.6.1 on my MacBook Pro but I can't seem to get pass all the problems. I get stuck with the error message at make: clang: error: linker command failed with exit code 1 (use ...
0
votes
1answer
330 views

Update PHP in shell and install Mcrypt

I want to update to PHP 5.6 in shell (via Terminal) before I want to install the Mcrypt extension I followed this tutorial: http://justinhileman.info/article/reinstalling-php-on-mac-os-x/ But ...
1
vote
1answer
663 views

Terminal “LoadModule” - command not found

I installed via homebrew the new php56 version. To activate it and use it I typed this in the Terminal: LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so But it says: ...
0
votes
1answer
380 views

PHP not locating mcrypt while using MAMP

I'm using MAMP on a MAC. And in the php info page on MAMP, it says that mcrypt is enabled. However, when I run "php -m" on the terminal, I can't find mcrypt between the php modules. Any advice??
0
votes
0answers
169 views

Doesn't work php mail function on my mac

mail() function returns false and I don't get an email. Log error after mail() called: Aug 5 15:33:59 MacBook-Air-Anthony.local postfix/master[70836]: fatal: open lock file pid/master.pid: unable ...
0
votes
1answer
1k views

XAMPP on Mavericks install APC and Memcached

What I already did: Download latest stable release from pecl.php.net with wget- Unpack archive Run phpize, ./configure, make, make install, etc.. That stuff went well, now I have: ...
1
vote
0answers
37 views

Different file kinds for same kind(/type) of files

I am seeing this weird thing on Mac (OSX). I have a PHP project where the file kind of certain PHP is listed as PHP where as other listed as TextWrangler text document; although all PHP files are ...
2
votes
2answers
1k views

How to install memcache on Mavericks? (MAMP)

I have MAMP on my machine, and I would like to install memcache for php, because one of my project throws errors like Fatal error: Class 'Memcache' not found. I installed X-Code from appstore, and ...
0
votes
1answer
269 views

Do i need the 32 bit or 64 bit version of Mysql for use with php 5.5

First time Mac user, I am just about to download MySQL for Mac, which version do I need for use with PHP 5.5? Apologies if this is a really simple question. Thanks
0
votes
1answer
25 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] ...
0
votes
2answers
165 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 ...
1
vote
1answer
355 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?
1
vote
1answer
666 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
1answer
146 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 ...
1
vote
1answer
104 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 ...
0
votes
1answer
311 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
1answer
470 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 ...
1
vote
2answers
2k 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 ...
2
votes
2answers
231 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 ...
2
votes
1answer
10k 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 ...
1
vote
2answers
53 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 ...
0
votes
1answer
101 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 ...
2
votes
1answer
572 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 ...
1
vote
1answer
194 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
341 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 ...