0
votes
1answer
105 views

Understanding the scope and lifetime of environment variables in shell scripting

I'm pulling my hair out trying to understand shell scripting and passing environment variables, and what not. I'm trying to execute a PHP script from TextWrangler, that in it's turn opens a new PHP ...
0
votes
1answer
59 views

How to use built-in PHP-FPM in OS X Mountain Lion?

I would like to know how php-fpm included in Mountain Lion (v10.8.5) can be used (eg. with NGINX). I am afraid that some configuration might be needed before it is actually used. NOTE: I know how to ...
1
vote
0answers
31 views

Activate PHP on Mac Os 10.7.5

Trying to activate PHP. Guides state that web sharing must be turned on but when I go to Apple menu/System Preferences/Sharing and check web sharing, system starts web sharing then immediately ...
1
vote
1answer
426 views

Setting up VirtualHost for MAMP server?

Problem I need to setup some VirtualHost records for a MAMP server I have installed on my Mac. In short, rather than using http://localhost:8888/dkbtherapy/index.html I want to use ...
0
votes
1answer
357 views

MAMP PRO won't execute PHP files?

For some reason, PHP files display as plain text in the browser when I browse locally via MAMP PRO. I looked through the PHP settings and there doesn't seem to be anything there that would affect ...
1
vote
1answer
297 views

PHP files in an HTML5 project

I created a HTML5 Project using Netbeans 7.3, but sometimes I need to run PHP code when testing locally. How do I run PHP code when testing my project locally? The default Netbeans testing URL is ...
0
votes
0answers
63 views

How to display assets on localhost

I'm trying to run a site on a MAMP stack, but when I load a page the assets aren't showing up. I inspected the Net tab in Firebug, and my stylesheet tags are pointing to the right CSS files, but the ...
0
votes
0answers
302 views

“unrecognized options” while installing php

I want to compile php 5.4.8 on my mac 10.8.2, but get some errors which cant solve by my self, so need your help. Firstly i get default php options with php -i | head, after it do this command ...
2
votes
1answer
3k views

How to upgrade PHP on Mac OS X

So i did simple thing: php -i | head ./configure --prefix=/usr --with-snmp make sudo make install But phpinfo() still showing me 5.3.15. Here some results of investigations: PHP_BINDIR = /usr/bin ...
1
vote
1answer
747 views

How to enable the php 5.4.x version on Mountain Lion

