Jump to content
Froxlor Forum
  • 0

rm /etc/nginx/sites-enabled/default ?


Davlyin Lafitte

Question

Posted

Hello, 

 

I'm currently trying to configure Froxlor on a Debian Nginx configured server, I'm currently using the default configuration file, I'm aware that removing this file will make the control panel and anything related to Nginx disappear from the web; But is keeping it as it is has any impact on the full functionality of Froxlor ? 

server {
        listen   80;
     

        root /www/;
        index index.php index.html index.htm;

        server_name ontweerp.com;

        location / {
                try_files $uri $uri/ /index.html;
        }

        error_page 404 /404.html;

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
              root /www/;
        }

        # pass the PHP scripts to FastCGI server listening on /var/run/php5-fpm.sock
        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
                
        }

}

Warm wishes,

Davlyin.

7 answers to this question

Recommended Posts

Posted

What's the config you pasted there? This is not the "default" vhost...but generally, you may delete it, it it's not used AFTER you setup froxlor and froxlor's own vhost got generated by the cronjob :)

Posted

Believe it or not, I found out that cron wasn't installed on my server, which brings me to another issue; In fact, shall I completely re-install Froxlor or is there a way to manually activate what wasn't before ? 

 

Thank you. 

Posted

I don't quite get what your problem is. Did you setup all services according to froxlor's config-templates? (as Admin -> "Configuration" -> Chose distribution -> chose category -> chose service/daemon to configure)

Posted

I did, but by deleting the "default" file [rm /etc/nginx/sites-enabled/default ], I can't access anything anymore. I had to write one back to access the control panel back. I assume a package was missing while installing Froxlor. 

Posted

I assume you did not follow the configuration completely and/or your cronjob did not run yet, try executing the following command in a shell:

php /var/www/froxlor/scripts/froxlor_master_cronjob.php --force

If you adjusted all your settings and configured all your services correctly, this should generate all the webserver configs for you

Posted

I must have skipped something critical, when running your following command I'm having an error:

chown: invalid user: `froxlorlocal:froxlorlocal'

I guess I'll just re-install everything as I got nothing important on the server, I'll keep you updated.

 

Many thanks! 

Posted

I figured what I've done wrong, I hope that might help anyone running into the same problem: 

 

After a LEMP stack, make sure you got cron installed prior installing Froxlor.

apt-get install cron

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...