+2
Under vurdering
Ajenti 403 Forbidden
Hi,
I have a problem. I installed Ajenti and Ajenti V on Cent OS and everything worked fine until I restarted my server and I have two problems now.
The first problem is that I have to type the command below every time I start/restart the server for Ajenti to run properly.
server ajenti restart
I tried to run the command: chkconfig --add ajenti and does not work.
The second problem is the page below showing up on every path on the server.
nginx
I checked the file permission and is set to 755.
Below you have some screenshots from Ajenti websites panel to understand better what configuration I use.
I am new to Linux and Ajenti and I don't know how to debug so please tell me how can I help you in understanding what causes this problem.
Thank you!
I have a problem. I installed Ajenti and Ajenti V on Cent OS and everything worked fine until I restarted my server and I have two problems now.
The first problem is that I have to type the command below every time I start/restart the server for Ajenti to run properly.
server ajenti restart
I tried to run the command: chkconfig --add ajenti and does not work.
The second problem is the page below showing up on every path on the server.
403 Forbidden
nginx
I checked the file permission and is set to 755.
Below you have some screenshots from Ajenti websites panel to understand better what configuration I use.
I am new to Linux and Ajenti and I don't know how to debug so please tell me how can I help you in understanding what causes this problem.
Thank you!
Kundesupport af UserEcho
2. Are you trying to access websites that you have configured with Ajenti V?
3. Zip your /etc/nginx/conf.d and send it to e@ajenti.org along with /etc/ajenti/vh.json
2. Yes
3. I just emailed the files in an archive to you. The email has the subject: Ajenti 403 Forbidden - Andrei R.
4. I forgot to mention that I use CentOS 7
P.S. you didn't have to paste wordpress-specific custom config bits into the phpmyadmin configuration.
[warn] 1566#0: server name "192.168.2.5/phpMyAdmin" has suspicious symbols in /etc/nginx/conf.d/phpmyadmin.conf:10
And a lot of these:
[alert] 2685#0: setrlimit(RLIMIT_NOFILE, 100000) failed (1: Operation not permitted)
2. Have you manually lowered the number-of-files limits on the system? See: http://forum.nginx.org/read.php?2,248426,248427
2. I have not modified anything but I followed the instructions and rebooted my server and still nothing.
Restart NGINX and see if rlimit message still appears in the log.
Every time I reboot my server I have to use the commands:
service ajenti restart
and I have to login into ajenti panel and go to Websites and press Restart Websites otherwise I get the error Bad Gateway
Also, your web-related services (php5-fpm, nginx etc) might be disabled in autostart (use chkconfig on).
check whether
# sestatus -b | grep httpd_setrlimit
httpd_setrlimit off
# setsebool -P httpd_setrlimit on
# sestatus -b | grep httpd_setrlimit
httpd_setrlimit on
#httpd_setrlimit - allows Nginx to adjust the number of file descriptors
Hope this helps. Thanks Eugene for nice ajenti.
Many thanks for this one!