Skip to main content
  • X Twitter
  • youtube
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • 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
365

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
365
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Us

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

Contact Us

We aim to reply the latest within 48h.

Drupal 4U: Built for AI. Powered by Drupal.

We are a group of Drupal designers, developers and webmasters. We are Drupal experts! We provide comprehensive services that go beyond traditional web development, focusing on how AI understands, interprets, and cites your content. With our deep expertise in Drupal's architecture, we build the intelligent core of your digital presence, ensuring your brand remains authoritative and visible in a world where AI is the primary gatekeeper of information. Partner with us and let's future-proof your digital strategy together.

  • X Twitter
  • youtube

Drupal Services

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

Drupal 4U

  • Services
  • Showcases
  • Themes
  • Blog
  • About

Drupal Links

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

Footer menu

  • Contact
Home
Drupal 4U
Built for AI. Powered by Drupal.
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • About
  • Contact
Clear keys input element