Linux下环境[LAMP]搭建教程

本文详细介绍了系统环境部署及调整的关键步骤,包括软件源代码包存放位置、系统环境配置等,确保系统的稳定运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、系统约定

软件源代码包存放位置:/usr/local/src
源码包编译安装位置(prefix):/usr/local/software_name
脚本以及维护程序存放位置:/usr/local/sbin
MySQL 数据库位置:/var/lib/MySQL(可按情况设置)
Apache 网站根目录:/home/www/wwwroot(可按情况设置)
Apache 虚拟主机日志根目录:/home/www/logs(可按情况设置)
Apache 运行账户:www:www

二、系统环境部署及调整
1. 检查系统是否正常
  1. #>
    1. #>
    2. #>
    3. #>
    4. #>
    5. #>
    6. #>
    7. "--with-pam"
    8. "--with-zlib"
    9. "--sysconfdir=/etc/ssh"
    10. "--with-ssl-dir=/usr/local/openssl"
    11. "--with-md5-passwords"
    12. #>
    13. #>
    14. "--with-included-apr"
    15. "--enable-so"
    16. "--enable-deflate=shared"
    17. "--enable-expires=shared"
    18. "--enable-rewrite=shared"
    19. "--enable-static-support"
    20. "--disable-userdir"
    21. #>
    22. "--with-apxs2=/usr/local/apache2/bin/apxs"
    23. "--with-config-file-path=/usr/local/php/etc"
    24. "--with-MySQL=/usr/local/MySQL"
    25. "--with-libxml-dir=/usr/local/libxml2"
    26. "--with-gd=/usr/local/gd2"
    27. "--with-jpeg-dir"
    28. "--with-png-dir"
    29. "--with-bz2"
    30. "--with-freetype-dir"
    31. "--with-iconv-dir"
    32. "--with-zlib-dir "
    33. "--with-openssl=/usr/local/openssl"
    34. "--with-mcrypt=/usr/local/libmcrypt"
    35. "--enable-soap"
    36. "--enable-gd-native-ttf"
    37. "--enable-ftp"
    38. "--enable-mbstring"
    39. "--enable-exif"
    40. "--disable-ipv6"
    41. "--disable-cgi"
    42. "--disable-cli"
    43. #>

    设置为:

    1. phpinfo,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,
    2. ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值