lamp编译安装
来源:互联网 发布:极限挑战网络直播 编辑:程序博客网 时间:2024/05/22 06:51
对于公司里面开发的虚拟机上,往往是共享的,因此,所安装的软件一定要与别人的隔离开,不能影响到其它的同类型软件。
./configure --prefix=/home/xinlong/php --with-apxs2=/home/xinlong/apache/bin/apxs --with-mysql=/home/xinlong/mysql --with-config-file-path=/home/xinlong/php/etc
apache编译参数:
configure --prefix=/home/xinlong/apahce
httpd.conf中要添加
ADDType application/x-httpd-php .php
ADDType application/x-httpd-php-source .phps
mysql编译参数:
./configure --prefix=/home/xinlong/mysql --enable-assembler --without-debug --with-mysqld-ldflags=-all-static --enable-thread-safe-client --with-charset=utf8 --with-extra-charsets=all --with-unix-socket-path=/home/xinlong/mysql/tmp/mysql.sock --with-mysqld-user=lucien --sysconfdir=/home/xinlong/mysql/var/my.cnf --localstatedir=/home/xinlong/mysql/data
还要在源码中拷贝 my.cnf到mysql/var/中
进入apache/conf,mkdir sites-enabled
在httpd.conf 中添加Include conf/sites-enabled/*
在sites-enabled中可以添加自己的虚拟主机文件,如vim phpmyadmin
Listen 8080
NameVirtualhost *:8080
<VirtualHost *:8080>
DocumentRoot "/home/xinlong/phpmyadmin"
servername locahost:8080
<Directory "/home/xinlong/phpmyadmin">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
- LAMP 安装编译参数
- CentOS编译安装lamp
- Linux编译安装LAMP
- lamp编译安装
- CentOS编译安装lamp .
- LAMP 编译安装
- 编译安装lamp详解
- Linux编译安装LAMP
- centos编译安装lamp
- 编译安装lamp环境
- linux编译安装LAMP
- LAMP漫长编译安装
- lamp环境编译安装
- 编译安装lamp环境
- 编译安装lamp
- 编译安装LAMP(一)
- lamp编译安装
- 源码编译安装LAMP
- 继承-虚函数-作用域
- JSTL-核心标签库
- arm spinlock
- tomcat配置压缩JS代码
- 全排列递归算法
- lamp编译安装
- POJ 1459 基本输入题&&英文阅读题
- SVN命令行同步更新
- 性能分析工具 oprofile
- C++中的共用体(union)结构解析与结构体(struct)共用体(union) 的区别
- Tomcat连接池配置
- InstallShield制作打包程序详解(图)*推荐*
- 内存泄露总结
- linux kill 命令的使用