OSX上的XAMPP默认文件夹

时间:2010-03-17 20:31:33

标签: macos xampp

入门手册说我可以将我的文件放在/ Applications / XAMPP / htdocs /文件夹和/ Sites /文件夹中,但是当我将文件放在/ Sites文件夹中时,它会给我这个错误:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
Wed Mar 17 11:29:01 2010
Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 

有什么需要改变吗?

此外,当我尝试通过终端重新启动XAMPP时,收到以下消息:

XAMPP: Starting ProFTPD.../Applications/XAMPP/xamppfiles/xampp: line 184: /Applications/XAMPP/xamppfiles//var/proftpd/start.err: No such file or directory
fail.
Contents of "/Applications/XAMPP/xamppfiles//var/proftpd/start.err":
cat: /Applications/XAMPP/xamppfiles//var/proftpd/start.err: No such file or directory

这是否与安装有关?

由于

2 个答案:

答案 0 :(得分:3)

您可以按照以下步骤操作:

sudo mkdir /Applications/XAMPP/xamppfiles/var/proftpd/

sudo touch /Applications/XAMPP/xamppfiles/var/proftpd/start.err

sudo /Applications/XAMPP/xamppfiles/xampp fix_rights

答案 1 :(得分:2)

你有一个文件,它是index.html或index.php

如果没有在带有

的htdocs中放入index.php文件
 <?php
    $uri= $_SERVER['HTTP_HOST'];
    header('Location: '.$uri.'/site/');
    exit;
 ?>