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
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
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
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.
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.
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
Could some one tell me how to uninstall PHP completely from Ubuntu? I have problems with installing MySql because of this. There seem to be some unmet dependencies. I think I messed up with the whole installation procedure. Could someone help me with this problem?
This is not a easy way to answer. First we have to know how to installed the PHP at first place.
But for every way, this must work.
Search what kind of package you have installed using
aptitude search php5
and remove them accordingly using purge command
sudo aptitude purge php5-package1 ...so on
I don't use Ubuntu, but: sudo apt-get remove php* should work.
sudo apt-get remove --purge
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 11 years ago.
Improve this question
I need to install a version of PHP that has been compiled to work with Postgres, unlike the default version that came with my Mac Leopard system. How can I do this without somehow disabling the httpd.conf and php.ini files or confusing the system due to having so many of them?
I used homebrew to do this:
brew install https://github.com/adamv/homebrew-alt/raw/master/duplicates/php.rb --with-mysql --with-intl --with-apxs2=/usr/sbin/apxs --enable-cli --enable-mbregex --with-pgsql
this shouldn't replace the existing php.ini file, but if you want to be careful, you can make a copy first. it doesn't affect httpd.conf
more detailed explanation
MacPorts creates an entirely separate install tree for its packages:
sudo port install php5-postgresql
will install everything you need. Your php.ini, for example, will be in /opt/local/etc/php5/php.ini.
Get MacPorts from here: MacPorts