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 1 year ago.
Improve this question
I a2enmod php7.4 and a2dismod php7.3 on apache & Ubuntu and my Wordpress sites stopped working saying cannot connect to database.
Upon further investigation through phpinfo mysqli is not enabled with php7.4. If I reenable php7.3 then mysqli is enabled, switch back to 7.4 and nothing.
I have tried looking at php.ini and adding:
extension=php_mysqli
extension=php_mysqli.so
No change.
I have tried running sudo apt-get install php-mysql and it says it is already installed.
I have tried running sudo apt-get install php7.4-mysql and it says that doesn't exist.
Does php7.4 not support mysqli at all?
OK I've found it.
Need to add repository: sudo add-apt-repository ppa:ondrej/php
Then sudo apt-get install php7.4-mysql
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 needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
(Please note I am completely new to this, don't be mean)
I have a laptop (running a clean install of Ubuntu), how can I set up a local testing server that any computer on my network can access? It has to be SQL and PHP capable
Ok So You want to setup Localhost with apche2 , mysql and phpmyadmin ?
First install apache2 using command line
sudo apt-get install apache2
then install php and other stuffs
sudo apt-get install php5,php5-cli,php5-mysql,php5-curl
Now you need to install Mysql server
sudo apt-get install mysql-server
This will ask username and password for mysql server
then install phpmyadmin
sudo apt-get install phpmyadmin
Provide mysql credential while installing and here you go .. :-) .
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 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
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