Linux XAMPP FAQ stay here and make a memo.

Source: Internet
Author: User
Tags password protection phpmyadmin

<title>Linux XAMPP FAQ stay here and make a memo.</title> Linux XAMPP FAQ stay here and make a memo.1XAMPP Linux Frequently asked Questions

How do I install XAMPP?

Suod./xampp-linux-x64-5.6.3-0-installer.run--mode GTK  # Default is QT, I use the GNOME desktop

How does I start XAMPP?

Sudo/opt/lampp/lampp start
XAMPP:   starting Apache...fail. XAMPP:   Another Web server is already running
sudo service apache2 stopsudo sercice mysqld stopsudo sercice httpd stop
Sudo/opt/lampp/lampp start

How do I stop XAMPP?
To stop XAMPP simply call the This command:

Sudo/opt/lampp/lampp stop

How can I test that everything worked?
Type in the following URL at your favourite web browser:
http://localhost/xampp/index.php

Opened the goagent, has not opened, no wonder ...

is XAMPP production ready?

SUDO/OPT/LAMPP/LAMPP Security

What's the meaning of the error messages I see when starting XAMPP?

Lampp-apache is already running. An Apache daemon is already running.

The Lampp startup script did not start Xampp-apache because there are an Apache instance already running. To the start XAMPP properly, first you has to stop the This daemon.

Lampp-mysql is already running. A MySQL Daemon is already running.

Mostly due to the same reasons as the above error, the Lampp startup script found a MySQL daemon already running on your s Ystem. To the start lampp properly, you has to stop this daemon first.

Apache doesn ' t seems to start. What can I do?

Tail-2/opt/lampp/logs/error_log

If you get any error messages visit our Community pages to help.

*what do I do if the error message was "cannot restore segment prot after reloc:permission denied?" *

Sudo/usr/sbin/setenforce 0

After I rebooted my Linux box XAMPP stopped running! How can I fix this?
Debian, Ubuntu.

sudo ln-s/opt/lampp/lampp/etc/init.d/lamppsudo update-rc.d lampp Start 80 2 3 4 5. Stop 30 0 1 6.

RedHat, Fedora, CentOS. If your Linux distro uses "chkconfig" tool to install the services can run the following commands:

sudo ln-s/opt/lampp/lampp/etc/init.d/lamppsudo chkconfig--add lampp

Suse

sudo ln-s/opt/lampp/lampp/etc/init.d/lamppsudo chkconfig lampp 2345

How can I do my XAMPP installation more secure?

SUDO/OPT/LAMPP/LAMPP Security

Now your should see the following dialog on your screen:

Xampp:quick Security Check ... Xampp:your XAMPP pages is not secured by a password. Xampp:do want to set a password? [Yes] Yes (1) Xampp:password: ******xampp:password (again): ******xampp:password protection active. Please use ' lampp ' as user name! Xampp:mysql is accessable via network. Xampp:normaly that's not recommended. Does want me to turn it off? [Yes] yesxampp:turned off. Xampp:stopping MySQL ... Xampp:starting MySQL ... Xampp:the mysql/phpmyadmin User PMA has no password set!!! Xampp:do want to set a password? [Yes] Yesxampp:password: ******xampp:password (again): ******xampp:setting new MySQL PMA Password. Xampp:setting phpMyAdmin ' s PMA password to the new one. Xampp:mysql has no root passwort set!!! Xampp:do want to set a password? [Yes] yesxampp:write the passworde somewhere down to make sure you won ' t forget it!!! Xampp:password: ******xampp:password (again): ******xampp:setting new MySQL root Password. XAMPp:setting phpMyAdmin ' s root password to the new one. Xampp:the FTP password for user ' Nobody ' was still set to ' Lampp '. Xampp:do want to change the password? [Yes] Yesxampp:password: ******xampp:password (again): ******xampp:reload ProFTPD ... Xampp:done.

(1) Setting a password would protect the XAMPP demo pages (http://localhost/xampp/) using this password. The user name is ' lampp '!
After calling the This command your XAMPP installation should is more secure.

How does I activate Eaccelerator?
To activate Eaccelerator simply find the following lines in Your/opt/lampp/etc/php.ini:

, extension= "eaccelerator.so", eaccelerator.shm_size= "eaccelerator.cache_dir=", "/opt/lampp/tmp/eaccelerator"; eaccelerator.enable= "1"; eaccelerator.optimizer= "1"; eaccelerator.check_mtime= "1"; eaccelerator.debug= "0"; Eaccelerator.filter= ""; eaccelerator.shm_max= "0"; eaccelerator.shm_ttl= "0"; eaccelerator.shm_prune_period= "0"; eaccelerator.shm_only= "0"; eaccelerator.compress= "1"; eaccelerator.compress_level= "9"

How does I activate the oci8/oracle extension for PHP?
To activate the oci8/oracle extension for PHP please execute the following command:

Sudo/opt/lampp/lampp Oci8

The following dialog would start:

Please enter the path to your Oracle or Instant Client installation:[/opt/lampp/lib/instantclient-11.2.0.3.0]installing s Ymlinks...patching php.ini ... OCI8 add-on activation likely successful. LAMPP:   stopping Apache with SSL ... LAMPP:   starting Apache with SSL ...

Now the extension should is active.

XAMPP runs, but why is none of the images being displayed?
That's a special problem with some Linux systems. Please open your/opt/lampp/etc/httpd.conf and look for these-lines:

#EnableMMAP Off#enablesendfile off

Remove the # in both lines and restart your Apache. Your images should is back.

How does I backup/restore my XAMPP system?
Warning:the Backup and restore functionality is still under development.
You can create the backup by calling:

SUDO/OPT/LAMPP/LAMPP Backup

Or

SUDO/OPT/LAMPP/LAMPP Backup Secret

Where "Secret" is your MySQL root password. This command would create the following output:

Backing up databases ... Backing up configuration, log and Htdocs files ... Calculating checksums ... Building Final backup file ... Backup finished. Take Care of/opt/lampp/backup/xampp-backup-22-01-14.sh

The file/opt/lampp/backup/xampp-backup-22-01-14.sh (in the example above) contains your backup data. Store this file with a safe place.
The new machine is need the same version of XAMPP as on your original/source machine.

sudo sh xampp-backup-22-01-14.sh

You should see something like this:

Checking Integrity of files ... Restoring configuration, log and Htdocs files ... Checking versions ... Installed:xampp 1.4.2Backup from:xampp 1.4.2Restoring MySQL databases ... Restoring MySQL User Databases ... Backup complete. Have fun! Need to restart XAMPP to complete the restore.

Date:2015-01-20 12:19:56

Author:sunx

created:2015-01-20 Tue 12:57

Emacs 24.4.2 (ORG mode 8.2.10)

Validate

Linux XAMPP FAQ stay here and make a memo.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.