This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
本脚本适用环境:
系统支持CentOS-5 (32bit/64bit)或CentOS-6 (32bit/64bit)
内存要求≥256M

将会安装:
1、Apache 2.4.3
2、MySQL 5.5.29
3、PHP 5.3.20 + ZendGuardLoader
4、phpMyAdmin 3.5.6
5、xcache 1.3.2 (可选)

如何安装:
第一步禁止SELINUX,运行
vi /etc/selinux/config
查看SELINUX=disabled的话则无需运行./disable.sh否则需要先运行./disable.sh再重启。

第二步,终端中输入以下命令:
cd /root
wget http://teddysun.googlecode.com/files/lamp1.1.tar.gz
tar -zxvf lamp1.1.tar.gz
cd /root/lamp1.1
chmod +x *.sh
./lamp.sh 2>&1 | tee lamp.log

安装其它:
1、建议执行脚本xcache.sh安装xcache 1.3.2。(命令:./xcache.sh)
2、执行脚本php5.3_oci8_oracle11g.sh安装OCI8扩展以及oracle-instantclient11.2(命令:./php5.3_oci8_oracle11g.sh
3、执行脚本php5.3_oci8_oracle10g.sh安装OCI8扩展以及oracle-instantclient10.2(命令:./php5.3_oci8_oracle10g.sh

备注2、3两者选其一执行即可可选。该脚本是为了使PHP可以连接Oracle数据库。若连接的数据库版本为10.2则执行3否则执行2。


使用提示:
lamp uninstall一键删除LAMP删除之前注意备份好数据。

程序目录:
mysql安装目录: /usr/local/mysql
mysql data目录/usr/local/mysql/data默认安装时可更改路径
php安装目录: /usr/local/php
apache安装目录 /usr/local/apache

命令一览:
mysql命令: /etc/init.d/mysqld(start|stop|restart|reload|status)
       或service mysqld(start|stop|restart|reload|status)
apache命令: /etc/init.d/httpd(start|stop|restart|reload|status)
       或service httpd(start|stop|restart|reload|status)

网站根目录:
默认web根目录 /data/www/default


最后,祝你使用愉快!
Description
Install LAMP (Linux + Apache + MySQL/MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu
Readme 4.4 MiB
Languages
Shell 87.5%
HTML 12.5%