Internal Server Error with PHPList

PHPList produces internal server error. Checking error logs results in:

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration.

The php_flag command is used to set a PHP configuration directive. However, not all servers support this command. If your server does not support the php_flag command, you will need to remove it from your PHP configuration file.

Here are the steps on how to remove the php_flag command from your PHP configuration file:

 

  1. Open your PHP configuration file. This file is usually called php.ini and resides in your public_html folder with Ultra.
  2. Find the line that contains the php_flag command.
  3. Comment out the line by adding a # symbol to the beginning of the line.
  4. Save the file.

Once you have removed the php_flag command from your PHP configuration file, PHPList should no longer produce the error message.

Here are some additional details about the error message:

  • The php_flag command is a deprecated command. This means that it is no longer supported by the latest versions of PHP.
  • If you are using an older version of PHP, you may need to upgrade to a newer version in order to remove the php_flag command from your PHP configuration file.

This can also be corrected by remarking or removing:

php_flag magic_quotes_gpc on

in your .htaccess file.

 

  • 159 Users Found This Useful

Was this answer helpful?

Related Articles

Error 500 - Internal Server Error - PHP

This can be due to several factors. The first thing to check is that the permissions on the file...

Strict Standards: Non-static method JLoader::register() should not be called statically in

The error message...  Strict Standards: Non-static method JLoader::register() should not be...

Running a PHP file with a cron job

To run a PHP file from cron, use the "cron jobs" section of your control panel. Use the following...

What is the Path to ImageMagick?

The path to ImageMagick on Ultra Web Hosting is /usr/bin/. This means that you can access...

403 Forbidden error with Drupal after install

There are a few things you can do to fix the 403 Forbidden error with Drupal after install:...