Frequently asked questions

Back
How do I test PHP on the shell server?
This entry in our frequently asked questions is directed to advanced users.

PHP testing on the shell server is available for PHP 5.5 and PHP 5.6.

  1. log on to the shell server.
  2. Run the PHP script with the correct command (see instructions below)
  3. Check your result

Keep in mind that PHP-scripts will output HTML also on the command line (in Unix shell), and maybe an error message. You should generate as little HTML as possible when testing to avoid confusion.

In our webhotels, PHP runs as CGI under suphp. Test with the CGI version of the PHP command:

php5-cgi myscript.php

See also:

Keyword:  

Index

© 2017 Domeneshop AS · About us · Terms & Conditions · About cookies