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,
I installed php-7.2.1 on CentOS 6.9 and both # php -v and directadmin say it's 7.2.1. The System Information window in directadmin says:
Apache 2.4.29 Running
DirectAdmin 1.52.1 Running
Exim 4.87 Running
MySQL 5.5.31 Running
Named 9.8.2rc1 Running
sshd Running
dovecot 2.2.25 (7be1766) Running
pure-ftpd 1.0.42 Running
Php 7.2.1 Installed
However apache is using still the previously installed php version php-fpm56.
How do I make apache use the newer php version? Should I delete previously installed php-fpm56 package before attempting to install the newer one?
Update your php-fpm
yum install php72w-fpm
Then Restart your Apache
sevice httpd restart
I am currently working in PHP in my localhost. I have php version 5.5.9-1, apache2 version 2.4.7, and Mysql Ver 14.14 in my Ubuntu 14.04.
But how to check whether I am using LAMP or XAMPP?
I tried typing "lamp" and "xampp" in terminal. But it shows "command not found". Should I come to the conclusion that these things(apache, mysql and php) were installed seperately?
In my case I have installed XAMPP for Linux (LAMPP) in Ubuntu 18.10
How can you know it?
Try to go to /opt/lampp
If you can, it means Xampp for Linux it's installed, but if you want to know the version, in the same path of step 1, put in your command line ./xampp status
You will know XAMPP for Linux version and Apache, MySQL and ProFTPD status (running or not).
Know PHP version
cd /opt/lampp/bin
./php -v
Know MySQL (MariaDB) version
cd /opt/lampp/bin
./mysql --version
Know Apache version
cd /opt/lampp/bin
./apachectl -v
I hope helps somebody
./xampp status image
You have to understand this :
1) LAMP
For LAMP setup, you have to install PHP, Apache and Mysql packages separately. In LAMP you don't get anything to manage your server in GUI way.
For Ex: To start apache server you have to type command in terminal.
To start apache : sudo service apache2 start
For installing LAMP refer :
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
2) XAMPP
It is a complete package which comes bundled with PHP,Apache, Mysql etc in a single installation. It gives you a control panel from which you can manage your server and configuration files.It is something of this sort.
For XAMPP : https://www.apachefriends.org/download.html
If you don't find xampp control panel in your system, this means you have a LAMP setup. i.e : first option.
The lamp package installs apache, mysql and php separately.
In ubuntu you should have the apache installed on /etc/apache2
the mysql installed on /etc/mysql
and the php installed on /usr/share/php
If you are developing you can use PHP's built-in server.
Try:
xampp -v
If xampp is installed it will display the version else its not installed.
According to their documentation here in order to run PHP scripts with uWSGI the uwsgi php plugin should be installed. However their documentation point only how to do it on Ubuntu 10.04, not hints at all on how to install it on 12.04. There is a package for 13.10 which does not work in our case.
Did somebody else solved it somehow and brought this plugin up and running on a 12.04 system?
I have dedicated virtual server CentOS 6.3 and Parallels Plesk Panel 11.0.9 on it. And I need PHP accelerator installed on that VM. So my question is is that possible to install any PHP accelerator within Plesk? Or should I have SSH access to the VM?