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

learn more… | top users | synonyms

0
votes
0answers
14 views

how to get content of a file in php that are browsed through HTML page [on hold]

I have written a HTML file for browsing a file code is given below <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="my-file" size="50" ...
0
votes
0answers
10 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
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
3answers
74 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 ...
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
1answer
64 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
0answers
113 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
74 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
2answers
153 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
37 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
60 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
113 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
37 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 ...
4
votes
1answer
6k 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
146 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
4k 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
580 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
157 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 ...
4
votes
2answers
9k 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
96 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
293 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
1answer
619 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 ...
0
votes
0answers
52 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
186 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
1answer
93 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
101 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
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: ...
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 ...
1
vote
0answers
193 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 ...
3
votes
4answers
5k 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
356 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
1answer
312 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
277 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
577 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: ...
2
votes
1answer
2k 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
0answers
148 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 ...
1
vote
0answers
36 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 ...
0
votes
1answer
17k views

Change the user Apache runs as [closed]

Need help to create a new user to apache web server and assign root privileges to newly created user. Or how to login as root user in apache server because following php script showing you are logged ...
5
votes
6answers
14k 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
1answer
233 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
1
vote
1answer
98 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
23 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] ...
1
vote
1answer
308 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
616 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
138 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
9k 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
1answer
295 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
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 ...
1
vote
1answer
449 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 ...