Just updated my XAMPP from an old version that previously allowed htdocs to be under the Applications/XAMPP/xamppfiles/ folder. I have all my development files and environment there including my SVN working copies and am loath to move them to opt/lampp/htdocs.
As this is a work computer, I do not have access to su or sudo . . .
I can, however, edit the httpd.conf file for XAMPP so would would like to point apache to Applications/XAMPP/xamppfiles/httpd
It's decades since I last messed around with apache and conf files so I'm struggling to figure out how to do what I want to do. I've tried variations of:
DocumentRoot "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">
#DocumentRoot "/Macintosh HD/Applications/XAMPP/xamppfiles/htdocs"
#<Directory "/Macintosh HD/Applications/XAMPP/xamppfiles/htdocs">
to no avail. The log when restarting apache is:
ERROR: Failed to stop "apache": cannot stop service: AH00526: Syntax error on line 231 of /opt/lampp/etc/httpd.conf:
DocumentRoot '/Macintosh HD/Applications/XAMPP/xamppfiles/htdocs' is not a directory, or is not readable
I'm pretty certain it's readable as I can use it on the old XAMPP installation (but perhaps I've forgotten my permissions rules), so I think the error is in the naming of the DocumentRoot and the Directory variables.
Any help?
Regards,
Mark