Open wyly44 opened 7 years ago
Hi have you solved this problem? Because I have exactly the same problem.
Hello I have not solved it, I do not know how If you do, please post the solution Thank you
First, do whereis nginx
to find out where the Nginx install location is.
then use this:
Nginx Offical Document
The error occurs probably because you write the wrong location for Nginx install.
nginx is present in 2 locations...and even after removing its stil present...
First, do
whereis nginx
to find out where the Nginx install location is. then use this: Nginx Offical Document The error occurs probably because you write the wrong location for Nginx install.
Hmmm, "sudo apt install nginx -y" and where is wrong location?)
Hello I use debian 8.6
When i install nginx pagespeed automatically
bash <(curl -f -L -sS https://ngxpagespeed.com/install) \
--nginx-version latest --dynamic-module
--with-http_ssl_module About to configure nginx with: ./configure --add-dynamic-module=/root/ngx_pagespeed-latest-stable --with-http_ssl_module Does this look right? [Y/n] y
to load the ngx_pagespeed midule you'll neeed to add: load module "modules/ngx_pagespeed.so" at top of your main nginx configuration file.
if this a new installation you probably need an init script to manege starting and stopping the nginx servide
you' ll also need to configure ngx_pagespeed if you haven't yet
if I do
service nginx start or service nginx restart stop ..... tells me
Unit nginx.service failed to load: No such file or directory.
I have copied Http://kbeezie.com/debian-ubuntu-nginx-init-script/ within
/etc/init.d/nginx Because it does not exist
If i install nginx so apt-get install nginx The folders and files are in another different location
/etc/nginx/ is empaty
I am doing a new and clean installation
I need to do this with the automatic installation?
Load_module "modules / ngx_pagespeed.so"; where ? when?
The manual installation?As in the tutorial Manual Install Alternatively, you can install ngx_pagespeed manually by following the commands below.
https://modpagespeed.com/doc/build_ngx_pagespeed_from_source places the ngnix files in the same folders as
apt-get install nginx
How can i solve it?
Thank you