0
votes
0answers
14 views

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ...
0
votes
1answer
28 views

PHP-FPM user permissions after restart

For some reason after I restart php-fpm daemon, files that were generated using PHP (Twig templating cache) aren't accessible by PHP anymore. I think it's something to do with php-fpm user/group ...
0
votes
1answer
76 views

Getting warnings while “make test” PHP on Mac OS X (MySQL PDO->prepare()) [closed]

Here are the results of "make test": ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- ...
0
votes
1answer
236 views

php.ini does not update date.timezone

I have apache and php running on OSX. I have a simple page printing phpinfo(). <?php phpinfo(); In my php.ini, no matter what I write for date.timezone, phpinfo says Europe/Zurich (both Local ...
0
votes
0answers
113 views

MYSQL #1045 error on mac os x 10.9 (with my password)

I was using ubuntu before i have bought my macbook pro. And today i started to use this computer. Now, I did everything to install php, apache and mysql like here: ...
0
votes
1answer
1k views

Can't access my external ip address outside of my LAN, apache server on OS X [closed]

For fun I've been working with a web server on my OS X(10.8.4). Apache and its httpd.conf(/etc/apache2/) file and username.conf(/etc/apache2/users/) files all seem to be fine, I can access my ...
0
votes
1answer
334 views

Local Server - Apache redirecting all requests to /index.php [closed]

I'm having a weird redirect problem on my local server. I have a VirtualHost set up: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Users/iMac/Sites/index.php" ServerName ...
2
votes
2answers
882 views

How to add Postgres support to PHP installed by Homebrew?

I have already installed and configured new version of PHP with Homebrew, including MySQL support and XDebug. That works fine. However, I need to install the support for PostgreSQL as well. How can I ...
-2
votes
1answer
254 views

sh dev/null Permission denied apache

I am using Mac osx Mountain Lion for development. I am trying to execute a shell command in php using the 'exec' function. At the end of my command I am putting the output to > /dev/null 2>dev/null ...
2
votes
1answer
591 views

How can I configure Apache+PHP on OS 10.7.5 to make 0755 directories writable?

For years I used MAMP on my Macintosh computer to run a development environment with Apache, MySQL, and PHP. When I upgraded my machine to OS 10.7, I decided to use OS 10's native Apache and PHP in ...
2
votes
1answer
5k views

Cannot get mod_rewrite to work on Mac OSX Mountain Lion

I have tried everything I can think of and it still doesn't work. I am trying to get the example code from Larry Ullman's Advanced PHP book to work. His instructions were a bit lacking so I had to do ...
0
votes
0answers
29 views

Installing OAuth on Mac Leopard

I'm trying to install OAuth on Mac 10.5. I've tried various online tutorials to no avail. I'm not using MAMP because I feel it takes too much control away from the user. Does anyone have experience ...
-2
votes
1answer
130 views

PHP Composer Not Working On Mac [closed]

I have installed a bitnami mac stack mainly because I require at least PHP 5.4.7 version for my project. However, I have run into an issue with composer. This is the error I get when I run: php ...
0
votes
1answer
451 views

Apache + PHP via FastCGI

I'm running into some problems while attempting to run PHP via FastCGI in Apache. I have the FastCGI module loaded, but get the following error when attempting to load a page: The requested URL ...
1
vote
1answer
1k views

OSX Default Apache + MacPorts PHP?

If possible, I'd like to retain the default Apache installation and simply direct it to use a different version of PHP built/installed using MacPorts. Is this possible (and if so, is there a ...
0
votes
1answer
46 views

Find out where PHP is coming from? [closed]

If I type which php I get /Applications/MAMP/bin/php/php5.3.6/bin/php If I type where php I get /Applications/MAMP/bin/php/php5.3.6/bin/php /usr/bin/php And that's fine, but I am trying to ...
0
votes
2answers
1k views

Gettext extension on PHP 5.3.13 on OSX 10.8 Mountain Lion

I recently bought a new MacBook and I'm trying to configure it for PHP development. The operating system is OSX 10.8 Mountain Lion, and I'm using the builtin Apache2 and PHP 5.3.13 stack. I needed ...
1
vote
3answers
916 views

How to set up vhosts on Mac OS for zend framework?

I've added a virtual host in my vhosts file like this <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/myname/Sites/test/public" ServerName test ...
5
votes
1answer
4k views

Upgrading from php 5.3 to php 5.4 with Macport

PHP5.4 has been available for sometime now and Macport recently caught up with the release of port php54 but the process of upgrading is not as clear as possible. Even worst for those who are new to ...
0
votes
1answer
127 views

Issue with PHP and osx 10.7 - runs via command line but not in browser

I recently removed MAMP as I wanted to have more control over my machine and wanted to make use of PHP5.4 I installed using the script located here I cannot now not even get my default PHP that is ...
2
votes
1answer
839 views

How do I resolve a PHP error “Failed opening required” in a symlink context?

I am running Apache/PHP on MacOS X Lion 10.7.4. My directory structure is set up as so: /Users/achan/Sites/ lrwxrwx--- 1 achan staff 23B Apr 27 16:21 epwbst@ -> /Users/achan/dev/epwbst` ...
0
votes
1answer
20 views

Getting the current status (logged in/current program running) of OSX systems in a local network?

I'm exploring building an internal site that displays what computers in the lab are currently being used. My initial idea involved a webapp that took in info from each computer every 5-10 minutes and ...
0
votes
1answer
214 views

php.ini is not loading on my local machine mac os x

I have a localhost running on my mac osx machine, everything works fine apart from I get this error when running some applications: Warning: strtotime() [function.strtotime]: It is not safe to rely ...
2
votes
1answer
505 views

Setting Apache's PATH environment to match users

Using PHP 5.3 as an Apache module with Apache 2, on OS X 10.7. When I open Terminal and enter echo $PATH I get: ...
0
votes
1answer
321 views

Apache / PHP server delaying for a minute before responding

Am having the strangest issue with an apache/PHP instance (PHP 5.2 in this case), where it will take over a minute to respond to a request. The PHP profiling is saying it's taking less than a second ...
0
votes
1answer
98 views

Replicating Linux production environment locally on Mac

I have a remote CentOS server and i want to recreate, as close to possible, this environment locally on a Mac currently acting as a fileserver to our office to provide a development environment that ...
1
vote
1answer
428 views

How to change php binary location in OSX command line

I'm trying to update where the command line gets the location of the php binary: webserver: /usr/bin cli: /opt/local/bin/php Where can I edit so when I do 'which php' it shows me /usr/bin/php
1
vote
0answers
105 views

Add new ODBC driver libs to PHP on OS X 10.6?

I'm trying to access a PostgreSQL datasource via ODBC from the installed stock PHP (OS X 10.6). Queries just hang, and I'm suspecting it can't find the PostgreSQL driver library which was installed ...
0
votes
2answers
126 views

upgrading to php 5.3.6

I just upgraded to dev box to OSX Lion which has php 5.3.6 (from Snow Leopard). Now my Yii made sites are broken. How do I know what code is now broken with out finding them out one by one? Why ...
0
votes
3answers
243 views

Detect CPU Vendor on OSX

So, I considered asking here instead of SO because people here are more likely to be familiar with this stuff. I'm currently using PHP to detect some generic stuff on the host OS. In this case, I'm ...
1
vote
1answer
230 views

mysql functions php cli

I'm trying to run Symfony on my new Macbook Pro but I have no luck getting it to work with the command line scripts. With every symfony task related to a database connection the following message ...
1
vote
1answer
892 views

Using FastCGI for PHP on Mac OS X

I have apache2 running on a Mac OS X (10.6) machine, and it is currently serving PHP pages fine, using php5_module but I would like to configure fastcgi_module to handle the php pages. I have tried ...
0
votes
1answer
104 views

Revert all changes make to Mac OS X web sharing [closed]

I've been messing about with apache2 php and mysql today and I've taken a few wrong turns. I'd rather install XAMPP than try to figure out all the problems. I did a time machine backup a few days ago ...
0
votes
1answer
423 views

How to install php-gd on Mac OS X 10.6.x

Snow Leopard does not comes with php-gd module by default. How can I install it?
0
votes
1answer
378 views

Changing permissions of Apache server giving 403 when requesting images and CSS

I have Apache running on my Mac (Snow Leopard). On my local dev machine my site cannot access images and CSS files that are hosted. Access to these directories is denied with a 403 Forbidden error. ...
-1
votes
1answer
3k views

Installing PHP with iconv on Mac OSX 10.6 gives error: “Undefined symbols for architecture x86_64” [closed]

I am setting up PHP on my local web server with iconv, which should be there by default, but I am getting the following error: Undefined symbols for architecture x86_64: "_iconv", referenced from: ...
0
votes
1answer
142 views

Server maxing out at low bandwidth?

I'm running a Mac Mini Server 2.66ghz C2D, 8GB Ram OSX 10.6 Server. I'm running a WordPress 3.1.1 install with Apache/PHP/MySQL, only serving the pages (images come from S3) per page size is 19k. ...
3
votes
2answers
755 views

“su _www helloworld.php” does nothing

In the context of a larger effort, I've run across a particular issue that is baffling me. On Mac OS X 10.6.7, using the system provided Apache and PHP, I have created a simple HelloWorld.php script ...
-1
votes
2answers
110 views

upgraded to mac 10.6 - can't configure mysql [closed]

I'm new to mysql and I'm not a programmer. My computer is a Mac that has been upgraded to Snow Leopard. I have successfully installed apache2 and php, and I have downloaded and installed mySQL. ...
1
vote
1answer
56 views

DocumentRoot - take without / infront

I'm not sure if I've posted the title correct as I'm not sure if there's a tehnical title for what I'm looking for - see below. On my localhost server I have a clone of my VPS files as I wish to sync ...
0
votes
1answer
112 views

Need help executing php on Apple Xserve

I'm not positive if this is a programming question or a server question, but I'm leaning towards server. I've been in the process of moving a webpage (basic php backed by a MySQL database) from an ...
0
votes
1answer
541 views

PHP in Mac OS X: PHP loads source code in browser rather than executing…

I don't know what to do. I read the related question on stackoverflow just like mine but those changes didn't work. I asked again on stackoverflow and they sent me here. They sent that I need to load ...
0
votes
1answer
712 views

Connecting to SQL Server with PHP on Mac

I'm trying to connect to my local SQL Server 2008 R2 (have also tried it with 2005, same result exactly) with PHP. I'm using PHP 5.1 which still supports php_mssql and mssql_connect(). for some ...
0
votes
3answers
1k views

Connecting to SQL Server on Parallels Desktop with PHP

well I recently bought a Mac and am using it as my primary computer. Because I am required to work with MSSQL via PHP, I have installed Parallels Desktop and run Server 2008 R2 on it. I am using the ...
0
votes
3answers
196 views

10.6 Server- PHP not working

Trying to enable PHP in 10.6.6 server and it keeps loading the php text (I can see the php code on my .php file). I've enabled the php5 module in server admin (and verified that it's in the ...
2
votes
1answer
903 views

Apache Serving 403 Forbidden after OS X Snow Leopard Upgrade to Version 10.6.6

I've just upgraded my MacBook Pro to OS X Snow Leopard version 10.6.6 and now Apache is misbehaving: requests to http://localhost/ generate a 403 Forbidden response -- FIXED requests to any of my ...
0
votes
1answer
601 views

Why is Apache with mod_wsgi + mod_php causing segmentation fault?

I'm using Macports on OS X 10.6 to manage Apache, PHP, and Python. I've never had any problems and the setup works great. However, when I add mod_wsgi to the mix Apache immediately crashes with a ...
0
votes
2answers
758 views

Install PHP OAuth Extension In Snow Leopard

I am trying to install the PHP OAuth extension in Snow Leopard, I'm using the bundled Apache Web server and PHP 5.3.2 by Apple, which is working just fine. When I type in Terminal: sudo pecl ...
0
votes
1answer
362 views

PHP syntax error doesn't show up

I can't get PHP syntax errors to get displayed on Snow Leopard build in PHP module (5.3.2). Every other error does show up. I've checked phpinfo() and I definitely have display_errors = On and ...
0
votes
3answers
1k views

mysql problems after Mac OS X software update

After running Mac OS X updates this morning when I run PHP projects on my local machine, when they were fine last night are now giving me errors: mysql_connect() [function.mysql-connect]: [2002] No ...