Create a phpinfo.php file

Posted by admin
In Linux
9Apr 09

If your not sure how to access your php.ini file or just what a nice GUI veiw of all your PHP settings, this is how:

This is how to make a phpinfo.php file,

The purpose of a phpinfo.php file is to show you how your php is configured in your server. To create one all you have to do is the following:

STEP 1: Open your favorite text editor like notepad. I am using notepad in Windows XP for this tutorial.

STEP 2: Copy and paste the following code into a blank notepad:

Code:

<?php

phpinfo();

?>

STEP 3: Save this file as phpinfo.php

STEP 4: Upload file to your website root using your favorite FTP Client.

STEP 5: Once you have uploaded the phpinfo.php file. Pull the file with your browser to the location of your site where you uploaded the phpinfo.php file (Example: yoursite.com/phpinfo.php)

STEP 6: After that, If you have PHP installed, you should see all the PHP configurations. All these configurations are located in a file called php.ini. For Redhat and Fedora Linux distributions its located in /etc/php.ini , and for Ubuntu and related distros it will be located /etc/php5/apache2
:mrgreen:


Subscribe to RSS

  • Tag Cloud

  • Categories

  • Recent Posts

  • Sponsored Links

  • Login/Register

Syndicate