[问题]“Apache” “权限” “默认路径”--斑竹进来帮忙解决一下。·[已解决]
发表于 : 2006-08-05 21:19
jerry@Ubuntu:/d/www/per$ ll | grep index.php
-rwxr-x--- 1 root plugdev 13758 2006-08-03 11:55 index.php
jerry@Ubuntu:/d/www/per$ sudo chmod +x index.php
jerry@Ubuntu:/d/www/per$ ll | grep index.php
-rwxr-x--- 1 root plugdev 13758 2006-08-03 11:55 index.php
这里改权限和属组都改不了。不明白问题出在哪里。
-------------------------------------------------------------------------
jerry@Ubuntu:~$ ll /d/www/
total 32
drwxr-x--- 4 root plugdev 8192 2006-07-31 18:31 per
这是目录权限。
/etc/apache2/sites-available/default的配置文件改apache的路径
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /d/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /d/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
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>
改了之后apache可以启动但是不能访问,改成默认路径就可以访问。下面是显示错误。是权限问题嘛?要怎么改。
jerry@Ubuntu:/var/www$ sudo ln -s /d/www/ /var/www/
这样链接过去还是不行,看不到目录,可能是权限问题。要怎么改。
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
=========================================================================================================
请高手指点。谢谢。
-rwxr-x--- 1 root plugdev 13758 2006-08-03 11:55 index.php
jerry@Ubuntu:/d/www/per$ sudo chmod +x index.php
jerry@Ubuntu:/d/www/per$ ll | grep index.php
-rwxr-x--- 1 root plugdev 13758 2006-08-03 11:55 index.php
这里改权限和属组都改不了。不明白问题出在哪里。
-------------------------------------------------------------------------
jerry@Ubuntu:~$ ll /d/www/
total 32
drwxr-x--- 4 root plugdev 8192 2006-07-31 18:31 per
这是目录权限。
/etc/apache2/sites-available/default的配置文件改apache的路径
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /d/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /d/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
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>
改了之后apache可以启动但是不能访问,改成默认路径就可以访问。下面是显示错误。是权限问题嘛?要怎么改。
jerry@Ubuntu:/var/www$ sudo ln -s /d/www/ /var/www/
这样链接过去还是不行,看不到目录,可能是权限问题。要怎么改。
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
=========================================================================================================
请高手指点。谢谢。