I'm using PHPStorm 9 on Mac OSX Yosemite 10.10 and when I try to open the project in the browser it returns a "502 Bad Gateway" error.
In PHPStorm it says php-cgi not found
Please ensure that configured PHP interpreter built as CGI program (--enable-fastcgi was specified)
I followed the answer by GotchaRob in this question, but it didn't help.
Unfortunately I can't post comments yet, so I've created a new question.
I would really appreciate if someone could provide some help.
Thank you.
i fix this problem with this solution
http://barratmp.blogspot.ru/2014/10/the-core-yosemite-php-version-is-5.html
but i install only php5.6
brew install homebrew/php/php56
after installation pointed the way to php6.5 in phpstorm
I couldn't make it work with p.Omelchenko's solution, so I tried what is suggested in this website by aswin_0348 and it worked like a charm!
Just sudo apt-get install php7.3-cgi
Related
I'm stuck for a couple of hours now, I want to use Cloud Fire store on domains on my Plesk Server, but I can't get it to work.
I followed the steps from https://cloud.google.com/php/grpc
and a lot of other tutorials, but on all I get errors.
I managed to update the OS PHP version of CentOS, but still no luck.
What I want is that PHP Version 7.2.14 works with gRPC (I already added extension=grpc.so to the php.ini)
But there really isn't a any good documentation on Plesk and gRPC
What errors are you getting? It's during installing grpc.so or it's installed but the script can't load it?
Also, from the link you give, "CentOS/RHEL 6" is not supported.
In my case help this
Install Pecl PHP for CentOS https://stackoverflow.com/a/31558558/1932494
Then run: pecl install grpc
Environment :
Cent OS 6.9
PHP 5.4
nginx
I'm trying to install pdo, when executing
pecl install pdo
I got error messages like this :
I have googled a lot, but I still don't get it. I need at least a pointer on where I should look, thanks in advance.
I decided to remove php 5.4 then reinstall using this link : PHP 5.4 installation guide, thanks to Alex Howansky for your help, reading your "custom compile" answer gave me an insight to reinstall it, and it works good now, I don't have to install the pdo extension via pecl.
Hopefully this will help everyone who's having the same problem as mine.
All,
I have compiled and installed Apache 2.2.32 successfully on Debian 8.7, following the directions at http://www.tecmint.com/install-and-compile-php-7-on-centos-7-and-debian-8/ but have received an error when compiling that it can't find a2enmod. Error below:
[preparing module 'php7' in /etc/apache2/mods-available/php7.load]
Can't exec "a2enmod": No such file or directory at /usr/bin/apxs line 578.
'a2enmod php7' failed Makefile:164: recipe for target 'install-sapi'
failed make: *** [install-sapi] Error 2
I have researched this error but most of my a2enmod searches result in finds for enabling ModRewrite for some reason (perhaps there's a link here?!). Anyway, I found the following question asked several months back, but there was no answer posted so I'm trying again:
https://stackoverflow.com/questions/38542193/a2enmod-doesnt-exist-when-compiling-apache-but-php7-compile-install-requires-i/42559640#42559640
The compile options are listed in the first link I gave, so I won't repeat them here, but I have followed the document to the letter, and it is using the same major versions of PHP, Apache and Debian as me. I don't know enough about the details of each of these or my platform to understand why this is, but I can't find how to install a2enmod anywhere, and aptitude searches give me nothing.
Can anyone help with this? I am trying to install the most recent version (9) of OwnCloud but I cannot get PHP 7 to compile!
Any help is much appreciated.
All,
After much of a headache, the answer appears to be in this article:
https://www.cyberciti.biz/faq/installing-php-7-on-debian-linux-8-jessie-wheezy-using-apt-get/
This tells us how to get the official debian repositories that include PHP 7 added to the apt repositories, then install them from there. This solves my problem by giving me php7, as for why it wasn't compiling itself remains a mystery.
You need install a2enmod binary, which for your Debian version is not in apache2.2-commonpackage, but in apache2.
So, simply, you have to do:
Debian 8+
apt-get install apache2
Debian wheezy
apt-get install apache2.2-common
For some reason I need to downgrade the php5.4 to 5.2.6 I've already manually installed the php5.2.6 after compiling it was success.. no errors where encountered. but funny thing is that when i php -v it is telling me that php is not installed.
Sever setup
default apache httpd is installed.
removed php5.4 and downgraded it to php5.2.6
I've already tried everything I found over the net but still can't figure out what I have missed along the way.. I'm just a newbie here and your expert advice will really help.. Thanks in advance..
Cheers
I have to confess I messed up, I installed the wrong version of Memcached for PHP on my OSX 10.8.5 machine. Basically I used
brew install php54-memcached
After using brew install memcached. My apache won't start up and then I realised I have PHP5.5 ... :(
UPDATE: I tried to remove php 5.4 which I think brew has installed as a dependancy which is causing a conflict. I did sudo rm -rf /usr/local/etc/php/5.4/
Restarted Apache but no cigar.
Any help would be appreciated I tried brew rm php54-memcached but obviously this was no help.
Thanks,
Stefan
Try using:
brew uninstall php54-memcached --force
More tips here.
Ok after hours of digging I think I found it...
Basically Brew had installed 5.4 alongside but changed something in 5.5, it might even have been the self installed PHP (not brew). When I switched the module in the http.conf to point to the 5.4 installation libphp5.so it worked and then when I switched it to the apparent 5.5 version it failed again.
So I just unlinked both and cleared it via homebrew and then effectively reinstalled PHP5.5 via homebrew.
Ideally the php.ini that is used by the Brew installation is the same as the one I was using before so that was nice when I got it back up and running.
I double checked to see if I needed to remove any old files. I only needed to remove the old 5.5 version folder.
One thing to that baffles me though is that when I went into http.conf to change the PHP module link I'm pretty sure it wasn't linking to the Brew version of my PHP5.5 installation but instead to "/usr/libexec/apache2/libphp5.so". This would suggest I was never using the brew version... I'm so confused.
Perhaps when I installed php5.4 by accident it change the bash path... either way everything looks in shape just now so fingers crossed.
Some points to help others:
I followed this to make sure I set it up right
I made sure to link http.conf to the Brew install libphp5.so
I made sure my LaunchAgents plist was the right one
I made sure to update the $PATH (no idea what that really does and welcome any explanations - I've always wondered)
I realise this is terribly formatted and a rambling, but I'm exhausted :)