Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Darkroom

Pages: 1 2 3 [4] 5 6
46
Apache / Re: Default Page Displayed for all domains
« on: September 25, 2016, 04:48:14 AM »
^^^ This happened to me recently. I noticed that the apache status was orange (subsystem still running). I tried a service httpd restart and it failed because it couldn't stop http. So a killall -9 httpd it was. Service httpd restart was reportedly successful but all domains gave the default test page. I followed the advice in this thread and nothing helped. A couple apache and vhost rebuilds and nothing. I logged out and logged back in and got the  "WARNING! You are not running CWP Apache and this could cause that your domains do not work!" error. Clicked "Try Fixing this" and it did.

I'm not sure what went wrong or how it was actually fixed so I don't really feel like I have complete closure on this issue.

47
How to / Re: How to Optimize CWP (Collecting Ideas)
« on: September 21, 2016, 08:40:52 PM »
With varnish you can set the cash file to work out of ram with a malloc statement. You do have to do some rule writing research to strip user agents and cookies so you don't end up caching multiple copies of the same thing. Varnish is actually super flexible and pretty awesome but you do need to learn how to use it. Just installing it without customizing the rules to your needs won't yield much benefit.

48
E-Mail / InnoDB error in maillog
« on: September 18, 2016, 06:13:38 PM »
In /var/log/maillog I'm seeing a lot of these:
Sep 17 23:31:14 srv1 postfix/proxymap[4575]: warning: mysql query failed: Unknown table engine 'InnoDB'

A user complained it took 2hrs to receive an email and I'm wondering if this has something to do with it? I know CWP usually uses an older version of SQL that uses MySam and attempts to but InnoDB directives in my.cnf have always errored out on me.

So..... what's up with that?

49
CentOS-WebPanel Bugs / Re: /usr/local/cwpsrv/htdocs/admin
« on: September 18, 2016, 07:07:19 AM »
cd  /usr/local/cwpsrv/htdocs/admin
lsattr
----i--------e- ./admin
-------------e- ./index.html
-------------e- ./resources

"The "I" attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using chattr(1), although it can be displayed by lsattr(1)."

??

On my system I get 404 if I try to go to http://my.ip.addr/admin even though there's an index.html. same if I switch it to port 2030.

50
MySQL / Re: MySql auto shutdown at night
« on: September 13, 2016, 11:41:20 AM »
Happened to me last night, 4am "normal shutdown" in the mysql log file. CWP version: 0.9.8.50 MySQL didn't restart on it's own but came up when I manually restarted it.  :o

/var/log/cron
Sep 13 03:36:01 srv1 run-parts(/etc/cron.daily)[31458]: starting cwp
Sep 13 03:36:04 srv1 run-parts(/etc/cron.daily)[31561]: finished cwp

/var/log/mysqld
160913  3:36:03 [Note] /usr/libexec/mysqld: Normal shutdown
160913  3:36:03 [Note] Event Scheduler: Purging the queue. 0 events
160913  3:36:05 [Note] /usr/libexec/mysqld: Shutdown complete
160913 03:36:05 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

Maybe the problem occurs if it takes longer for mysqld to shut down than it does for the script to run?

51
Updates / Re: Undefined variables after update to 0.9.8.15
« on: June 12, 2016, 05:58:11 PM »
If I log out and log back in again the:
Notice: Undefined index: lic in /usr/local/cwpsrv/htdocs/admin/index.php(1) : eval()'d code(1) : eval()'d code on line 44

goes away.  :o

52
Updates / Re: Undefined variables after update to 0.9.8.15
« on: June 08, 2016, 01:14:32 PM »
This just started happening for me too.

