I have installed PHP 5.3.3 on my machine without pear.
But now i want to install on my machine without removing the existing configuration.
In there any way to manually update PEAR without go-pear.bat on windows ?
THANK YOU ALL
copy pear lib in your system from old installation
you use PHP ? or wamp or xampp ?
Related
This question already has answers here:
Tell Composer to use Different PHP Version
(26 answers)
Closed 1 year ago.
I have composer installed on windows 8.1. I use it to download drupal distributions and modules. I have also installed acquia dev desktop. As you know that dev desktop comes with different versions of php and it has separate folders for it. I have setup composer to use php 5.6. How can I make it use php 7?
Should I uninstall composer and install again or what?
IF you have multiple php version installed in your system
you can run composer with different versions like
In linux
PHP
usr/local/php usr/bin/composer install
for PHP 7.1
usr/local/php7.1 /usr/local/composer install
actually the idea is which version you wants to run get its bin path and then run the composer.
In Windows.
path/to/php.exe composer install
Hope this helps
If you just want to ignore the php version dependency then you can use this -
--ignore-platform-reqs
Example:
composer require symfony/css-selector --ignore-platform-reqs
This way you don't have to edit Environment variables(windows os) or using any full path of php etc. This very useful when I use different php lib from github which requires different php version set in my windows Environment variables though I have all PHP versions in my WAMP server so it will not be any problem running those lib after installing.
In my case worked with this:
ea-php72 /opt/cpanel/composer/bin/composer update
I using macOS High Sierra version 10.13.1
I want to install two xampp in my Mac (xampp 7.0.27 and xampp 7.1.13)
First, I had install xampp 7.0.27 in my Mac and it works. It's stored in /Applications/XAMPP
Second, I try to install xampp 7.1.13 in my Mac. Seems it's failed. Because it's stored in /Applications/XAMPP too. Does not seem to be custom the path
How can I solve this problem?
A not-so-pretty solution that works:
Install the first XAMPP version and then rename
/Applications/XAMPP to something like /Applications/XAMPP-7.0.27.
After that, install the second XAMPP version and then rename
/Applications/XAMPP to something like
/Applications/XAMPP-7.1.13.
In order to run the preferred version just rename it back to /Applications/XAMPP and run the manager-osx.
I tried to install Phabricator on windows 8 with WAMP Apache Server.
As per the below link I installed Arcanist and confirmed with the comment
arc -v
https://secure.phabricator.com/book/phabricator/article/arcanist_windows/
Next I try to access the Phabricator page on my localhost, I can see only the .sh for Linux, Nothing for windows. Please guide me if you installed successfully on windows.
http://localhost/phabricator/scripts/install/
Use below steps to setup phabricator/arc cli on windows box.
Download & Install Git Bash.
It needs PHP, if you don't have PHP installed on machine then you use XAMP or WAMP. Find the installation directory for PHP and set system path for that.
Open command prompt and test the php installation by writing php command. If it does not show any error then you can skip step-4.
In case of MSVCR100.dll missing error. download the exe file from here: http://www.microsoft.com/en-in/download/details.aspx?id=30679 and install it.Once again test php installation.
Use Git Bash to do following:
Clone below repos somewhere:
git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
Again update system path similar to step 3 and add there : <path>\arcanist\bin
Test arc help command in Git Bash.
Install Phabricator server certificate using arc install-certificate command.
Add an editor by following https://secure.phabricator.com/book/phabricator/article/arcanist_windows/
You cannot install Phabricator on Windows. However, you can install it on a Virtual Box such as Oracle VM VirtualBox which is free. Once you have VirtualBox, you need to create a Virtual Ubuntu there. After installing Ubuntu on VirtualBox you can install Phabricator there, on Ubuntu, by following the instructions.
If you need more help with details and whatnot, I will gladly help you.
The Phabricator server does not support Windows. See the Install Guide:
To install the Phabricator server software, you will need an operating system ... which is not Windows. ... [T]he server software does not run on Windows. It does run on most other operating systems, so choose one of these instead:
I was installing the Moodle on my machine and faced a problem of requirement of Greater version of PHP which is not available in present version in wamp.
So couuld anyone suggest me: How can we upgrade PHP in present available wamp installed in Windows ?
You download the addon you want from WampServer addons, and execute it. It will add a context menu entry in WampManager letting you choose between the different installed PHP versions.
Read this article.
Just backup your data
Uninstall WAMP
Install new WAMP
or download this executable and execute it
I am using a Debian squeeze server. I have installed PEAR using aptitude install php-pear. This created a directory /usr/share/php/PEAR.
I installed some PEAR packages including Phing. I installed the Phing files using pear install --alldeps phing/phing and the files showed up in /usr/share/php/phing.
But shouldn't PEAR packages (under normal circumstances) be put in /usr/share/php/PEAR? When I run
pear config-get php_dir
I get "/usr/share/php". Have I got something configured wrong?
/usr/share/php/
is correct for Debian.
/usr/share/php/PEAR
itself contains classes for PEAR itself.
The reason for using /usr/share/php is that the pear CLI tool is an installer that installs libraries (or applications) for PHP - choosing php is thus correct.
Yes, that is the correct directory on Debian, and Ubuntu.
Regardless of which O/S you are using, you can find the correct install directory by running: pear config-get php_dir via a console. And you get full directory path.
For example, with XAMPP application on Microsoft Window you have to go to XAMPP installation directory path <<XAMPP Installation folder path>>/bin and use ./pear config-get php_dir which lead to execute the binary file using current location and do the same job.
in case php is installed in /usr/local/php
pear is here:
/usr/local/php/lib/php
I am using Mac OSX Lion.
I installed pear in /usr/lib/php/pear
So the data also be installed there.
On my installation of Debian PEAR is located here:
/usr/local/lib/php
Just throwing this out there, in case you have pear installed in a round-about way:
cd /
find . -type d -name pear
For example, I was using MAMP on one of my local machines and it was in a really weird place.
On my 64-bit Ubuntu system, the pear packages are installed to /usr/share/php/PEAR/,
but I do not know how to change the pear install path. Maybe you can configure this somewhere.
If you're using CPanel to install them they're much likely to be located in
./opt/cpanel/ea-php{VERSION}/root/usr/share/pear