after installing php5.2.6 php info won't show - php

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

Related

"symbol not found in flat namespace '_PHP_MD5Init' " Error encountered in loading redis dynamic library

Tried upgrading to PHP 8.1.8 and then made changes to php.ini file for "extension_dir" but it's giving me the above error.
I do not understand how to resolve this. can Anyone help me out here?
Okay, so I'm new to PHP and had to figure out understanding the error for quite a longer time than required.
The problem was basically I had uninstalled redis extension (through pecl) and simply installed redis again using brew.
So then, I installed redis extension through pecl using arch -arm64 sudo pecl install redis and was good to go.

Failed when installing pdo via pecl

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.

How to enable fastcgi on Yosemite with PHP 5.5.14

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

Many DLLs missing when installing composer (windows)

I'm trying to install composer on my computer but I get many errors about missing some DLLs. I've downloaded some of them but I cannot find any website, where to download libsybcomn64.dll. However, I don't think downloading each DLL from internet is a good solution.
I'm using Windows 7 x64 and have Apache 2 and PHP 5.6.9 installed - simple PHP works.
I've solved it myself.
And I'm really stupid. Problem was that when installing PHP I uncommented all extensions in php.ini - I thought the more there is, better. So I reset that whole file and uncommented only the necessary - php_pdo_mysql.dll and php_openssl.dll. Now it works.
Hope this will be helpful for someone...

Uninstall Memcached PHP 5.4 (Installed by Brew)

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 :)

Categories