We have a self-hosted Miva site running on an apache server, and we're changing to a server that runs nginx (with no apache). I'm not a server expert so I've been stumbling through the setup on the dev site, and I've progressed to having a site that does run .mvc files, but can't load the Miva config. I followed along with some of the messages in this thread, so our setup is very similar: https://www.miva.com/forums/forum/on...ing-in-fastcgi
This is progress - before getting Empresa running I was getting 502 errors. So the question is why are we getting this configuration file error now? The config file is definitely in the directory specified in the nginx config (step 2 above). And that file is just a copy of cgi-bin/mivavm-v5.31/lib/config/3x.so, so I tried changing the nginx config like so:
But after updating the ownership of 3x.so to root:root and giving it 4755 permissions (same as the libmivaconfig.so copy), I was back to getting the same error as before.
Can anyone point me in the right direction?
- I downloaded the Linux / FastCGI / x64 version of Empresa and ran through the setup. Our dev site started out as a straight copy of our live site (which works), and it has a cgi-bin folder with engine v5.31, so in general I proceeded as if I was upgrading the engine (unzip some files, copy some files and folders, change the config file, rename/backup the old files, rename the new files to replace the old files). So far so good, I've done this before when upgrading from 5.2x to 5.31 on the apache server
- I added the following blurb to our nginx config:
Code:location ~ \.mvc$ { fastcgi_read_timeout 300; fastcgi_pass dev.example.com:8005; fastcgi_param MvCONFIG_LIBRARY /var/www/sites/dev.example.com/cgi-bin/libmivaconfig.so; include fastcgi_params; }
- I ran the command:
Code:spawn-fcgi -p 8005 -n -- /var/www/sites/dev.example.com/cgi-bin/mivavm-v5.31/bin/mivavm_fastcgi-v5.31 &
- I uploaded diagtool.mvc for testing
Configuration Error: Error loading configuration library: Unable to locate configuration file
Please contact the server administrator: webmaster@localhost
Please contact the server administrator: webmaster@localhost
This is progress - before getting Empresa running I was getting 502 errors. So the question is why are we getting this configuration file error now? The config file is definitely in the directory specified in the nginx config (step 2 above). And that file is just a copy of cgi-bin/mivavm-v5.31/lib/config/3x.so, so I tried changing the nginx config like so:
Code:
fastcgi_param MvCONFIG_LIBRARY /var/www/sites/dev.example.com/cgi-bin/mivavm-v5.31/lib/config/3x.so;
Can anyone point me in the right direction?
Comment