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

learn more… | top users | synonyms

1
vote
1answer
1k 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 ...
3
votes
1answer
86 views

Can't write to /usr even with sudo

Here's my problem: sudo php -d detect_unicode=0 go-pear.phar ...should let me run as root and modify /usr & /usr/share directories, but I get this: Below is a suggested file layout for your ...
1
vote
1answer
45 views

Uninstall default PHP on El Capitan

My Mac has the default installation of PHP 5.5 at /usr/bin/php and I want to remove it the right way because I want to have PHP 7 instead of this. So far no luck on how to uninstall the right way. I ...
0
votes
0answers
30 views

Where is the libphp7 module located

I've downloaded the PHP 7.0.5 .tar.gz package from https://secure.php.net/downloads.php. After that I've run the following: cd /path/to/php/package/php_7.0.5.tar.gz ./configure --without-iconv make ...
2
votes
3answers
200 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
1answer
56 views

System Integrity Protection (SIP) creating problem for oci_connect(): OCIEnvNlsCreate()

After I upgraded my OS to El Capitan (which comes with SIP), I am getting error in oci_connect() Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - ...
1
vote
1answer
582 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 ...
1
vote
1answer
116 views

How to properly and for once reinstall PHP/Apache

So I'm struggeling with this since a long time and I'd like to find a proper solution. I have php5.4.. install and I want to upgrade to Php 7. No matter how hard I'm trying to do it I can't seems to ...
2
votes
1answer
51 views

Can I delete Xcode?

I'm a php developer, usually with the laravel framework. I want to get rid of Xcode because I'm tired of dedicating 9 gigabytes of storage to an application that I don't use at all. I seem to ...
0
votes
0answers
38 views

Does Mac's PHP interfere with XAMPP/MAMP's PHP?

This is a follow-up question of this post. I was trying to install xDebug following this instruction. In its "Install Xdebug" section, after doing "brew install php54-xdebug", it starts operating ...
0
votes
1answer
40 views

Need some basic enlightenment about using PHP

Actually I have been programming in PHP for a while, but my experiences about PHP is through VPS or some local environment like XAMPP. I was trying to install xDebug/homebrew when I come across this ...
1
vote
0answers
26 views

Getting error 403 on trying to activate PHP and Apache on Mac Pro

I followed the steps given in the following site to activate PHP and Apache on my Mac Pro: Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.10 Yosemite This is the screenshot of my terminal ...
0
votes
0answers
53 views

False error Undefined property when debug php script in El Capitan

I have installed PHP and x-debug from homebrew in El Capitan: php -d xdebug.remote_enable=on -v PHP 5.6.18 (cli) (built: Feb 6 2016 06:53:53) Copyright (c) 1997-2016 The PHP Group Zend Engine ...
2
votes
2answers
3k 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
1k views

OpenSSL 0.9.8zg

A week ago, as part of the installation a PHP 5.4 cartridge from openshift.com on my Mac with OS X v10.10.5 in the Terminal I noticed a message about it is loading OpenSSL 0.9.8?? for compatibilty ...
0
votes
1answer
47 views

Know installation source of PHP

I'm finding myself in an awkward situation. I need to install PHP and Nginx for development but I do not want to mess up my Mac with multiple installations. I have found that PHP and PHP-fpm are ...
0
votes
0answers
48 views

Problems configuring Apache and PHP

When I am entering http://localhost, it is showing the it works message. But when I am trying to open the phpinfo page by safari(http://localhost/phpinfo.php) it is showing the error,"Safari can't ...
0
votes
1answer
17 views

How can I hook up a PHP server?

I have a php page I want to test on a server. Is there a server that runs through Terminal.app that supports PHP? I read this tutorial, but either I did it wrong or it didn't work. How can I start up ...
0
votes
0answers
81 views

php56 macports el capitan

I successfully installed a MAMP stack using Macport on OX El Capitan. Now I run into a situation where mysql is not correctly used in a command line script. I suspect that the built in php is used ...
2
votes
1answer
51 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 ...
1
vote
1answer
31 views

Port 9000 apache returns access forbidden

I am using native PHP and native Apache. PHP version is 5.5. userdir module in Apache is enabled, and I have my PHP codes under ~/Sites. Localhost URL is localhost/~username. I have installed XDebug ...
2
votes
2answers
258 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?
0
votes
1answer
37 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
0answers
15 views

How can I import a text file of emails into Mail?

I have thousands of emails from the nineties that were exported as a text file that I'd like to import into Mail. I'm looking for a way to do that directly or indirectly. I'm assuming it will require ...
0
votes
2answers
65 views

MAMP PRO uninstalled but Terminal commands still exist. How to remove them as well?

Source: To "uninstall" MAMP, you only have to delete the MAMP directory and everything returns to the original state I uninstalled MAMP using the Uninstaller from Applications/MAMP PRO. I ...
0
votes
1answer
862 views

Installation failure - the mongodb driver for PHP on El Capitan

I tried to install the mongodb driver for PHP on El Capitan. While running sudo pecl install mongo, I get the error message: sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo fatal error: ...
0
votes
0answers
88 views

Phalconphp doesn't appear in phpinfo() installation succeed

I have problem in Phalconphp installation. I have followed the OS X install instructions but the phalcon doesn't appear in phpinfo() which mean I doesn't installed. My OS X version is OS X 10.11, El ...
0
votes
0answers
450 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 ...
2
votes
1answer
132 views

How to update internal PHP

How do I update the internal PHP on OS X 10.7.1? I've loaded a current version but since I don't have a simple plan how to update it, I won't do it. I guess it's just easy replacing of files in ...
1
vote
0answers
164 views

Problem loading php56 instead of php5 under MacPorts

I am running MacOS X Mavericks, where I manually created a MAMP stack by installing mysql5-server, php5, etc., under MacPorts. I was recently forced to upgrade this configuration to mysql56-server ...
0
votes
1answer
138 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 ...
0
votes
1answer
25 views

Podcast sounds to iTunes [closed]

I need to upload our sounds to iTunes using rss feed.Created rss feed,i don't know how can work this with iTunes. Thanks in advance.
0
votes
2answers
71 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
388 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
1answer
568 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
1answer
452 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 ...
2
votes
2answers
2k 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
3answers
277 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
128 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
2answers
295 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
1answer
198 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
134 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 ...
5
votes
1answer
9k views

How can I determine the compile-time options of PHP?

I'm trying to customize my php install, but I'm not that familiar with compiling programs from scratch. How can I tell determine what compile-time options were used for php? Specifically, I'm trying ...
0
votes
1answer
227 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 ...
1
vote
5answers
5k views

ASP & PHP Web Server on OS X

On Windows, I ran Xampp on port 80 for PHP/MySQL and IIS on port 8080 for ASP. For OS X, what's the best route to take... Should I just run Xampp for Mac for PHP/mySQL, or is there a better option ...
2
votes
1answer
2k 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
422 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 ...
5
votes
2answers
11k 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 ...
1
vote
1answer
182 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
7k 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 ...