Linux XAMPP FAQ 留在这里做备忘

*/-->

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

pre.src {background-color: Black; color: White;}

Linux XAMPP FAQ 留在这里做备忘

XAMPP Linux Frequently Asked Questions

How do I install XAMPP?

suod ./xampp-linux-x64-5.6.3-0-installer.run --mode gtk  # 默认是qt,我用的是gnome桌面

How do I start XAMPP?

sudo /opt/lampp/lampp start
XAMPP:   Starting Apache...fail.
XAMPP:   Another web server is already running
sudo service apache2 stop
sudo sercice mysqld stop
sudo sercice httpd stop
sudo chkconfig httpd off

see: http://www.aboutlinux.info/2006/04/enabling-and-disabling-services-during_01.html

sudo /opt/lampp/lampp start

How do I stop XAMPP?
To stop XAMPP simply call 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

开了 goagent,一直打不开,怪不得...

Is XAMPP production ready?

sudo /opt/lampp/lampp security

What is 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 is an Apache instance already running. To start XAMPP properly, first you have to stop 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 system. To start LAMPP properly, you have 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 for help.

*What do I do if the error message is "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/lampp
sudo 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 you can run the following commands:

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

SUSE

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

How can I make my XAMPP installation more secure?

sudo /opt/lampp/lampp security

Now you should see the following dialog on your screen:

XAMPP:   Quick security check...
XAMPP:   Your XAMPP pages are NOT secured by a password.
XAMPP:   Do you 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. Do you want me to turn it off? [yes] yes
XAMPP:   Turned off.
XAMPP:   Stopping MySQL...
XAMPP:   Starting MySQL...
XAMPP:   The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP:   Do you want to set a password? [yes] yes
XAMPP:   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 you want to set a password? [yes] yes
XAMPP:   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‘ is still set to ‘lampp‘.
XAMPP:   Do you want to change the password? [yes] yes
XAMPP:   Password: ******
XAMPP:   Password (again): ******
XAMPP:   Reload ProFTPD...
XAMPP:   Done.

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

How do I activate eAccelerator?
To activate eAccelerator simply find the following lines in your /opt/lampp/etc/php.ini:

;extension="eaccelerator.so"
;eaccelerator.shm_size="16"
;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 do 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 will start:

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

Now the extension should be active.

XAMPP runs, but why are 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 two lines:

#EnableMMAP off
#EnableSendfile off

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

How do I backup/restore my XAMPP system?
Warning: The backup and restore functionality is still under development and may not work correctly.
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 will 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 in a safe place.
On the new machine you 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.2
Backup from: XAMPP 1.4.2
Restoring MySQL databases...
Restoring MySQL user databases...
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.

时间: 2024-08-06 06:21:05

Linux XAMPP FAQ 留在这里做备忘的相关文章

jdbc中对mysql数据库操作的简单封装--(仅做备忘记录)

本次使用jdbc中的mysql-connector-java-5.1.47-bin.jar的连接包,下载这个jar包放在javaee项目的WEB-INF/lib目录下,再把它作为外包jar包进入到libraries中,这样就可以使用mysql的jdbc接口了. 自己封装的代码中引入了两个自己字义的Exception:SqlSecureException.java package com.myproweb.exception; public class SqlSecureException ext

Linux学习笔记 之 小知识备忘

linux中输入ls -F后,后缀*/=>@代表什么意思ls -F 在每个文件名后附上一个字符以说明该文件的类型,"*"表示可执行的普通文件:"/"表示目录:"@"表示符号链接,软链接:"|"表示FIFOs: $: $在终端的命令行首代表:普通用户.#代表root超级用户.$在脚本语言中常表示变量,也就是$var 代表一个变量. Linux中常用参数含义 -r: recursive        递归复制目录及其子目录内

关于linux用户管理各命令的备忘

这算是51CTO博客上的第一帖,先贴上笔记,然后慢慢来详解: 理一下后续的思路: 1.命令的用法 2.命令使用的场景 3.如果善于使用这些命令,提高系统的安全性. 用户管理和权限管理基础知识: 基本是基于3A原则(Authencattion/Authorzation/Accounting)认证/授权/审计或记账 Linux系统的用户认证一般采用用户名+密码方式. 用户:用户名/UID 每个用户都有一个唯一的UID 用户的UID:0-65535 管理员UID:0 普通用户:1-60000 系统用户

Linux网络编程之epoll知识点备忘

首先是关于IO多路复用的基础概念: select,poll,epoll都是IO多路复用的机制.I/O多路复用就通过一种机制,可以监视多个描述符,一旦某个描述符就绪(一般是读就绪或者写就绪),能够通知程序进行相应的读写操作.但select,poll,epoll本质上都是同步I/O,因为他们都需要在读写事件就绪后自己负责进行读写,也就是说这个读写过程是阻塞的,而异步I/O则无需自己负责进行读写,异步I/O的实现会负责把数据从内核拷贝到用户空间. 关键要了解阻塞非阻塞.同步异步之间的关系与区别,然后对

知识点--单做备忘,基础要扎实才行

body有默认的8px-margin; <!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head> <body> <div id="div1"> <div id="div2"> <div id="div3&qu

Linux搭建SVN服务器极简备忘

1.   yum install subversion #安装svn 2.   groupadd svn #为运行svn设置专用的用户组,非必须操作,但推荐 3.   useradd -g svn svn #为运行svn设置专用的用户,非必须操作,但推荐 4.   passwd svn #为运行svn专用用户设置密码,非必须操作,但推荐 5.   mkdir -p /var/svn #建立/var/svn,作为集中存放repo的根目录 6.   chgrp svn /var/svn;chown

linux shell if 指令参数【备忘】

转载:http://zhidao.baidu.com/link?url=th2hdLX2aijSiiOJJStShdBmfoxNQSTzKM12rFW6IqlL93uijQ7jMkK8V9fEFuuOp5Ni1VxKRapzFvCgCWozKa 文件比较运算符-e filename 如果 filename存在,则为真 [ -e /var/log/syslog ]-d filename 如果 filename为目录,则为真 [ -d /tmp/mydir ]-f filename 如果 filen

Linux集群监控常用命令-备忘

1.load average top uptime 2.CPU利用率 top 1多核CPU查看 Shift+H  用线程查看 -p 指定查看的进程 top | grep Cpu 3.磁盘剩余空间 df -h 按单位格式输出 du -h 按单位格式输出 4.网络traffic sar -n DEV 1 1 -n 汇报网络状况 DEV 查看各个网卡网络流量 n 间隔秒数 n 总共取几次 5.磁盘I/O iostat -d -k 6.内存使用 free -m 以MB为单位 -g 以GB为单位 vmst

备忘:CSS术语词汇表——张鑫旭

一.叨点什么 写文章的时候经常用到一些CSS方面的专业词汇.但是毕竟芳华年少不在,脑袋有点秀逗了,很多名词都记不住,这种感觉比厕所便秘还难受.比如今天居然记不起来公司公认脸蛋最pp的同事的名字,没想到我会记不住美女的名字.我觉得我背后一阵萧瑟的秋风吹起,自己俨然成了漫画里面的程序猿—— 某天闲逛到nimbupani,发现有专门展示CSS术语的文章,哇咔咔,感觉好像咬到一口正宗的高邮咸鸭蛋一样,不过人家的是英文,所以我还要本地化润饰处理,然后,就可以留给自己备忘的哈,的说. 二.CSS词汇我来也