I have a web server running on virtual machine Debian 10 (Buster)
I need to upgrade the PHP 7.0.33 to PHP 7.1 or higher, and as you know, debian buster already has PHP 7.3 ready to be installed.
the problem is when i try to sudo apt-get install php7.3-cli or any other php extension it asks me to remove local custome packages which are essential for the web server becase they depends on the old php version.
I tried to do sudo apt-mark hold <custom_package>, but it is still asking me to remove them and preventing me from upgrading/installing the new php version.
How to fix this issue?
Am i doing something wrong?
the reason for upgrading the php is that the upgraded version of web server content requires php version to be 7.1 or higher, i even tried to neglect this platform check, the web server worked but with issues which make the server unfuntional.
Sorry, i'm new to this and just trying to resolve the problem.
Regards,
Related
I have a fresh ubuntu server installed with virtualmin. It autoinstalls Php version 7.2, I need 7.4. So I install 7.4. When I check the version with -v it shows 7.4. However, webmin and wordpress both still see and use only 7.2. I've tried uninstalling 7.2 but the command fails and tells me that module doesn't exist when I can show it in the list of installed versions in ssh. Its just not showing up as an option in virtualmin when I go to change the php version. Only showing 7.2.
Any advice on where I should be looking to resolve this? I'm feeling stumped. Thanks!
You can try with below command :
sudo update-alternatives --set php /usr/bin/php7.4
For more details you can refer below link as well :
https://hackthestuff.com/article/how-to-change-php-version-from-command-line-in-ubuntu
The right way of changing PHP version for the given virtual server in Virtualmin is done using Server Configuration ⇾ PHP Options page.
Using update-alternatives command will change default PHP (CLI) version system-wide. It won't be applied to virtual-servers.
You may find our Virtualmin Community forum helpful.
I have a test server running Ubuntu 16.04. I managed to compile PHP 7.2.2 with ZTS from source and installed PThreads on it.
Now, how do I proceed with further setting up PHP without damaging my installation? If I try to install, let's say PHP Curl or Apache's PHP 7.2 module, Ubuntu wants me to install php7.2-common, etc. which would overwrite my current installation.
Is there a safe way to install additional PHP modules and hook up PHP with Apache2?
Thank you in advance!
I wanted to upgrade my CentOS 6.9 Server from PHP 5.3.3 to 5.5.38 via remi repo it all worked well and I also get PHP 5.5.38 when I type in "php -v" but now that I am on that version I can't use any MySQL on my Site anymore, the new php-mysql Package is installed but its now called php-mysqlnd.
I already fixed all my MySQL 5.5 Errors by doing mysql_upgrade -u root -p
and resetting the password but it still won't work
It's a VZ Server. And I have the Parallels Power Panel but not the Plesk Panel
I also restarted mysqld and apache2 (httpd) I even tried apachectl vs. service httpd but I still don't get a working php-mysql on my Server
Adresses BLOCKED-IP - letoria.net (The Domain is a cached Cloudflare Site)
I hope someone can help me.
You should update your Worpdress installation, but not yet - you don't really want to be doing that at the same time as all the other changes. For now, get your current system back running by adding a mysql extension shim (I quite like the one at https://www.dotpointer.tk/mysql/) as an auto-prepend.
I recently switched to a new Ubuntu 16.04 web server (on GCE) from an Ubuntu 14.04 server. I moved across a few Ruby on Rails projects that run on nginx and postgres with few problems. I now have two legacy CakePHP 1.3 apps to move over to the new server, but I am running in to PHP and MYSQL problems.
The old server was Ubuntu 14.04 running PHP 5.5 and MySQL 5.5.
Ubuntu 16 runs PHP 7, but since I read that CakePHP 1.3 won't work on PHP7, I have downgraded to PHP 5.6.
But, I am still getting this error "PHP message: PHP Fatal error: Call to undefined function mysql_query()"
Is this because I am running mysql-5.7? Or is it still a problem with my PHP 5.6 installation?
I can get phpinfo to run. Here is a screenshot of the top of the result.
Somewhere along the way of downgrading PHP from PHP 7 to PHP 5.6 I missed a few php5.6 packages. I did the following:
sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
sudo service nginx restart
Now the old cakephp1.3 site is working fine on Ubuntu 16.
Also, note that since I am running CakePHP through nginx instead of the standard Apache setup, I needed to customize my nginx configuration specifically for CakePHP.
I'm running on php 5.2.6 on my development server and need to install phpMyAdmin. However, when I install phpMyAdmin, it updates my php to 5.3.x and that causes my website to break... Been looking online but haven't found anything that will install phpMyAdmin but leave alone the php version.
Anyone know how to install phpMyAdmin without upgrading php automatically? Leave php version alone, just install the phpMyAdmin on Linux Fedora 14.
You can just download it from here. Don't use yum to install this package.