• About us
  • Blog |
  • Contact Sales |
  • Knowledgebase |
  • Login Webmail
ORC Webhosting Logo
  • Home
  • Hosting
    • Premium web hosting
    • Easy Web Hosting
    • Homepage construction kit SitePad
    • Roundcube WebMail
    • Free website migration
  • Domains
  • VPS Server
  • en_USEnglish
    • de_CHDeutsch
    • it_ITItalian
    • es_ESSpanish
    • fr_FRFrench
    • pt_PTPortuguese
    • ukUkrainian
ORC Webhosting GmbH Landquart/Switzerland
Customer Login

Knowledgebase

Learn how to use our web hosting services with full power in an easy-to-understand way.

Most searched category emailcpanelsshdnsdomains

Databases

9
  • What is the MySQL hostname?
  • How to reduce the size of the database?
  • How to export a database with phpMyAdmin?
  • Repair database via phpMyAdmin in cPanel
  • How do I create a database user in cPanel?
  • How can I check the size of my website's database?
  • What is PHPMyAdmin and where can I access it?
  • How to create a MySQL database with cPanel
  • How to import a database with phpMyAdmin?

Video instructions

16
  • How do I change the PHP version in cPanel?
  • How to export a database with phpMyAdmin?
  • How do I find my cPanel password?
  • Repair database via phpMyAdmin in cPanel
  • How do I manage the DNS zones for my domains in cPanel ?
  • How do I create a database user in cPanel?
  • How do I install WordPress with the cPanel Toolkit?
  • How to create email accounts in cPanel?
  • How to manage domain redirections in cPanel?
  • How do I manage my domains in cPanel?
  • How do I change the email password?
  • How can I enable gzip compression?
  • How do I reset my cPanel password?
  • How can I log in to the cPanel?
  • What is web hosting?
  • How to create a MySQL database with cPanel

Files

8
  • How do I create an FTP account in cPanel?
  • How do I create a phpinfo file?
  • What is FTP?
  • How do I transfer files with FileZilla FTP Client?
  • Editing the Hosts file on your Mac
  • How do I use the file manager?
  • How to manage storage space usage in cPanel
  • How do I connect with FileZilla?

cPanel

39
  • How do I password protect a directory in cPanel?
  • How do I enable/disable mod_security in cPanel?
  • How can I restore a backup?
  • How to install web applications with Softaculous autoinstaller in cPanel
  • How do I set up a Node.js application in cPanel?
  • How do I protect my .htaccess file?
  • WordPress Manager of Softaculous
  • What are subdomains? Use and advantages
  • Using the "Manage team" in cPanel
  • WordPress staging: set up a test environment
  • How are hidden files displayed in CPanel file manager?
  • Connection between the main domain and an additional domain
  • How to create a MySQL database with cPanel
  • How do I use the file manager?
  • How do I manage my domains in cPanel?
  • How to manage domain redirections in cPanel?
  • What is PHPMyAdmin and where can I access it?
  • How to create email accounts in cPanel?
  • Manage email addresses in cPanel
  • How can I check the size of my website's database?
  • How do I install WordPress with the cPanel Toolkit?
  • How do I create a database user in cPanel?
  • How to reduce the size of the database?
  • How to manage storage space usage in cPanel
  • Create email forwarding in cPanel
  • Create email autoresponder in cPanel
  • Track email delivery in cPanel
  • How do I change the PHP version in cPanel?
  • How do I manage the DNS zones for my domains in cPanel ?
  • Repair database via phpMyAdmin in cPanel
  • How do I create a DMARC entry with cPanel?
  • How to export a database with phpMyAdmin?
  • How do I find my cPanel password?
  • How do I change the email password?
  • How can I enable gzip compression?
  • How do I reset my cPanel password?
  • How can I log in to the cPanel?
  • htaccess redirects and rewrite rules
  • What is the difference between the Customer Center and the cPanel?

Domains

18
  • ccTLD
  • A-Record
  • What is an Administrative Contact
  • EPP Code: Comprehensive explanation and meaning for domain transfers
  • DNS propagation domain changes
  • How do I transfer a domain to ORC Webhosting?
  • DNS Management in the Customer Center
  • How long does it take for my domain to point to my website?
  • What is a domain?
  • When does a domain expire?
  • What is WHOIS?
  • What is domain parking?
  • What are subdomains? Use and advantages
  • All about domain transfer
  • How do I manage the DNS zones for my domains in cPanel ?
  • How to manage domain redirections in cPanel?
  • How do I manage my domains in cPanel?
  • What are my nameservers?

