Open nutmix opened 1 year ago
So Ive spent many days trying to get his script working with standard ubutnu 18. I notice that the installer ignores the existing apache2 instance, and tries to install nginx, which of course conflicts (as both are operating on port 80).
I rebuild the server from scratch, and purged apache2, then tried this installer again.
I get the same error messages at the end of the script.
Also, it doesnt configure the virtual host, and it doesn't say this is required.
I tried manually editing the default vhost, and added:
root /var/www/webpagetest/www;
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
limit_except GET POST HEAD {
deny all;
}
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/webpagetest/www$fastcgi_script_name;
fastcgi_param HTTP_MOD_REWRITE On;
include fastcgi.conf;
}
include /var/www/webpagetest/www/nginx.conf;
However, now I cant restart nginx, with this error:
Dec 08 13:39:45 xxx.net systemd[1]: Starting A high performance web server and a reverse proxy server... Dec 08 13:39:45 xxx.net nginx[20121]: nginx: [emerg] duplicate location "/" in /var/www/webpagetest/www/nginx.conf:26
So the instructions on the webpagetest site conflict directly with the installer script.
ran this script as a normal user with sudo (i.e. not root): bash <(curl -s https://raw.githubusercontent.com/WPO-Foundation/wptserver-install/master/ubuntu.sh)
The script produced no errors, except at the end it showed this:
if I look in /var/www I see:
html webpagetest wptserver-install
So the install script did do something.
i tried pointing the document root at /var/www/webpagetest/www
and now I get the following in the browser when I hit my webserver:
I tried to restart apache, but it wont, because the installer has installed nginx which conflicts. The nginx which the installer has installed is broken (e.g. php doesnt work).