I have installed the latest php version on my mountain lion system using these instructions (http://mac.tutsplus.com/tutorials/server/upgrading-the-native-php-installation-on-os-x-mountain-lion/). I ...
2
votes
2answers
1k views

PECL install error after upgrading to OSX 10.8

I've just upgraded my OS to Mountain Lion and PECL is no longer working (it's on a test drive so no drama, but I'd like to get it working so I can upgrade the OS on my shiny new SSD as well). I'm ...
1
vote
0answers
270 views

Problems with mcrypt on Snow Leopard

I'm having libmcrypt troubles on my Mac, version 10.6.8, php version 5.3.8. I want to enable libmcrypt but I don't appear to have mcrypt! I've tried following directions to install libmcrypt on a ...
0
votes
1answer
85 views

Put file on FTP server using PHP

I have an FTP server running on my home computer. I've built a super simple web interface for depositing files onto the server without the use of a native client using the HTML5 File API. I have the ...
-1
votes
2answers
232 views

PHP page comes up blank on this Mamp setup

I installed MAMP on this Mac OSX 10.6.6. A phpinfo test seems to say that PHP is installed. But when I open a file (e.g. index.php) in the browser, it comes up blank. What could be the problem?
0
votes
1answer
76 views

Enabling PHP on the Mac

I have done all the steps for enabling php on the Mac: edited httpd.conf to uncomment loadmodule for php verified that php.conf has the right information have web sharing enabled But the apache ...
0
votes
1answer
794 views

PHP web application can't connect mysql installed with Zend Server CE on Mac OSX

I'm setting up development environment on Mac OSX. However the PHP web application can't connect the mysql server installed with Zend Server CE. The error information is below, [Type] dbnot_connect ...
0
votes
1answer
194 views

VMWare Fusion on Mac w/ Ubuntu - Setting up shared LAMP Environment

I recently purchased a Mac and installed VMware Fusion and Ubuntu. I've setup LAMP on Ubuntu and setup a mirrored folder between the mac and ubuntu. I want to be able to do my development on the Mac ...
2
votes
1answer
3k views

Error message: sudo: mysql_secure_installation: command not found

I'm trying to learn PHP and I'm just in the process of installing apache,msql and PHP. I'm on a mac osx 10.7.2 Processor 2.26 GHz intel core 2 due I downloaded: mysql-5.5.18-osx10.6-x86_64.dmg ...
1
vote
2answers
1k views

MAMP set up from scratch on Lion OSX

How different is it from Snow Leopard to create a MySQL, Apache, PHP install from scratch (not MAMP) on Mac OSX 10.7 Lion?
0
votes
0answers
178 views

production server with php and jsp on a mac

I have a working development server with Apache, MySQL, PHP and Tomcat. I use virtual hosts for PHP websites (like admin.local and test.local) and I only have one .jsp webapp which runs on ...
-1
votes
2answers
516 views

configure Apache to open .js file with php in very specific folder

I want .js files in some very specific folder to be rendered with PHP by Apache. Where can I set it, and how? In other words: I want apache to deal with files with extension js, as if they are with ...
0
votes
1answer
821 views

Connection to a tunneled MySQL with PHP PDO on Mac Osx Snow Leopard

On Mac OS (snow leopard) I have a SSH tunnel so that my local 3306 port is forwarded to remote MySQL. Apps like Navicat can establish connection successfuly. But PHP's PDO can't connect and gives an ...
0
votes
1answer
226 views

In Flash Builder 4.5 for Mac, how can I use xdebug as my PHP debugger (instead of Zend Debugger)?

Currently, under Preferences>PHP>Debug>Installed Debugger, only Zend Debugger is shown, and there is no way to add xdebug, even though I have verified that it is active using phpinfo(). Does anyone ...
3
votes
1answer
4k views

How to install PHP, Pear, PECL, and APC with Homebrew on Mac OS X?

I'm trying to install APC for PHP 5.3 in the easiest way possible. I love Homebrew so I started down that route. I was able to install PHP 5.3.6 with this command: brew install ...
5
votes
2answers
13k views

Where is the PHP log file located on Mac OSX?

I am having issues with phpMyAdmin on my Mac. I cannot seem to connect to the local MySQL server. When I try to log in I get the following message Cannot start session without errors, please check ...
0
votes
1answer
335 views

Mac OS: Mysql, PHP, Apache not working!

Mysql j:~ julian$ mysql -bash: mysql: command not found Apache/PHP Forbidden to access / on the server.
1
vote
4answers
427 views

32 or 64 bit for Mac

I'm downloading a php editor/platform by Zend called Eclipse. I use a Mac version 10.6.6. The options for a Mac OS 32 bit or a 64 bit (see image). Does it make a difference which I use? What should ...
1
vote
0answers
713 views

How do I run a PHP script through SSH using MAMP?

I have a PHP socket script that I run from SSH on a remote dedicated server, but I want to try doing that using MAMP with SSH. I have MAMP configured and am running a remote web server on port 80. I ...
0
votes
1answer
2k views

How to install Imagick on Mac OS with XAMPP

I'm having some trouble installing Imagick on a Mac. I have XAMPP installed and when I run 'sudo pecl install imagick', I get this error: checking ImageMagick MagickWand API configuration program... ...
2
votes
1answer
779 views

php's pecl - oauth - Mac OS X 10.6.6

I'm trying to install a php extension through pecl and I'm getting some weird errors... any ideas? wcmisdpilotpc1:~ alexus$ sudo pecl install oauth Password: Notice: Array to string conversion in ...
0
votes
1answer
1k views

Why is Mac OS X 10.6 using /usr/lib to start Apache when I compiled PHP using /opt/local/lib?

PHP 5.3.3 compiled on Mac OS X 10.6 - using /usr/lib when trying to start Apache... rather than /opt/local/lib specified when PHP was configured. Why is it trying to load from /usr/lib when ...
0
votes
1answer
389 views

PHP / Postgre Problem on Mac

Hey there, I'm on a project that uses drupal and postgresql, and i was developing using console and ssh, but i had some troubles and i want to make it local. So i enabled mac's Apache and PHP, and ...
0
votes
2answers
1k views

View local PHP files in the browser on OS X

is there a way to view local PHP files in my browser without running Apache or anything? I'm using Snow Leopard.
0
votes
2answers
823 views

Installing Apache/MySQL/PHP on Mac OS X Snow Leopard without a direct internet connection

Are there any good sites that explain the process in such a way that it can be done on a Mac without internet? I would put the installers on a USB drive and move them from an internet enabled machine. ...
7
votes
5answers
29k views

Is there a way to use Xcode for PHP web development?

I have heard you could use Xcode for PHP development with syntax highlighting, syntax check, code completion etc. some time ago, maybe years ago. Is there a way to add PHP support to a current Xcode ...
6
votes
7answers
802 views

Mac Text Editor (with function list) [duplicate]

Possible Duplicate: Text editor for Mac OS X So I've got a Mac in the post coming to me, and will probably be doing quite a bit of development on it so I am looking for a text editor (PHP + ...
1
vote
2answers
874 views

How to install Xdebug on Mac 10.6 Snow Leopard?

I am getting errors when trying to do this. What is the correct way to install Xdebug. From Pear? Pecl?
2
votes
4answers
1k views

Disable PHP mailing on Mac OS?

I'm developing a web application in PHP, and my Macbook, running Snow Leopard, is actually sending emails when PHP's mail() function is called. It's emailing customers, and that's BAD. I COULD ...
0
votes
6answers
3k views

I just installed MAMP. How do I access mysql through the terminal?

I'm trying to figure out how I can start using mysql through terminal since I'm not much of a fan for phpmyadmin. I read online where that told me to type this into terminal ...
1
vote
4answers
786 views

PHP for Mac OS X

I want to use PHP on my Mac. If I were using Windows I would install WAMP server, but I'm not familiar with how to use PHP on Mac OS X. What kind of software should I use for installing/running my ...
1
vote
3answers
2k views

GUI for Apache/PHP on a Mac

Recently installed Snow Leopard on my Mac Mini. Something screwed up my Apache/PHP installation and it's now looking at a different library as localhost. The PHP installation also reset some of my ...
6
votes
14answers
3k views

What is the best Apache, PHP setup for a Mac developer? [closed]

I'm a Web Developer who has just made the switch over to Mac. Despite all that I know and love about the Windows environment I find myself in a new mysterious place. My question: what is the best ...
4
votes
6answers
6k views

Install multiple PHP environments on OS X Snow Leopard

I just upgraded my MBP to Snow Leopard (OS X 10.6), which took PHP to 5.3 This is great, except I use my MBP as my development machine and I use a lot of PHP libs and frameworks (namely CakePHP 1.2) ...
0
votes
2answers
2k views

Mac OS X bash: uninstall all apache and PHP occurences

How do I find all installed apache and PHP occurences on a Mac OS X system in bash and uninstall them? My motivation: I've managed to install multiple apache and PHP packages (I believe it's called ...