Support » Fixing WordPress » Executing scripts in cgi-bin

  • My hosting company has the cgi-bin above the html folder….i.e. in the root of the site.

    So if I wanted to execute a script in that folder, what would be the path, when I add custom html to a page?

    “../cgi-bin/myscript.pl” doesn’t work.

    • This topic was modified 10 months, 2 weeks ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Login to your host and open the file manager, or use FTP to see the full path.
    You could also SSH over to the server using a terminal if they allow ssh access.
    You could also try a tilde character:
    ~/
    the tilde indicates home directory.
    This is not a WordPress question.

    Thread Starter zardiw

    (@zardiw)

    Never mind…….apparently that DOES work…..

    Thread Starter zardiw

    (@zardiw)

    And in a way it IS a wordpress question……since when you add custom html to a page, you need to know what the file paths are. Apparently a file in custom html is based on the web root/html folder….good to know.

    z

    The render for an html page is resolved by from apache, not WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Executing scripts in cgi-bin’ is closed to new replies.