PufferPanel won't load from link
I installed PufferPanel using the installation instructions or CentOS 7. I ran all of the following commands and setup my info when prompted:
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm sudo yum install nginx mariadb-server mariadb php56w-fpm php56w-common php56w-cli php56w-mcrypt php56w-pdo php56w-mysqlnd sudo systemctl start nginx sudo systemctl enable nginx sudo systemctl enable mariadb sudo systemctl start mariadb sudo systemctl start php-fpm sudo systemctl enable php-fpm sudo mysql_secure_installation mkdir -p /srv && cd /srv curl -L -o pufferpanel.tar.gz https://git.io/vaOuN tar -xf pufferpanel.tar.gz cd pufferpanel ./pufferpanel install
When the installation was complete I tried to visit the link I setup, but the webpage timed out. Then I updated CentOS to the latest version to see if that would work, but the webpage still times out. It's been about 3 hours and it still times out. I am currently running CentOS 7.3.1611. Any help would be much appreciated!
Timeout implies that the firewall you have in place is blocking the connection.
You need to allow port 80 (and 5656 if Scales is on that server) for the panel to work
@LordRalex Hey, thanks. So I opened ports 80 and 5656 using TCP protocol and now I get this: http://www.awesomescreenshot.com/image/1997825/3e90fc68e7f7a14ff69b91fddb1c0e3d
the commands I used were:
firewall-cmd --zone=public --add-port=80/tcp --permanent success firewall-cmd --zone=public --add-port=5656/tcp --permanent success sudo firewall-cmd --reload
When you installed the panel, it told you to enter the site URL. Are you using that same URL to access this panel?
@LordRalex yes, I'm 99% sure. I wrote it down but I guess it's possible I spelled it wrong when I entered it. Is there a way to check/change the panel URL?
The easier way is to look at the server_name in the Nginx config
@LordRalex hmmm I must be doing something wrong. For the first command I get "no such file or directory" and for the second I get "permission denied" (I am root user).
cat /etc/nginx/conf.d/<file listed above>
Do those return errors?
@LordRalex yes those two worked. The first printed "pufferpanel.conf" the second printed the config file.
Okay. In that config then is the "server_name" line that is what you put when you installed the software.
You may also want to restart nginx just in case it did not before: systemctl restart nginx
Does using that server_name work?
systemctl restart nginx
still doesn't work, even after restarting nginx.
Let's try this then:
Where it has listen: 80, change it to this:
listen 80 default_server;
Restart nginx and let's see if that works for it.
What URL does your browser show in the windows as well
@LordRalex sorry so how would I change that line in the config so that it's the default server?
Browser shows http://184.108.40.206/panel (same as config)
Maybe it's an Nginx problem? I was looking at this: https://www.scalescale.com/tips/nginx/404-not-found-error-at-nginx/ and it made me think maybe it was one of those issues.
You will edit the pufferpanel.conf in the folder listed above.
In that file, is a line that says "listen 80;"
That line needs to change to say "listen 80 default_server;"
@LordRalex Okay so I changed it but it is still giving a 404 error.
And you restarted nginx, correct?
Can you post the entire pufferpanel.conf, along with the nginx.conf located in /etc/nginx?
@LordRalex So I figured out it was SELinux causing the issue. I disabled it and now I can access the panel. Thank you for your help!