53
PHP / Re: php-cgi segfaults on libselinux?
« on: March 22, 2016, 01:12:32 AM »
 :( Well I hope it can hold on for a bit. It's a production colo server about 2hrs away from me. I have a spare but the spare needs a couple of SSDs before I can start the OS/CWP install. So it'll probably be a minute before I get that all done.

54
PHP / php-cgi segfaults on libselinux?
« on: March 17, 2016, 08:03:48 PM »
I was just checking my dmesg and saw these errors:
Code: [Select]
php-cgi[28804]: segfault at 7fe02fd6005e ip 00007fe02fd6005e sp 00007fe01bc55db8 error 14
php-cgi[28806]: segfault at 7fe02fd6005e ip 00007fe02fd6005e sp 00007fe01a853db8 error 14
php-cgi[28805]: segfault at 7fe02fd60062 ip 00007fe02fd60062 sp 00007fe01b254db8 error 14 in libselinux.so.1[7fe0322ff000+1d000]
 in libselinux.so.1[7fe0322ff000+1d000] in libselinux.so.1[7fe0322ff000+1d000]
[7f5ccd468000+1d000]

Weird thing is I have SELinux set to disabled. Any ideas? I don't even know where to start, maybe yum reinstall?

55
How to / Re: mod_cloudflare doesn't work with successful installtion!
« on: March 02, 2016, 03:48:16 PM »
Are you running varnish? That's usually the culprit when it comes to Apache is logging the server's own IP as the source of all traffic.

56
Installation / Re: firewall configuration
« on: February 14, 2016, 07:46:28 PM »
The firewall should by default allow traffic to ssh, smtp, pop, http, https, named, CWP, and CWP-ssl,etc. I'd caution you about this: "I don't want to spend hours and hours reading up on this ..." Linux gives you plenty of rope to hang yourself with. It's super flexible, super powerful, and not knowing what you're doing and not wanting to know is risky at best. Think of it like this, Linux is like the Hole Hog drill. The Hole Hog is basically a powerful motor with a drill bit attached to it and a pipe for a handle. It will go through just about anything. If the bit binds it can literally throw the operator, it's that strong. If you don't want to learn how to operated it safely you might be better off with a cordless drill.

57
Varnish / Re: Varnish Settings
« on: February 01, 2016, 04:27:27 PM »
Those settings are configured in /etc/varnish/default.vcl 

58
CentOS-WebPanel GUI / Re: IP addresses of all visitors ???
« on: January 25, 2016, 04:45:48 PM »
I use:

Code: [Select]
sub vcl_recv { include "/etc/varnish/sites.vcl";
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
[insert the rest of your vcl_recv]
}

This alone won't work because all you're doing is passing the info to apache, you also have to tell apache to log it:
In /usr/local/conf/httpd.conf
change your logging format to:
LogFormat "%{X-Forwarded-For}i %l %u %t %v \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
and make sure it says "combined" after your logging path:
CustomLog "/usr/local/apache/logs/access_log" combined
restart apache (service httpd restart)

59
CentOS-WebPanel GUI / Re: IP addresses of all visitors ???
« on: January 25, 2016, 02:48:31 AM »
The client makes an http request to your domain and gets directed to the varnish server, which is mostly transparent to the end user. The varnish server checks its cache and if it has the file it serves it. If not it asks the apache server for the file. The apache server knows nothing about the end user unless you tell varnish to tell apache about it. You can't pass the client's ip straight through because apache can't reply directly back to the client, the client will drop the packets, so you set up a custom field that has the client's ip in it. Now all you have to do is tell Apache to log that field instead of the IP and you're in business.

The link I mentioned above explains how to do this, but unless you're will to spend some time learning how to configure varnish there's not much point to running it.

60
CentOS-WebPanel GUI / Re: IP addresses of all visitors ???
« on: January 24, 2016, 07:59:44 PM »
Are you running varnish? It does that out of the box, you need to configure it to pass the IP back in a custom header then tell apache to log that header instead of the IP. There's a discussion of how to do that here:
http://forum.centos-webpanel.com/apache/website-server-logs-wordpress-etc/

Pages: 1 2 3 [4] 5 6