XAMPP default folder for OSX

The getting started guide says that I can put my files in the / Applications / XAMPP / htdocs / folder in the / Sites / folder, but when I put the files in the / 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 anything 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

Is this related to the installation?

thank

+3
source share
2 answers

You can do the following:

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

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

sudo /Applications/XAMPP/xamppfiles/xampp fix_rights
+3
source

You put a file that is either index.html or index.php

if you don’t put the index.php file in htdocs using

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

Source: https://habr.com/ru/post/1737420/


All Articles