Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal Howtos
  • Drupal Themes
  • X Twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact

Breadcrumb

  1. Home
  2. HowTos
  3. How can I see my php settings?

How can I see my php settings?

HowTos
January 15, 2024
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
314

PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. To do that, you will need to create a phpinfo page. A phpinfo page shows you all of your php environment settings.

Solution
phpinfo.php

Step 1: Create phpinfo.php

Open a text editor, paste the following code and save it as phpinfo.php

<?php
phpinfo();
?>

PHP settings

Step 2: Copy file to Drupal root and access the file

Open a file or FTP manager and copy/upload the file to the Drupal/web root directory.

Now you can access the file with the following link:

http://yourdomain.com/phpinfo.php

The results should look similar to the screenshot.

PHP values

Step 3: Search for and retrieve values

To find the specific value of a setting, search the page for what you're looking for. You can use your browser's search feature ( Ctrl + f ) and search for the parameter (Example: Server API).

PHP code
Configuration

Read more articles

Newer
How to troubleshoot blank pages or "white screen of death" (WSOD)?
Older
How to increase the file upload size in your php.ini or .htaccess file?
  • Log in to post comments
Profile picture for user drupal
drupal
314
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • X Twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2025, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element