Yes, I've got a shell to a limited container, have access to logfiles, my content, but none of the configurations.
I didn't experience problems with read permissions yet, but I'm aware of this so I'm always testing after syncing new files. With the old setup, I never had problems.
To be clear: I had to remove the line "AddType ..." to make things work again
I've seen a 403 on a URL that is supposed to show an automatic directory listing (the old apache setup was configured to allow this), not yet investigated or fixed.
A quick "chmod -R ugo+r *" didn't fix it, so I guess I have to lookup the right directives to write into .htaccess. It's not my day job to maintain webpages, I've got a good understanding of how things work here, but for details I'll always have to look up them up. I just hate them now for this effort they put on me :rant:
Are your error logs telling you anything? I am so confused about how your .htaccess is affecting nginx, unless they specifically import it into the nginx config unless php-fpm is affected by your .htaccess file. Nginx shouldn't be using your .htaccess file at all.
To enable directory listings (if nginx is the one serving the static content), you add an "autoindex: on" to the location directive in the config of the virtual host.
location /sample {
autoindex: on;
}
I am really confused about what their intentions are. They are going to need to give you a way of modifying the configuration, I'd imagine, but I've never had to use nginx in a shared hosting environment. I've only seen Apache used in conjunction with htaccess and usually some sort of web-based server administration solution. Is this just a work in progress for them? If you had the time for the initial setup, you could probably get this up and running on your own vm on something like aws, google or a small cheap vps provider. You'd also have full root over the system, so you could lock down a lot of those open services to just your ip address. That type of setup wouldn't require a ton of maintenance. You could probably just run the updates on a cron job. And if you don't use anything more than apache, php, mysql, rsync and a few other services, it may not take a ton of time to setup either. But I can definitely understand the hesitation, especially if you can leave it to capable people to manage... But I am seriously :palm:ing at the way this hosting provider has handled this migration to nginx.
Nginx is a http proxy (that can additionally serve http requests).
Actually Nginx is a HTTP server that supports reverse proxy, it was written to address the 10K connection problem.
wordpress runs on php and apache. So you'd really only have to deal with installing the db and the weird things wordpress might need like mods for apache
Incorrect, I have a large client base using Nginx for Wordpress hosting without any issue. It simply outstrips Apache with resource utilization and performance.
502 can be caused by two things
1) If Nginx is configured as a reverse proxy, the 502 will be due to failure to communicate with the HTTP server behind it.
2) If Nginx is the HTTP server with a dynamic handler like php-fpm, it will be due to a failure to communicate with php-fpm.
You can determine which simply by checking if '.htaccess' is being used. If it works then you know you are being reversed proxied to another server, likely apache. If you are being reverse proxied ensure they have configured the proxy and HTTP server properly by forwarding the client's IP and using a module such as mod_rpaf or mod_remoteip to ensure it is logged and PHP uses it instead of the proxy server's IP. The easiest way to check is to run the following script:
<?PHP
echo $_SERVER['REMOTE_ADDR'];
?>
Be sure to test this under HTTPS also, checking that $_SERVER['HTTPS'] is also set as if they are terminating SSL on the reverse proxy PHP will assume no SSL unless they have catered for this.
Serving out the index.php file directly is a pretty big error, they practically just gave away the source code to your website. Since your website looks fairly simple, if you have any hard coded passwords in that file I suggest you change them ASAP.
If you are interested PM me, I am able to provide custom hosting of whatever you require, I own and operate servers in AU, EU and US that I can deploy to including cheap high performance VPS solutions with full root access.
Edit: Actually looking at your content if you can provide more information I would be interested in sponsoring your hosting.