eMail

13
  • How to set up an email signature on iPhone?
  • How do I set up my email in Outlook?
  • How are email filters managed in cPanel?
  • Set up email on iPhone
  • Mail SPF Check Failed
  • How do I manage the global email filters in cPanel?
  • Manage email addresses in cPanel
  • Create email forwarding in cPanel
  • Create email autoresponder in cPanel
  • Track email delivery in cPanel
  • How do I create a DMARC entry with cPanel?
  • How to create email accounts in cPanel?
  • How do I change the email password?

Customer Center

11
  • How do I contact ORC Web Hosting Support?
  • Why has my web hosting been blocked?
  • How can I restore a backup?
  • ORC Web Hosting Customer Center Overview
  • Access to ORC Webhosting customer area
  • How do I transfer a domain to ORC Webhosting?
  • DNS Management in the Customer Center
  • How do I find my cPanel password?
  • How do I reset my cPanel password?
  • What is the difference between the Customer Center and the cPanel?
  • What are my nameservers?

Wordpress

33
  • Web design and SEO: How to optimize your website
  • How to turn a multi-site into a single-site
  • WordPress Child Theme and how to create one
  • Understanding the persistent object cache: when it is important and when it can be ignored
  • What is a WordPress plugin and how do I install a new plugin?
  • How do I manage users in WordPress?
  • Configure general settings in WordPress
  • How do I install WooCommerce?
  • How to use Yoast SEO in WordPress
  • How can I create and manage new menus in WordPress?
  • How to create new blog posts in WordPress
  • How to edit the header image in WordPress
  • How can I change the admin password in WordPress?
  • How to create categories and subcategories in WordPress
  • To configure the WordPress media settings
  • Install a new WordPress theme
  • How do I protect my .htaccess file?
  • WordPress Manager of Softaculous
  • What is a permalink in WordPress?
  • What is the Navigator in Elementor
  • WordPress SMTP: How to set up SMTP for sending emails
  • The importance of functions.php in WordPress
  • What is a pingback in WordPress?
  • Fixing 404 errors after customizing WordPress permalinks
  • The 10 most common errors in WordPress and how to fix them
  • The integration of AI with the AI Engine plugin
  • What is a category in WordPress?
  • What is a featured image in WordPress?
  • What is an absolute path in WordPress?
  • Deactivate WP-Cron for faster performance
  • Favicons in WordPress: How to increase your brand presence
  • WordPress staging: set up a test environment
  • How do I install WordPress with the cPanel Toolkit?

Miscellaneous

36
  • Linux commands
  • Create a strong password: Here's how to do it right
  • Web design and SEO: How to optimize your website
  • How do I create a phpinfo file?
  • What is FTP?
  • How do I transfer files with FileZilla FTP Client?
  • How do I enable/disable mod_security in cPanel?
  • What is the difference between Google Search Console and Google Analytics?
  • Bounce rate
  • Bitmap graphics
  • Apache
  • What are automatic updates
  • What is an API (Application Programming Interface)?
  • What is AJAX (Asynchronous JavaScript and XML)?
  • What is an Absolute Path
  • VPN Client APP Setup
  • How do you create a favicon?
  • Fixing the site error: "The ionCube PHP Loader must be installed
  • What is IonCube Loader? A comprehensive insight
  • What is meant by gigabyte, megabyte, GB, and MB?
  • What is Leverage Browser Caching?
  • When does it make sense to use JPEG or PNG images?
  • How do I protect my .htaccess file?
  • What is a domain?
  • What is SEO and how does it work?
  • What is DuckDuckGo?
  • How do I clear the DNS cache on the computer?
  • Website creation: costs and breakdown into different areas
  • What is an absolute path in WordPress?
  • How to create perfect screenshots on a Mac
  • Favicons in WordPress: How to increase your brand presence
  • Editing the Hosts file on your Mac
  • How do I change the PHP version in cPanel?
  • htaccess redirects and rewrite rules
  • What is an Uptime Guarantee
  • How do I connect with FileZilla?
  • Home
  • Docs
  • Miscellaneous
  • How do I create a phpinfo file?
