On LINUX,I have installed APACHE+MYSQL+PHP
1.File HTTPD.CONFAlias /web/ "/opt/xoops-2.0.14/htdocs/"
Options All MultiViews
AllowOverride None
Order allow,deny
Allow from all
DocumentRoot "/var/www/html"
Options FollowSymLinks
AllowOverride None
2.but when I follow the install guide ,the third step,the tips like under
=====================================================
"uploads/", "cache/", "templates_c/", "mainfile.php"
http://127.0.0.1/web/install/index.phpChecking file and directory permissions..
Directory uploads/ is NOT writable.
Directory cache/ is NOT writable.
Directory templates_c/ is NOT writable.
File mainfile.php is NOT writable.
In order for the modules included in the package to work correctly, the following files must be writeable by the server. Please change the permission setting for these files. (i.e. 'chmod 666 file_name' and 'chmod 777 dir_name' on a UNIX/LINUX server, or check the properties of the file and make sure the read-only flag is not set on a Windows server)
=======================================================
so I write an php file to test the permissions
file:testfile.php
$writeok = array("uploads/", "cache/", "templates_c/", "mainfile.php");
$title = "test file php";
$content = "
\n"; $error = false; foreach ($writeok as $wok) { echo " "."../".$wok." "; echo fileowner("../".$wok)." "; echo filegroup("../".$wok)." "; echo fileowner("../".$wok)." "; echo substr(sprintf('%o', fileperms("../".$wok)), -4)." "; echo filetype("../".$wok)." "; if (!is_dir("../".$wok)) {
if ( file_exists("../".$wok) ) { @chgrp("../".$wok, fileowner("../".$wok)); @chmod("../".$wok, 0666); if (is_writeable("../".$wok)==false) { $content .= "file ".$wok." is not writeable"." "; $error = true; }else{ $content .= "file ".$wok." is writeable"." "; } if (!is_readable("../".$wok)) { $content .= "file ".$wok." is not readable"." "; $error = true; }else{ $content .= "file ".$wok." is readable"." "; } } } else { @chgrp("../".$wok, fileowner("../".$wok)); @chmod("../".$wok, 0777); if (!is_writeable("../".$wok)) { $content .= "dir ".$wok." is not writeable"." "; $error = true; }else{ $content .= "dir ".$wok."is writeable"." "; } if (!is_readable("../".$wok)) { $content .= "dir ".$wok." is not readable"." "; $error = true; }else{ $content .= "dir ".$wok." is readable"." "; } } } $content .= " |
\n";
if(! $error) {
$content .= "
"."not error"."
";
}else{
$content .= "
"." error "."
";
}
echo $content;
the result like this:
../uploads/
0
0
0
0777
dir
../cache/
0
0
0
0777
dir
../templates_c/
0
0
0
0777
dir
../mainfile.php
0
0
0
0666
file
dir uploads/ is not writeable
dir uploads/ is readable
dir cache/ is not writeable
dir cache/ is readable
dir templates_c/ is not writeable
dir templates_c/ is readable
file mainfile.php is not writeable
file mainfile.php is readable
error
who can tell me,what is wrong?