Skip to main content

How to run PHP

This article provides step-by-step guide on how to run PHP on MonsterASP.NET hosting.

ASP.NET hosting / .NET Freehosting
If you don’t already have our ASP.NET hosting / .NET Freehosting, sign up for FREE at https://MonsterASP.net/.

PHP

PHP is powerful and flexible scripting language used for building dynamic websites and web applications. This guide will walk you through everything you need to deploy and run your PHP scripts on our hosting platform.

1) Setup PHP for your website

In our hosting Control panel enable and select correct PHP version:
Control panel -> Websites -> Manage -> Scripting -> select PHP version

Control_panel_switch_php_version.png

2) Deploy PHP to website

Now that you have configured PHP version on your website, you can deploy your PHP scripts to our hosting platform.
There are several deployment options available:

Deployment options:

In this example we’ll use just simple WebFTP access https://webftp.monsterasp.net to deploy our PHP scripts.
All PHP files must be uploaded into your website root directory \wwwroot.

WebFTP_upload_php.png

Folder \wwwroot is your website root directory and all PHP files must be located inside it.

Example PHP script:

To test and check server PHP configuration on your website upload simple info.php file into /wwwroot folder.

info.php file content:

<?php

phpinfo();

?>

Open your web browser and access your website URL at: http://XXXXXX.runasp.net/info.php

Show_phpinfo_result.png

Done! Your PHP script is now run on your website.