• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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