• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Problem with Wordpress

JosBluet

New Pleskian
Hi, I'm new to Plesk.
We need to upload to a virtual server (managed with Plesk 11.5) a Wordpress site developed locally. We made this operations without problems many times on other hostings managed with custom panels, non-Plesk.

On the virtual server with Plesk, however, once the files are uploaded via FTP, the database via phpMyAdmin and updated the Wordpress configuration file, when you go to visit the website, it does not display anything and the browser opens the download window for a text file called "download" that contains the code of the file index.php of WordPress.

How can make it works?
Thanks
 
Sounds like apache does not know how to parse the php. If you grep your apache conf you should have:

; Enable the PHP scripting language engine under Apache.
engine = On
 
Sounds like apache does not know how to parse the php. If you grep your apache conf you should have:

; Enable the PHP scripting language engine under Apache.
engine = On

Hi Tsi,
I'd like to check my httpd.conf but I don't know how to do it.
In Web Hosting Access I have "Access to the server over SSH" setted to Forbidden (no dropdown for enable it).
How can I do?
 
I connected to server via SSH using Cyberduck (SSH client for mac). I found that on linux apache configuration reside in the file /etc/apache2/ apache2.conf and not in the /etc/apache2/ httpd.conf file, that is empty. So I downloaded apache2.conf file. Now, here isn't "engine = On".
I added it as reccomended by Tsi-Shawn, and restarted the server but in the plesk panel I get this error:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Syntax error on line 53 of /etc/apache2/apache2.conf: Invalid command 'engine', perhaps misspelled or defined by a module not included in the server configuration . The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.


In php.ini I have:
; Enable the PHP scripting language engine under Apache.
; http://php.net/engine
engine = On
 
Last edited:
Hello JosBluet,

I would recommend to redo any changes you made so far, because it's fairly easier to help you, when you stick to the pre-configuration from Plesk, which is working for millions of sites.

To investigate, if PHP is running on your domain, you might place a new file into your domain httpdocs root ( i.e.: "test_php.php" ), with the following content:
Code:
<?php

phpinfo();

?>

Let's say your domain is "example.com", then your httpdocs - root for this domain is:
/var/www/vhosts/example.com/httpdocs/

If you placed the "test_php.php", in the httpdocs - root of your domain, you may now open it with a browser at:
If PHP is running correctly, then you will now see a bunch of PHP configurations for your domain - if your browser just offers you a download of the file, then PHP is not set up correctly for your domain.


If PHP is not configured correctly, there are several possibilities why this is the case - is this a fresh Plesk installation? Did you have any problems/issues, when installing Plesk? Did you install Plesk with all needed features? Did you install Plesk with NGINX and FASTCGI? Did you add some custom modifications in your domain hosting settings ( rewrite rules )? Are there other domains on this server, which work the way, they are supposed to work?

If you are completly new to Plesk, you might want to have a look at the documentations, which are located at:
 
Back
Top