Frequently asked questions

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.6 and PHP 7.0.

  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:



© 2020 Domeneshop AS · About us · Terms · Privacy policy