XAMPP default folder on OSX

柔情痞子 提交于 2020-01-03 15:36:08

问题


Getting Started manual says I can put my files in /Applications/XAMPP/htdocs/ folder and in /Sites/ folder, but when I put files in /Sites folder it gives me this error:

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 

Is there something that needs to be changed?

Also, when I try to restart XAMPP via Terminal I get this message:

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

Does this have something to do with the installation?

Thanks


回答1:


You can follow these:

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

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

sudo /Applications/XAMPP/xamppfiles/xampp fix_rights



回答2:


have you put a file which is either index.html or index.php

if no put a index.php file in htdocs with

 <?php
    $uri= $_SERVER['HTTP_HOST'];
    header('Location: '.$uri.'/site/');
    exit;
 ?>


来源:https://stackoverflow.com/questions/2465655/xampp-default-folder-on-osx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!