• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

PHP in CGI-BIN Outputs Source at first > sign

Consultant1027

New Pleskian
Have a php script. Runs fine from shell. From browser it out puts the source code starting at the first > character. Example:

echo '>will start outputting source code';

...some code...

The script is in cgi-bin/admin/reports

When I move the script to the httpdocs directory and run it from domain.com/script.php it works fine. I understand PLESK doesn't configure the domain so PHP will run under CGI. I've already got all my scripts there and would prefer to keep scripts (PERL or PHP) under the same directory tree. Plus I'm old school and feel uncomfortable putting any code in the document root, although I believe this is how most sites do it so I assume there is no security risk.

I suppose I just need to edit the VHOST.CONF but not sure what to add, been a LONG time since I messed with that file. Or should I just create and admin/reports dir in httpdocs and be done with it?
 
Last edited:
Back
Top