Bla*_*ing 2 php ubuntu upgrade apache2 chmod
好的我是新问题,在stackoverflow上提出问题,但我需要弄明白这一点.我安装了运行Ubuntu 12.04 LTS的Apache的VPS.我下载了一个php脚本,需要php 5.4+但我安装了5.3.然后我按照此链接中的说明进行操作. 在进行升级时,安装程序告诉我手动更改了我的php.ini文件.我相信我这样做是为了在很久以前使用"display_errors = on"变量查看屏幕上的错误.因此,我选择了KEEP的选项并使用旧版本的php.ini.安装完成后,apache服务器重新启动.我去了我的Chrome浏览器并按下"刷新",令我沮丧的是,"403 Forbidden".
这是虚拟服务器的conf文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/{usr}/Public/
# Indexes + Directory Root.
DirectoryIndex index.html index.shtml index.php
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /home/{usr}/Public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/{usr}/Public/log/{server}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/{usr}/Public/log/{server}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
我将用户名隐藏到{usr},将文件夹隐藏到{server}以保持匿名.此文件是由ME创建的,通过将其与其他一些示例文件放在一起.我不确定这是否正确,我所知道的是,在升级之前,一切正常!
我也是"LL"的"公共"文件夹,这是我发现的:
drwxrwxrwx 28 {usr} {usr} 4096 Sep 4 01:09 Public/
Run Code Online (Sandbox Code Playgroud)
它下面的所有文件夹似乎都具有相同的权限.请帮助,如果有任何问题,请随时提出.多年来我一直这样做,但绝不会称自己为"专家".
提前致谢.
你也升级了Apache 2吗?Apache 2.4有一个新的用户权限策略系统:http://httpd.apache.org/docs/2.4/upgrading.html#run-time