Installing new PHP version for MAMP on Mac [closed] - php

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I tried to install the PHP extension libraries for MongoDB, however updating the php.ini files caused some problems and caused the MySQL servers on my localhost to not start. I use MAMP, but when I start it now, Apache loads but MySQL doesnt and I can't load any web pages.
So I downloaded the same version of PHP from http://php-osx.liip.ch/ to reinstall PHP and I'm now trying to update the right files on my system so that this is the version that is used.
I've updated the path in the terminal (using export PATH=/usr/local/php5/bin:$PATH) and now get the newly installed version there when I run php -v.
But when I run phpinfo, I still get the old version. I still can't load any localhost web pages or phpMyAdmin.
Thanks very much for help figuring this out! I'm a front-end developer without a lot of backend experience.

The best way to install PHP on a Mac is to use Mac Ports.
This community make the repository up to date and give you the choice between PHP 5.3, 5.4 and even 5.5.
When you'll have port installed, install php5.4 (or another one) and pecl :
sudo port install php54 php54-pear
Then, use pear to add MongoDB support:
sudo pecl install mongo
Some links:
Installing Mac Ports
How to install MongoDB for PHP on Mac OS X

Related

How to install phalcon framwork? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 months ago.
Improve this question
It is the first time to use phalcon framwork .I followed the tutorials on the internet to install and It was easy but It fails and I can't run phalcon framework.
Can anybody help me?
my php version is v 7.4.25
Another question:
what is the difference in phalcon versions (ts-nts)?
For Windows 10, to install Phalcon 4.1.2, you must:
Download and install XAMPP version 7.4.29;
Download and install the extension Php-PSR 1.0.0 TS (XAMPP uses TS [Thread Safe]);
Download and install Phalcon 4.1.2 TS.
You can find the full instructions here. In Windows you do not need to compile anything.
The last stable release of Phalcon is version 4.1.2 and it supports up to PHP 7.4, but does not support PHP 8. The Phalcon dev team are working on Phalcon 5.0 and that release, which will support PHP8, which is currently available as a "release candidate". They hope to have the final release out in a few weeks.
In order to get the version 4.1.2 of Phalcon installed on our Ubuntu Linux (20.04 and 22.04) server, we had to compile from source.
You can find the commands compile from source for Linux servers here:
https://docs.phalcon.io/4.0/en/installation#compilation

php_ibm_db2.dll extension for PHP7 on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm having a hard time finding a php_ibm_db2.dll extension for PHP7 on Windows. The most recent version on https://pecl.php.net/package/ibm_db2 is from April 2016, so naturally it doesn't work. I've tried downloading a trial of Zend Server 9.1 and using the bundled php_ibm_db2.dll file in a non Zend Server WAMP stack, but no luck (both for 32 and 64 bit versions).
Has anyone successfully connected to a remote IBM DB2 instance from a non Zend Server WAMP stack using PHP7 and the db2_*() functions? If so, any advise/suggestions?
Note*: DB2 connect is installed, configured and connecting fine on the Windows machine I'm working on. I would imagine ODBC via PHP would work as well, but I need to use the db2_*() functions to connect.
The pecl repository isn't compiling the dlls anymore, the latest is 1.9.9 for php 5.6 :(
I compiled to myself the ibm_db2 2.0.5 for php 7.1.17
Remember: Install Ibm db2 ds drivers an add {ds_drivers_instalation_dir}/bin to Path env variable.
PECL is not generating DLLs from 7.x hence we have generated DLLs for all 7.x version and uploaded same in github directory. So any user can download specific version DLLs from link as per their requirement and can use it.
1) Download the php_ibm_db2 DLLs for PHP 7.x(7.0, 7.1, 7.2) from below link.
https://github.com/ibmdb/php_ibm_db2
As of now (x64) DLLs for PHP 7.2 and PHP 7.3 are available. We will upload x86 DLLs soon.
2) For PHP 5.x, Download the DLL from Pecl itself. Pasted the link below.
https://pecl.php.net/package/ibm_db2
Blog to install and compile PHP ibm_db2 for Linux and windows is pasted below.
https://www.ibm.com/developerworks/community/blogs/96960515-2ea1-4391-8170-b0515d08e4da/entry/Install_PHP_ibm_db2_Driver?lang=en

Wamp on Raspberry Pi [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
For a school project, I need to install a server with Wamp but I need to have access everywhere so maybe is it possible to install it on my Raspberry. So is it possible and if is it how ?
Thanks you so much for your help
WAMP (Windows, Apache, MySQL, PHP) is windows only and I do not think the Pi can run Windows (maybe Windows RT, but WAMP is compiled for X86 not ARM). It can run a LAMP (Linux, Apache, MySQL, PHP) stack and installation depends on your distribution. For Raspbian it would be something along the lines of (typed in the terminal):
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
apt-get install php5 php-pear php5-mysql
You would have to install windows on a raspberry pi which I don't think would work to well.
You could just use Lamp, Linux, and SSH to access it anywhere which is basically the same thing.

installing PHP with LAMP server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install LAMP on my Ubuntu 12.04, from the method shown in this link. After running the following code
sudo apt-get install php5 mysql-server apache2
I should have php installed, but when i type "localhost/info.php" it does not show the PHP window that it is supposed to show, instead the file gets downloaded in the Downloads folder
Any help would be appreciated
Restart the apache.
sudo service apache2 restart
I would recommend you to install the packages in a different order:
sudo apt-get install apache2 php5 mysql-server
I mean , install first apache so when php is installed then will automatically enable the mod_php apache module. But because you installed the php5 package first may be the mod_php is not yet enabled. Just double check that.

phpmyadmin offers the file for download instead [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a problem: on my server phpmyadmin doesn't work anymore.
it offers the file db_structure.php for download instead of parsing it .
once downloaded it has 0KB
I already removed it with atp-get purge and reinstalled it, but still the same
what could be wrong?
maybe a module missing that phpmyadmin is using? cause all other php files work on my server
I had same problem.
Try following command. This is solved my problem.
sudo apt-get install libapache2-mod-php5
In general, download instead of running is caused by not installed/enabled php module.
You may also enable the php apache module using:
sudo apt-get install php
sudo a2enmod php
I found out the reason:
i had the beta version of googles spdy:// protocol included on my server and this caused the error.
i disabled it in
/etc/apache2/mods-enebled/
and everything went fine again

Categories