PHP
- 08 Sep 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
PHP
- Updated on 08 Sep 2023
- 2 Minutes to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
About this Article
This article provides VSP application instrumentation steps for PHP in Apache and NGINX server. It provides steps to determine the values of deployment folder and PHP version required during application configuration on CMS.
Apache
OS - Ubuntu
Reference Application: Basic PHP Demo Application
Deployment Folder
Hosting Multiple Applications
- Log in to the server
- Verify that the php and apache2 processes are running
- Execute the below command to list all the applications hosted/configured on the Apache server
Example: /etc/apache2/sites-enabled/basicPhpDemo.confapache2ctl -S
- Use the value of the tag “DocumentRoot” for Basic PHP application as Deployment Folder in CMS during Application/Workload creation
- Example: var/www/html/apache2/basic/public
Hosting Single Application
- Log in to the server
- View the file /etc/apache2/apache2.conf. Use the value of the tag “DocumentRoot” for Basic PHP application as Deployment Folder in CMS during Application/Workload creation
- Example:DocumentRoot /var/www/html/basic
PHP Version
Execute the below command to find the PHP version
php -v
Example PHP Version: 7.3
OS - RHEL
Reference Application: Basic PHP Demo Application
Deployment Folder
Hosting Multiple Applications
- Log in to the server
- Verify that the php and httpd processes are running
- Execute the below command to list all the applications hosted/configured on the httpd server
Example: /etc/httpd/sites-enabled/basicPhpDemo.confhttpd -S
- Use the value of the tag “DocumentRoot” for Basic PHP application as Deployment Folder in CMS during Application/Workload creation
- Example: /var/www/html/httpd/basic/public
Hosting Single Application
- Log in to the server
- View the file /etc/httpd/htttpd.conf. Use the value of the tag “DocumentRoot” for Basic PHP application as Deployment Folder in CMS during Application/Workload creation
- Example:DocumentRoot /var/www/html/basic
PHP Version
Execute the below command to find the PHP version
php -v
Example PHP Version: 7.3
NGINX
OS - Ubuntu
Reference Application: Basic PHP Demo Application
Deployment Folder
Hosting Multiple Applications
- Log in to the server
- Verify that the php and nginx processes are running
- View the file /etc/nginx/nginx.conf to check the enabled applications on Nginx server. Find the below tag format in the file:
- include /etc/nginx/conf.d/*.conf;
- View the file /etc/nginx/conf.d and list the all the applications configured on nginx server
- Referred basic php as Demo virtual host.
- Example:/var/www/html/nginx/basic/public
Hosting Single Application
- Log in to the server
- Navigate to the directory /etc/nginx/conf.d. Find the “Root” folder and provide it as the Deployment Folder in CMS during Application/Workload creation
- Example: /var/www/html/basic
PHP Version
Execute the below command to find the PHP version
Shell
php -v
Example PHP Version: 7.3
OS - RHEL
Reference Application: Basic PHP Demo Application
Deployment Folder
Hosting Multiple Applications
- Log in to the server
- Verify that the php and nginx processes are running
- View the file /etc/nginx/nginx.conf to check the enabled applications on Nginx server. Find the below tag format in the file:
- include /etc/nginx/conf.d/*.conf;
- View the file /etc/nginx/conf.d and list the all the applications configured on nginx server
- Referred basic php as Demo virtual host.
- Example:/var/www/html/nginx/basic/public;
Hosting Single Application
- Log in to the server
- Navigate to the directory /etc/nginx/conf.d. Find the “Root” folder and provide it as the Deployment Folder in CMS during Application/Workload creation
- Example: /var/www/html/basic
PHP Version
Execute the below command to find the PHP version
Shell
php -v
Example PHP Version: 7.3
Was this article helpful?