Differences
This shows you the differences between two versions of the page.
litespeed_wiki:php:php_info [2018/07/24 14:51] qtwrk created |
litespeed_wiki:php:php_info [2018/07/24 16:04] (current) Lisa Clarke Proofreading and Reformatting |
||
---|---|---|---|
Line 3: | Line 3: | ||
To view your current PHP version , configuration and such, you will need to create a PHP info page. | To view your current PHP version , configuration and such, you will need to create a PHP info page. | ||
- | Assuming your website is under ''/home/username/public_html'', then create a new file under that directory, name it like ''phpinfo.php'', with following code: | + | Assuming your website is under ''/home/username/public_html'': |
- | + | - Create a new file under that directory. Name it something like ''phpinfo.php''. | |
- | <code><?php | + | - Insert the following code into the file:<code><?php |
phpinfo(); | phpinfo(); | ||
?></code> | ?></code> | ||
+ | - Access the file through your browser like so: ''<nowiki>http://your-domain/phpinfo.php</nowiki>'' | ||
- | Now access it by http://your-domain/phpinfo.php | + | Your current PHP configuration will be displayed. The values listed here can be helpful when you are troubleshooting a PHP-related issue. |
- | + | ||
- | + | ||
- | You will see all your current PHP configuration, this would be helpful when you troubleshooting PHP related issue. | + |