【xampp LINUX版】

回复 收藏

基本使用教程:http://blog.csdn.net/jaimejth/article/details/5669089

卓码线上部署:

必看文件 :cat /opt/lampp/properties.ini

[General]

installdir=/opt/lampp

base_stack_name=XAMPP

base_stack_version=5.6.15-1

base_stack_platform=linux-x64

base_stack_service=

require_root_privileges=1

[Apache]

apache_server_port=80

apache_user=daemon

apache_group=daemon

apache_server_ssl_port=443

apache_root_directory=/opt/lampp

apache_htdocs_directory=/opt/lampp/htdocs

apache_domainname=127.0.0.1

apache_configuration_directory=/opt/lampp/apache2/conf

[MySQL]

mysql_port=3306

mysql_host=localhost

mysql_root_directory=/opt/lampp/

mysql_binary_directory=/opt/lampp/bin

mysql_data_directory=/opt/lampp/var/mysql/

mysql_configuration_directory=/opt/lampp/etc

mysql_arguments=-u root -S "/opt/lampp/var/mysql/mysql.sock"

mysql_socket=/opt/lampp/var/mysql/mysql.sock

[PHP]

php_binary_directory=/opt/lampp/bin

php_configuration_directory=/opt/lampp/etc

php_extensions_directory=/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226

php配置文件 :/opt/lampp/etc/php.ini

apache配置文件:/opt/lampp/etc/extra/httpd-vhost.conf

sll配置文件 :/opt/lampp/etc/extra/httpd-ssl.conf

php 启动文件 : /opt/lampp/bin/php

phpize文件 : /opt/lampp/bin/phpize

php-config文件:/opt/lampp/bin/php-config

安装php扩展包

/usr/local/php/bin/php -m #查看已经加载的php模块

#安装redis扩展模块案例

cd /usr/local/src

wget https://codeload.github.com/phpredis/phpredis/zip/develop

mv develop phpredis-develop.zip

unzip !$

cd phpredis-develop

/opt/lampp/bin/phpize

#出现以下错误

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

#安装

yum install -y autoconf

/opt/lampp/bin/phpize    //再次执行

./configure --with-php-config=/opt/lampp/bin/php-config

make

make install

#相看扩展模块存放目录 , 也可以在php.ini自定义目录路经

/usr/local/php/bin/php -i |grep extension_dir

ls /usr/local/php/lib/php/extensions/no-debug-zts-20131226

vim /opt/lampp/etc/php.ini  //增加一行配置

extension = redis.so

/usr/local/php/bin/php -m | grep redis

#结果出现redis表示成功

2018-03-25 16:33 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: