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
I have been trying to install HTML_QuickForm2. I ran the command sudo pear install HTML_QuickForm2. Unfortunately it gives me error that is:
WARNING: failed to download pear.php.net/HTML_QuickForm2-, additionally the suggested version () is the same as the locally installed one.
install failed
When I checked the usr/share/php/ and usr/share/php/PEAR, I did not see that HTML_QuickForm2 is installed in this location. So, I retried but am getting same error. Additionally, I have installed PEAR recently, is there anything to configure in php.ini for PEAR?
P.S. I am using the OS Ubuntu 14.04.
I'm on Ubuntu 14.04 too and just installed it using sudo pear install HTML_QuickForm2-2.0.2
And it got installed at this location:
/usr/share/php/HTML/QuickForm2
Related
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.
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
How do I install a PHP extension from Github onto my server. I'm testing out PHP7 and wanted to install https://github.com/mkoppanen/imagick/tree/phpseven but there is no documentation on how to install it on linux.
Probably a newbie question but would really appreciate the help.
Thank you!
If you're using phpbrew you can use the ext install command, like so:
$ phpbrew ext install <provider>:<organization>/<repository> <tag|branch>
By example:
# install imagic from 'phpseven' branch
$ phpbrew ext install github:mkoppanen/imagick phpseven
# install xdebug beta (compatible with PHP7)
$ phpbrew ext install github:xdebug/xdebug XDEBUG_2_4_0beta1
# install phalcon framework from 'phalcon-v2.0.8' tag
$ phpbrew ext install github:phalcon/cphalcon phalcon-v2.0.8
# install php-ast extension from master
$ phpbrew ext install github:nikic/php-ast
PS: I do help to maintain the phpbrew project and I'm not saying this is the only way to achieve what you asked. But it's certainly one of the easiest ways to try extensions and php versions once you have your environment set up :)
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 8 years ago.
Improve this question
I have a big problem with my sites after migrate to new server. The only difference is in PHP version.
On old server I have: 5.3.3-7+squeeze15
On new server is: 5.3.3-7+squeeze17
Can I migrate from new version to older and how?
OS: Debian 6.0.8
To specify a specific version of a package to install:
sudo apt-get install <package name>=<version number>
Example:
sudo apt-get install php5=5.3.3-7+squeeze15
It may happen that this version is no longer installable, in which case you'd need to fetch it from the snapshot service, and install it via dpkg:
sudo dpkg --install <deb filename>
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
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 attempting to install the expect pecl extension.
OS version = 10.7.3
PHP version 5.3.10 installed via macports
expect version 5.45 installed via macports
The command I am executing:
sudo pecl -d preferred_state=beta install expect
fails with ld: library not found for -lexpect
The libexpect5.45.dylib file is located in /opt/local/lib
full output of the install command is here PASTEBIN
From what I can tell pecl just can not find the libexpect library, I even tried prepending
LD_LIBRARY_PATH=/opt/local/lib/expect5.45 and
LD_LIBRARY_PATH=/System/Library/Tcl/8.5/expect5.45 and
LD_LIBRARY_PATH=/opt/local/lib each location has an expect5.45.dylib file. It did not help.