These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for PHP Downloads instead of executes on new Virtualmin install on the new forum.
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
Nothing? Really? After all this time?
Virtualmin > select the domain (if not already chosen) > Website Options > Choose PHP-FPM
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!
I would create a info.php file and add it to your web directory. Add the following to the file...
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)
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. :)
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.
Nevermind! Fixed it! Didn't know about the panel in the php7 of virtualmin.