C
C
codenaki2017-12-04 10:03:23
Apache HTTP Server
codenaki, 2017-12-04 10:03:23

Apache loading error, what's the problem?

error_log:


httpd: could not open error log file /Applications/XAMPP/htdocs/sites/beinstyle/logs/error-logs.
AH00015: Unable to open logs

I use XAMP, in the Application log panel in XAMP at startup it displays:
Starting Apache Web Server ..
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started

In the XAMP "Manager Servers" panel, the button stays red as if Apache didn't load.
5a24ee13f3747960951901.png
In httpd.conf :
<IfModule unixd_module>
User someone
Group admin
</IfModule>

I use MAC Sierra ..
On the command line in the project folders:
1.
5a24ef2dd2d9e187970480.png
2.
5a24ef402828a102307880.png
Permissions:
Regarding the permissions for the right to access the logs folder, everything seems to be fine ..
In one project it is given for everyone in the other regarding the group and user specified in httpd.conf .
.vhosts :
<VirtualHost *:81>
    ServerAdmin [email protected]
    DocumentRoot "/Applications/XAMPP/htdocs/sites/conlineltd/project/public"
    DirectoryIndex index.php
    ServerName conlineltd.com
    ServerAlias www.conlineltd.com
    ErrorLog "/Applications/XAMPP/htdocs/sites/conlineltd/logs/error-logs"
    CustomLog "/Applications/XAMPP/htdocs/sites/conlineltd/logs/custom-logs" common
</VirtualHost>

<VirtualHost *:81>
    ServerAdmin [email protected]
    DocumentRoot "/Applications/XAMPP/htdocs/sites/beinstyle/project/public"
    DirectoryIndex index.php
    ServerName beinstyle.com
    ServerAlias www.beinstyle.com
    ErrorLog "/Applications/XAMPP/htdocs/sites/beinstyle/logs/error-logs"
    CustomLog "/Applications/XAMPP/htdocs/sites/beinstyle/logs/custom-logs" common
</VirtualHost>

Port 81 is specified in httpd.conf as Listen 81
Another scenario :
When I change the paths in vhosts (below): in Manager Servers the button turns green and there are no problems with the logs folder
<VirtualHost *:81>
    ServerAdmin [email protected]
    DocumentRoot "/Applications/XAMPP/htdocs/sites/conlineltd/project/public"
    DirectoryIndex index.php
    ServerName conlineltd.com
    ServerAlias www.conlineltd.com
    ErrorLog "logs/error-logs"
    CustomLog "logs/custom-logs" common
</VirtualHost>

<VirtualHost *:81>
    ServerAdmin [email protected]
    DocumentRoot "/Applications/XAMPP/htdocs/sites/beinstyle/project/public"
    DirectoryIndex index.php
    ServerName beinstyle.com
    ServerAlias www.beinstyle.com
    ErrorLog "logs/error-logs"
    CustomLog "logs/custom-logs" common
</VirtualHost>

Why is it that when you specify the default path for the logs folder, the server starts without problems, and when you specify a different path, problems arise even with the correct Permissions, and in the XAMP Application log of the panel it indicates a successful download, but the color of the Apache Web Server XAMP button of the panel remains red?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question