I’m having some trouble getting Meteotemplate working in a virtual host using the Webserver module. Specifically running into three questions:
Does the setting below enable url_fopen? Because I have it enabled as shown, but the application is reporting that url_fopen is disabled.
…and if it doesn’t, how can it be enabled?
Is the webserver able to write to its own data directory? Meteotemplate uses a setup page which (is supposed to) write a config.php file to its directory, and this is failing.
Likewise, if it isn’t, can this be changed?
How would I track down the cause of a completely blank page? I’m assuming it’s a PHP error of some sort, but the webserver logs are completely silent.
If related webserver services are started and the request reaches the server, they should be reporting and logging errors/warnings.
Sometimes browser console can give some hint.
If it’s a php file, a quick way to see generated php errors is to force showing them for the file code in question, by editing the file and adding (usually at the top of the file, within the usual <?php code marks ?>):
From app update on existing instance and virtual host the fopen fix didn’t work.
Creating a new virtual host, replaced the old virtual host (if mind doesn’t play tricks on me) but retained folder data, sftpgo access and http route + added the new http route.
On one occasion, all virtual hosts showed the same user:password hint (9001:9001) instead of their own, but refreshing the page solved it.
Creating a new virtual host without choosing php version, then editing it and chosing php version, php remains inaccessible:
Editing virtual host by changing php version, changes are applied (site accessible and fopen status according to what was set on the UI).
All of the above without having restarted the server.
Clean Install of new (dev) webserver instance
Fix worked.
EDIT: on new test, can confirm that upgrade of an instance with virtualhost1, creating a new virtual host morphed virtualhost2 into virtualhost2 (instead of creating new vhost it took over the first one).
@dnutan I asked you to upgrade from the webserver:1.0.20-dev.1 the previous version before the fix about fopen is fixed, but you find a major issue relative to vhost, I am on it
Are you sure you dropped a new phpinfo file in the vhost, your test case did not mention it. By the way I cannot reproduce, without php the file is downloaded, with php the file is displayed an I can see the php settings as usual.