• zinwai

    (@zinwai)


    I have error with “attempt to invoke directory as script”. I don’t know how can I fix that.

    The error message I got is –

    [Thu Mar 09 19:57:53.312891 2023] [cgid:error] [pid 643916:tid 140504379959040] [client 103.25.242.91:0] AH01265: attempt to invoke directory as script: /home3/qkgnkwmy/public_html/lms1-code2learning-com/cgi-bin/, referer: https://lms1.code2learning.com/wp-admin/admin-ajax.php?p=
    [Thu Mar 09 00:12:18.762225 2023] [cgid:error] [pid 791851:tid 140358092576512] [client 3.80.32.244:0] AH01265: attempt to invoke directory as script: /home3/qkgnkwmy/public_html/lms1-code2learning-com/cgi-bin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Faisal Ahammad

    (@faisalahammad)

    This message suggests that the server is trying to execute a directory as a script, which can happen for various reasons.

    To start troubleshooting, let’s check the .htaccess file in your website’s root directory to ensure it doesn’t contain any code that may be causing this error. You can easily do this by temporarily renaming the file and checking if the error disappears.

    Next, let’s check the permissions of the directory. Ensure that the directory has read and executed permissions for the user and group that the web server is running as. You can do this using an FTP client or the file manager in your web hosting control panel.

    If that doesn’t help, try disabling all plugins and see if the error disappears. If it does, re-enable the plugins one by one until you find the one causing the error. Additionally, check if any .php files in your website’s root directory contain errors or malformed code. Fix any issues you find and see if the error goes away.

    Thread Starter zinwai

    (@zinwai)

    Thank you very much. I give it a try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘attempt to invoke directory as script error’ is closed to new replies.