Syntax error in httpd.ini

Can anyone tell me how (if) I need to fix this error in my admin.php file please.
V4.17.2

[Tue Nov 05 17:31:11.985441 2024] [:error] [pid 4960:tid 5004] [client 82.33.39.226:57098] PHP: syntax error, unexpected ‘(’ in ./httpd.ini on line 13, referer: https://www.mysite/admin.php?dispatch=orders.details&order_id=232803
[Tue Nov 05 17:31:31.590589 2024] [:error] [pid 10556:tid 10565] [client 82.33.39.226:57100] PHP: syntax error, unexpected ‘(’ in ./httpd.ini on line 13, referer: https://www.mysite/admin.php?dispatch=orders.details&order_id=232802
[Tue Nov 05 17:31:32.707086 2024] [:error] [pid 10556:tid 10565] [client 82.33.39.226:57100] PHP: syntax error, unexpected ‘(’ in ./httpd.ini on line 13, referer: https://www.mysite/admin.php?dispatch=orders.manage

Hi!

The httpd.ini file mentioned in the logs is related to the Apache configuration, so it’s better to check with your hosting support.

1 Like

Thanks, the host replied to my ticket as below. the question is, do I trust anything they have done in the .htaccess file? I have ran the root .htaccess with one of my backups and dont have any differences when I use compare ? another .htaccess maybe elsewhere ?

Thank you for your mail.

The errors in the error_log are likely caused by a syntax issue in the .ini file, where mod_rewrite rules (such as RewriteRule) are not typically supported. Upon investigation, we found that the issue stemmed from the code in the .htaccess file. We have since corrected the code in the .htaccess file and have verified that no errors are being generated when accessing the following page:

https://www.hivis.co.uk/myadmin.php

Kindly check and feel free to contact us if there is anything else we can assist you with.

I doubt that the hosting support could do anything malicious to your installation, as it would be a fatal blow to their reputation if it ever came to light. The worst thing that could happen - they could misinterpret the broken rule in the .htaccess file and rewrite it with a different meaning, so that something works differently from the original idea.

It’s better to ask them directly :slight_smile:

of course,
thanks for the help.

1 Like