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
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:
- 1) Use WebDeploy command line option [fastest]:
https://help.monsterasp.net/books/deploy/page/how-to-deploy-website-content-from-command-line - 2) Use ZIP archive upload and extract [fast]:
https://help.monsterasp.net/books/deploy/page/how-to-deploy-website-content-from-zip-file - 3) Use Filezilla via FTP/SFTP upload [slower]:
https://help.monsterasp.net/books/deploy/page/how-to-deploy-website-content-via-ftpsftp
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.
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
Done! Your PHP script is now run on your website.