困扰多天的PHP+XOOPS的安装问题,未解决

cutemouse 2006-08-19 11:32:21
我在LINUX下,已经安装了APACHE+MYSQL+PHP
在HTTPD.CONF文件下设置了以下路径:
Alias /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


"uploads/", "cache/", "templates_c/", "mainfile.php"
目录都设置了777和666属性
但是无论怎么改,安装XOOPS的过程中还是出现如下的错误:
http://127.0.0.1/web/install/index.php

Checking 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)

老提示权限不够。到底哪里出了错误?
...全文
394 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
skyx 2006-09-11
  • 打赏
  • 举报
回复
首先你要确定一下你的操作系统,不同操作系统的保护权限是不一样的

可以尝试一下输入 setenforce 0,然后重启mysql,apache
cutemouse 2006-08-25
  • 打赏
  • 举报
回复
路径是对的。
我写的PHP代码如下:testfile.php

<?php
$writeok = array("uploads/", "cache/", "templates_c/", "mainfile.php");
$title = "test file php";
$content = "<table align='center'><tr><td align='left'>\n";
$error = false;
foreach ($writeok as $wok) {
echo "<br />"."../".$wok."<br />";
echo fileowner("../".$wok)."<br />";
echo filegroup("../".$wok)."<br />";
echo fileowner("../".$wok)."<br />";
echo substr(sprintf('%o', fileperms("../".$wok)), -4)."<br />";
echo filetype("../".$wok)."<br />";

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"."<br />";
$error = true;

}else{
$content .= "file ".$wok." is writeable"."<br />";
}
if (!is_readable("../".$wok)) {
$content .= "file ".$wok." is not readable"."<br />";
$error = true;

}else{
$content .= "file ".$wok." is readable"."<br />";
}

}
} else {
@chgrp("../".$wok, fileowner("../".$wok));
@chmod("../".$wok, 0777);
if (!is_writeable("../".$wok)) {
$content .= "dir ".$wok." is not writeable"."<br />";
$error = true;

}else{
$content .= "dir ".$wok."is writeable"."<br />";
}
if (!is_readable("../".$wok)) {
$content .= "dir ".$wok." is not readable"."<br />";
$error = true;

}else{
$content .= "dir ".$wok." is readable"."<br />";
}
}
}
$content .= "</td></tr></table>\n";

if(! $error) {
$content .= "<p>"."not error"."</p>";


}else{
$content .= "<p>"." error "."</p>";

}

echo $content;

?>



可是执行结果非常奇怪:

../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

到底是什么原因?

wen8u8 2006-08-21
  • 打赏
  • 举报
回复
uploads, cache, templates_c, 你这几个目录的位置放的不对,应该在
HTTPD.CONF文件下设置了以下路径:
Alias /web/ "/opt/xoops-2.0.14/htdocs/"
xuzuning 2006-08-21
  • 打赏
  • 举报
回复
确认目录 uploads, cache, templates_c
在 /opt/xoops-2.0.14/htdocs/ 下存在,且可写

angel0829 2006-08-20
  • 打赏
  • 举报
回复
目录都设置成了666是什么意思?
anshenghao 2006-08-20
  • 打赏
  • 举报
回复
我估计LZ是没有改成777的

或者说改了 但是没成功
内容概要:本文围绕四旋翼飞行器在悬停状态下的控制问题,系统性地对比研究了三种经典控制策略——比例积分微分(PID)、线性二次型调节器(LQR)和模型预测控制(MPC)在响应品质与计算代价之间的权衡。研究基于四旋翼的线性化数学模型,分别设计并实现了这三种控制器,并依托Matlab仿真平台,对其控制性能(包括响应速度、稳定精度、抗干扰能力等动态特性)和计算资源消耗(涵盖运算时间、算法复杂度等实时性指标)进行了定量评估与基准测试。文章通过详尽的仿真数据分析,揭示了不同控制方法在性能表现与计算开销上的内在矛盾,旨在为无人机控制系统的设计者提供科学的选型依据,阐明各类控制范式在实际工程应用中的适用边界与优化方向。; 适合人群:具备自动控制理论基础、飞行器建模与仿真经验的研究生、科研人员及自动化、航空航天领域的工程师。; 使用场景及目标:① 掌握四旋翼飞行器线性化动力学建模方法;② 学习并对比PID、LQR、MPC三种控制器的设计流程与实现技巧;③ 深入理解控制系统中“响应品质”与“计算代价”这一核心矛盾,并学会进行工程权衡;④ 利用提供的Matlab代码进行复现、验证和进一步研究,以巩固理论知识并提升实践能力。; 阅读建议:此资源以Matlab代码实现为核心支撑,强调理论与实践的紧密结合。读者应在深入理解每种控制算法基本原理的基础上,重点动手运行和调试所提供的代码,通过修改关键参数、对比不同控制器的仿真结果来深化对各控制策略性能差异与适用场景的认识,从而真正掌握控制系统的分析、设计与优化方法。

21,889

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