did anyone know why lampp stop(can't auto run on boot) after update and install rpm-gpg-key-centos-7? normally after install centos and install bitnami xampp for linux and set it run on boot, the web server should active. and it does.
but after update and install key (rpm-gpg-key-centos-7) the apache and mysql can't run on boot time.
it never happend before. thanks for advice.
OS centos 7 64 bit (server with GUI)
lampp bitnami 5.6.8 64 bit
Related
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.
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 am trying to install xampp on linux mint 32 bit OS. I downloaded xampp from here. And I got a xampp-linux-1.8.3-5-installer.run file. I tried to run that file but its showing me error. Can anyone help me to install xampp in my linux mint.
I am a noob in linux and I'm using it for the first time. I found some linux commands to install xampp. But it didn't help me well.
Without knowing the exact error, you will find a guide Here on how to install Apache, Mysql and PHP on Ubuntu which uses the same install commands as Linux Mint.
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.