Your comments
Hm, I think I just need good tutorial on subdomain creation.. I am probaly just doing it wrong. :D
fa 10 anys
when I disable subdomain, everything starts working great for main site. :P
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Restart made
by making session dir, does that mean I needed to make new folder there named session :P? or that was what I did..
Maybe I don't have all services enabled, for example if I make restart to server, I need to start mysql again. :P
nginx: configuration file /etc/nginx/nginx.conf test is successful
Restart made
by making session dir, does that mean I needed to make new folder there named session :P? or that was what I did..
Maybe I don't have all services enabled, for example if I make restart to server, I need to start mysql again. :P
PHP-FPM service (tick)
NGINX config test (tick)
NGINX service (tick)
Also check if /var/lib/php/session exists
Can't see that one, how do create it/enable it :P?
NGINX config test (tick)
NGINX service (tick)
Also check if /var/lib/php/session exists
Can't see that one, how do create it/enable it :P?
Subdomain, bunch of this, is my directory in wrong place?:
2014/08/07 14:19:38 [error] 3686#0: *232 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 14:22:11 [error] 3686#0: *233 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 14:56:04 [error] 3686#0: *236 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 15:31:23 [error] 3686#0: *237 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 15:52:21 [error] 3686#0: *239 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:47:50 [error] 3686#0: *240 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "app.mailingboss.com"
2014/08/07 16:47:53 [error] 3686#0: *244 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:47:57 [error] 3686#0: *244 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:51:34 [error] 4257#0: *248 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
Main domain:
014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in /srv/mailingboss/wp-content/themes/mailingboss/header.php on line 1" while reading response header from upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/wp-admin/themes.php?page=core_functions.php"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/wp-admin/themes.php?page=core_functions.php"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in /srv/mailingboss/wp-content/themes/mailingboss/header.php on line 1" while reading response header from upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET /wp-content/plugins/ultimate-under-construction/includes/js/flipclock.min.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET /wp-content/plugins/ultimate-under-construction/includes/js/flipclock.min.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/"
Best wishes,
Silver
2014/08/07 14:19:38 [error] 3686#0: *232 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 14:22:11 [error] 3686#0: *233 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 14:56:04 [error] 3686#0: *236 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 15:31:23 [error] 3686#0: *237 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 15:52:21 [error] 3686#0: *239 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:47:50 [error] 3686#0: *240 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "app.mailingboss.com"
2014/08/07 16:47:53 [error] 3686#0: *244 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:47:57 [error] 3686#0: *244 directory index of "/srv/app_mailingboss/" is forbidden, client: 31.28.243.113, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
2014/08/07 16:51:34 [error] 4257#0: *248 directory index of "/srv/app_mailingboss/" is forbidden, client: 84.50.5.187, server: app.mailingboss.com, request: "GET / HTTP/1.1", host: "www.mailingboss.com"
Main domain:
014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in /srv/mailingboss/wp-content/themes/mailingboss/header.php on line 1" while reading response header from upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/wp-admin/themes.php?page=core_functions.php"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/wp-admin/themes.php?page=core_functions.php"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in /srv/mailingboss/wp-content/themes/mailingboss/header.php on line 1" while reading response header from upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET /wp-content/plugins/ultimate-under-construction/includes/js/flipclock.min.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/"
2014/08/07 12:33:42 [error] 3241#0: *140 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: open(/var/lib/php/session/sess_37sd5j7krec22nn1ihp8anc836, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0" while reading upstream, client: 84.50.5.187, server: mailingboss.com, request: "GET /wp-content/plugins/ultimate-under-construction/includes/js/flipclock.min.js HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fcgi-mailingbosscom-php-fcgi-0.sock:", host: "www.mailingboss.com", referrer: "http://www.mailingboss.com/"
Best wishes,
Silver
Probably it's me being beginner :P
Site works without subdomain, but once I add subdomain, it dies :P
Site works without subdomain, but once I add subdomain, it dies :P
Hey, thanks for support :)
{
"websites": [
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"path_append_pattern": false,
"pattern": "[^/]\\.php(/|$)",
"custom_conf": "# Zero-day exploit defense.\n# http://forum.nginx.org/read.php?2,88845,page=3\n# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.\n# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.\ntry_files $uri =404;\nfastcgi_split_path_info ^(.+\\.php)(/.+)$;",
"path": "",
"match": "regex",
"backend": {
"params": {
"php_admin_values": "open_basedir = none;",
"php_flags": ""
},
"type": "php-fcgi"
}
}
],
"custom_conf": "# This order might seem weird - this is attempted to match last if rules below fail.\nlocation / {\n\ttry_files $uri $uri/ /index.php?$args;\n}\n\n# Add trailing slash to */wp-admin requests.\nrewrite /wp-admin$ $scheme://$host$uri/ permanent;\n\n# Directives to send expires headers and turn off 404 error logging.\nlocation ~* ^.+\\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {\n access_log off; log_not_found off; expires max;\n}\n\nlocation = /favicon.ico {\n\tlog_not_found off;\n\taccess_log off;\n}\nlocation = /robots.txt {\n\tallow all;\n\tlog_not_found off;\n\taccess_log off;\n}\n# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~ /\\. {\n\tdeny all;\n}\n# Deny access to any files with a .php extension in the uploads directory\n# Works in sub-directory installs and also in multisite network\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~* /(?:uploads|files)/.*\\.php$ {\n\tdeny all;\n}",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"custom_conf_toplevel": "",
"name": "app.mailingboss.com",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-pureftpd.pureftpd.PureFTPDExtension": {
"username": "appmailingbosscom",
"password": "",
"user": null,
"created": true
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"users": [
{
"password": "",
"name": "appmailingboss"
}
],
"databases": [
{
"name": "appmailingbosscom"
}
]
}
},
"domains": [
{
"domain": "app.mailingboss.com"
}
],
"root": "/srv/app_mailingboss",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
},
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"path_append_pattern": false,
"pattern": "[^/]\\.php(/|$)",
"custom_conf": "# Zero-day exploit defense.\n# http://forum.nginx.org/read.php?2,88845,page=3\n# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.\n# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.\ntry_files $uri =404;\nfastcgi_split_path_info ^(.+\\.php)(/.+)$;",
"path": "",
"match": "regex",
"backend": {
"params": {
"php_admin_values": "open_basedir = none;",
"php_flags": ""
},
"type": "php-fcgi"
}
}
],
"custom_conf": "# This order might seem weird - this is attempted to match last if rules below fail.\nlocation / {\n\ttry_files $uri $uri/ /index.php?$args;\n}\n\n# Add trailing slash to */wp-admin requests.\nrewrite /wp-admin$ $scheme://$host$uri/ permanent;\n\n# Directives to send expires headers and turn off 404 error logging.\nlocation ~* ^.+\\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {\n access_log off; log_not_found off; expires max;\n}\n\nlocation = /favicon.ico {\n\tlog_not_found off;\n\taccess_log off;\n}\nlocation = /robots.txt {\n\tallow all;\n\tlog_not_found off;\n\taccess_log off;\n}\n# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~ /\\. {\n\tdeny all;\n}\n# Deny access to any files with a .php extension in the uploads directory\n# Works in sub-directory installs and also in multisite network\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~* /(?:uploads|files)/.*\\.php$ {\n\tdeny all;\n}",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"custom_conf_toplevel": "",
"name": "mailingboss.com",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-pureftpd.pureftpd.PureFTPDExtension": {
"username": "mailingbosscom",
"password": "",
"user": null,
"created": true
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"users": [
{
"password": "",
"name": "mailingbosscom"
}
],
"databases": [
{
"name": "mailingbosscom"
}
]
}
},
"domains": [
{
"domain": "mailingboss.com"
}
],
"root": "/srv/mailingboss",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
}
]
}
{
"websites": [
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"path_append_pattern": false,
"pattern": "[^/]\\.php(/|$)",
"custom_conf": "# Zero-day exploit defense.\n# http://forum.nginx.org/read.php?2,88845,page=3\n# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.\n# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.\ntry_files $uri =404;\nfastcgi_split_path_info ^(.+\\.php)(/.+)$;",
"path": "",
"match": "regex",
"backend": {
"params": {
"php_admin_values": "open_basedir = none;",
"php_flags": ""
},
"type": "php-fcgi"
}
}
],
"custom_conf": "# This order might seem weird - this is attempted to match last if rules below fail.\nlocation / {\n\ttry_files $uri $uri/ /index.php?$args;\n}\n\n# Add trailing slash to */wp-admin requests.\nrewrite /wp-admin$ $scheme://$host$uri/ permanent;\n\n# Directives to send expires headers and turn off 404 error logging.\nlocation ~* ^.+\\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {\n access_log off; log_not_found off; expires max;\n}\n\nlocation = /favicon.ico {\n\tlog_not_found off;\n\taccess_log off;\n}\nlocation = /robots.txt {\n\tallow all;\n\tlog_not_found off;\n\taccess_log off;\n}\n# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~ /\\. {\n\tdeny all;\n}\n# Deny access to any files with a .php extension in the uploads directory\n# Works in sub-directory installs and also in multisite network\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~* /(?:uploads|files)/.*\\.php$ {\n\tdeny all;\n}",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"custom_conf_toplevel": "",
"name": "app.mailingboss.com",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-pureftpd.pureftpd.PureFTPDExtension": {
"username": "appmailingbosscom",
"password": "",
"user": null,
"created": true
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"users": [
{
"password": "",
"name": "appmailingboss"
}
],
"databases": [
{
"name": "appmailingbosscom"
}
]
}
},
"domains": [
{
"domain": "app.mailingboss.com"
}
],
"root": "/srv/app_mailingboss",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
},
{
"maintenance_mode": false,
"locations": [
{
"custom_conf_override": false,
"path_append_pattern": false,
"pattern": "[^/]\\.php(/|$)",
"custom_conf": "# Zero-day exploit defense.\n# http://forum.nginx.org/read.php?2,88845,page=3\n# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.\n# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.\ntry_files $uri =404;\nfastcgi_split_path_info ^(.+\\.php)(/.+)$;",
"path": "",
"match": "regex",
"backend": {
"params": {
"php_admin_values": "open_basedir = none;",
"php_flags": ""
},
"type": "php-fcgi"
}
}
],
"custom_conf": "# This order might seem weird - this is attempted to match last if rules below fail.\nlocation / {\n\ttry_files $uri $uri/ /index.php?$args;\n}\n\n# Add trailing slash to */wp-admin requests.\nrewrite /wp-admin$ $scheme://$host$uri/ permanent;\n\n# Directives to send expires headers and turn off 404 error logging.\nlocation ~* ^.+\\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {\n access_log off; log_not_found off; expires max;\n}\n\nlocation = /favicon.ico {\n\tlog_not_found off;\n\taccess_log off;\n}\nlocation = /robots.txt {\n\tallow all;\n\tlog_not_found off;\n\taccess_log off;\n}\n# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~ /\\. {\n\tdeny all;\n}\n# Deny access to any files with a .php extension in the uploads directory\n# Works in sub-directory installs and also in multisite network\n# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)\nlocation ~* /(?:uploads|files)/.*\\.php$ {\n\tdeny all;\n}",
"ssl_key_path": "",
"owner": "root",
"ssl_cert_path": "",
"custom_conf_toplevel": "",
"name": "mailingboss.com",
"enabled": true,
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-pureftpd.pureftpd.PureFTPDExtension": {
"username": "mailingbosscom",
"password": "",
"user": null,
"created": true
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"users": [
{
"password": "",
"name": "mailingbosscom"
}
],
"databases": [
{
"name": "mailingbosscom"
}
]
}
},
"domains": [
{
"domain": "mailingboss.com"
}
],
"root": "/srv/mailingboss",
"ports": [
{
"spdy": false,
"ssl": false,
"host": "*",
"port": 80,
"default": false
}
]
}
]
}
Customer support service by UserEcho