View Categories

How do I create a phpinfo file?

When troubleshooting a website, it can sometimes be useful to have all the latest PHP configurations for a specific folder or file in one place. This can be done with the php function phpinfo can be reached. Among other things, this function can display the currently loaded PHP modules, the currently loaded PHP settings, and the preset and environment variables.

Retrieve or create the file

In its simplest form, a phpinfo file consists of only a single command:

phpinfo file
phpinfo file

Here we add a comment and some blank lines to make it easier to read. You need to copy and paste this text into a text file.

If you create the file yourself, make sure that the entire file contains only the exact text from the code field above contains. Make sure that there are no additional invisible characters. Sometimes text editors like Notepad can insert extra characters into files. If you are creating the file on a Windows computer, you should use a different text editor like Notepad++. It is also very important that the file name ends with .php and not .php.txt. Depending on your operating system, you may need to check that your file manager is configured to display file extensions.

Upload the file

Once the phpinfo file is created, it can be uploaded somewhere in the document root of the website. For cPanel Server the cPanel file manager probably one of the easiest ways to do this. If you are familiar with FTP or Web Disk, for example, these should work as well. Make sure the user and group that owns the file are set to the cPanel user and that the file permissions are 644. How you check and adjust this depends on the method you use to upload the file.

Open file

Once the file has been uploaded with the correct permissions and ownership, you can view your new phpinfo page using your web browser. For example, if the file was placed on the server at /home/cpuser/public_html/phpinfo.php, the URL might be http://meinedomain.ch/phpinfo.php. If the file was uploaded correctly, it should look like several tables, with setting/variable names in the left column and values in one or two columns on the right. If you are looking for a specific parameter, you can use your web browser's search function to find it.

how-do-I-create-a-phpinfo-file
Upload and read phpinfo file

Delete the file

It is very important to phpinfo file for no longer than necessary. The information it contains can be very useful for you when troubleshooting, but it can also be very useful for potential attackers who might try to get information from your server about the installed versions or modules, which could give them clues about the type of attacks they are trying to launch. Using a phpinfo file for a short time to get information about the PHP environment during debugging is usually safe, but it is important to keep the file remove (or block access to) itonce you no longer need them. There are several ways to do this.

Warning:
Your phpinfo page has many PHP settings that you do not want to send to the world. When you are done using the file, be sure to delete it. However, you can name the file something other than phpinfo.php instead of deleting it. Since phpinfo.php is such a common name, "bots" on the web will randomly search for files named phpinfo.php.

Advanced application

Advanced users can instruct the phpinfo function to print only certain information. For this purpose the function has a parameter to which you can add in the PHP documentation find more information. For most users, the default setting should work.

Another thing that advanced users can occasionally try is using the phpinfo function within existing scripts. Since PHP scripts can sometimes modify some of the PHP functions, it can be a problem when using the Debugging certain scripts be useful to insert phpinfo lines into these scripts to check that the environment still has the same settings and variable values at certain points as expected by the script. In this case, be sure to remove these extra debugging function calls when you are done.

php, phpinfo
What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on February 9, 2023
Web design and SEO: How to optimize your websiteWhat is FTP?

Powered by BetterDocs

Table of Contents
  • How do I create a phpinfo file?
    • Retrieve or create the file
    • Upload the file
    • Open file
    • Delete the file
    • Advanced application
ORC-Webhosting-Logo-qhfhur368wc1c2jac4dy7yugiqdkc1u9xs42kklf9w-3.png

ORC Webhosting offers powerful hosting with fast performance and reliable service for your online business.

Hosting & Domains
  • Cheap web hosting
  • Wordpress hosting
  • Website Builder
  • Register domains
  • Domain transfer
  • Domain-Whois
  • Cloud VPS Server
Service
  • Customer center login
  • Create account
  • Test winner support
  • Customer reviews
  • AGB / Data protection
  • Imprint
  • Wir kaufen Webhosting Firmen
Support
Support

© 2002 - 2025 IPS Inc. dBa ORC Webhosting

Certified member of Hosttest.ch

de_CH German
de_CH German
en_US English
it_IT Italian
fr_FR French
es_ES Spanish
pt_PT Portuguese
uk Ukrainian