
linux
MrGong_
PHP工程师
展开
-
Linux apache下虚拟主机配置
1、apache配置文件(conf/httpd.conf) 找到下面语句并去掉前面的 # #Include etc/extra/httpd-vhosts.conf2、配置域名并映射IPvim /etc/hosts 添加 172.17.200.140 www.gosc.xin3、配置虚拟主机 apache配置文件conf/extra /httpd-vhosts.conf <VirtualHost *:原创 2017-07-23 22:10:04 · 628 阅读 · 0 评论 -
apache 目录级的URL重写支持
1、问题运行项目使出现The requested URL /regiser was not found on this server.就是因为apache的重写未开启。2、解决方法1)、Linux下配置文件中<Directory "/var/www/gongsc/public"> Options FollowSymLinks DirectoryIndex index.php index.原创 2017-09-08 01:17:51 · 1427 阅读 · 0 评论 -
Linux apache2 报错
1HTTP ERROR 500 2页面空白一片 查看源代码只显示一个 1 3composer update时 RuntimeException1、HTTP ERROR 500权限不足chmod -R 777 项目目录2、页面空白一片 查看源代码只显示一个 1权限不足chmod -R 777 项目目录3、composer update时 [RuntimeException] /var/www/fi原创 2017-10-09 10:09:22 · 719 阅读 · 0 评论