Support / KnowledgeBase

 
Search the KnowledgeBase Search

Viewing domains with PHP enabled

  • Applies to: All Service Types

  • Difficulty: Easy

  • Time needed: 5 minutes

  • Tools needed: None

 

There isn't a way in Plesk to see which domains have PHP enabled without individually checking them one by one. One easy alternative to find out which domains have PHP enabled is to run a query against your Plesk database.

WARNING:

The following is an advanced guide which gives instruction for accessing your Plesk database. It is strongly suggested that you only follow this guide if you have backed up your (dv) service, and have complete confidence in working with Plesk and MySQL.


This should run a custom query that lists all of your domains within Plesk and their current PHP status:

 mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e 'select domains.name, hosting.php from domains, hosting where hosting.dom_id = domains.id';

Sometimes the list may be too long so you can try running the following query:

 mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e 'select domains.name from domains, hosting where hosting.dom_id = domains.id and hosting.php ="false";'

This will only show the domains that have PHP disabled.

Revisions:

01-09-2009: Article Creation

User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue