PHP Downloads instead of executes on new Virtualmin install

8 posts / 0 new
Last post
#1 Tue, 11/26/2019 - 06:20
Father Guido

PHP Downloads instead of executes on new Virtualmin install

Hi all!

I just installed Virtualmin on Ubuntu 18.04. The install went great! Everything worked fine. I got everything set up and uploaded my files to the public_html folder via FTP without issue but when I go to the site it tries to download the php file rather than execute it.

I've read the posts here about editing the conf file to comment out the sethandler sections but that was already done to my files when I checked them so I'm not sure what to try next.

System: Dell T140 Server OS: Ubuntu Server 18.04

Tue, 11/26/2019 - 18:01
Father Guido

Nothing? Really? After all this time?

Tue, 11/26/2019 - 20:01
miklovestech

Try this:

Virtualmin > select the domain (if not already chosen) > Website Options > Choose PHP-FPM

Wed, 11/27/2019 - 05:11
Father Guido

Thanks for the reply!

I did that and now it goes to a blank screen but at least now my phpmyadmin works again. When I first installed Virtualmin it worked fine. After I uploaded all my files it stopped working. Making that change got it working again, so at least that's fixed.

When I try the error log for the web page it says this:

[14-Jun-2019 14:50:54 America/Chicago] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

I opened my php.ini from etc/php7.2 and there is no line 0 that says that. Not sure if I'm supposed to add it or what.

Thanks again for the help!

Wed, 11/27/2019 - 06:51
adamjedgar

I would create a info.php file and add it to your web directory. Add the following to the file...

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

Browse http://yourdomain.com/info.php

It's easy to get confused as to which php is being used and what directories the configurations files that are being used reside in. The info.php file will show all of that so you don't make changes in the wrong place (that essentially do nothing)

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Wed, 11/27/2019 - 06:55
Father Guido

Thanks for the help!

It seemed that each time I got one thing corrected, there was another problem. So what I did was created a new VS and did a fresh install of WordPress just to see if it was my files I uploaded that was screwing up the works or if I had a Virtualmin problem.

The fresh WordPress install works perfectly. So there must be something wrong with my files I uploaded.

What I am going to try now is to import my old WordPress database into the new install and see if that will work. If not, god help me, I'll have to recreate the entire site.

Again thanks for all the help. I'm sure I'll be back over here sooner or later. :)

Wed, 11/27/2019 - 08:18
Father Guido

And I'm back already.

My problem now is that I can't increase the max file size upload for php. I edited the two php.ini files I could find and increased the limits and restarted apache and MySQL but the changes didn't make any difference.

Any advice?

Wed, 11/27/2019 - 08:45
Father Guido

Nevermind! Fixed it! Didn't know about the panel in the php7 of virtualmin.

Topic locked