易构空间欢迎您

CentOS 6.0安装配置LAMP服务器(Apache+PHP5+MySQL)

  
   /etc/init.d/httpd restart    #保存配置后重启
   rm -f /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html  删除默认测试页

 

二、php配置
cp /etc/php.ini  /etc/php.inibak  #编辑之前先备份
vi  /etc/php.ini 
date.timezone = PRC     #把前面的分号去掉,改为date.timezone = PRC
disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname
                          #列出PHP可以禁用的函数,如果某些程序需要用到这个函数,可以删除,取消禁用。
  expose_php = Off        #禁止显示php版本的信息
  display_errors = OFF    #关闭错误提示
  register_globals = OFF  #关闭注册全局变量
  magic_quotes_gpc = On   #打开magic_quotes_gpc来防止SQL注入
  log_errors = On         #记录错误日志
  error_log = /var/log/php/error_log.log  #设置错误日志存放目录,文件必须允许apache用户的和组具有写的权限
                                          #(chown apache.apache /var/log/php/error_log.log)
  open_basedir = .:/tmp/                  #设置表示允许访问当前目录(即PHP脚本文件所在之目录)和/tmp/目录,可以防止php木马跨站

收藏此页】【 】【打印】【关闭窗口】  
 服务器租用 戴尔PowerEdge R720
 
价格 14000元
CPU 志强 2.2G*2 16核
内存 32G ECC效验
硬盘 STA 1TB *3/64M
带宽 5M独享
 服务器租用 戴尔PowerEdge R720
 
价格42000元
CPU 志强16核 * 2.6G
内存 128G ECC效验
硬盘 SSd 240G,4T*4
带宽 20M独享多线BGP

服务器租用

服务器租用
易构网络服务器租用,提供全新服务器,多款平台,提供全程网络,系统服务,提供2M,双线BGP独享网络资源,优惠促销中

服务器托管

服务器托管
易构网络服务器托管,电信,联通等,多线双线BGP线路资源,并赠送价值3000元的技术支持服务,免费安全设置,调试 。

云服务器

带宽独享
易构网络提供多网络资源云服务器平台,多级存储及安防策略,硬盘SSD 及SAS 高I/O并发,并提供物理机到云平台的迁移。