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 - TheRavenKing

Pages: 1 [2] 3 4 5
16
E-Mail / /usr/sbin/tmpwatch: No such file or directory
« on: March 09, 2017, 09:56:54 AM »
Hi All,

I am getting this message in my Anacron log, why does it happen and how to fix it?
Thank you

/etc/cron.daily/amavisd:

/etc/cron.daily/amavisd: line 1: /usr/sbin/tmpwatch: No such file or directory
/etc/cron.daily/cwp:

17
SSL / Hostname SSL with Letsencrypt, can't renew certificate
« on: March 06, 2017, 10:02:59 PM »
Hi All,

I have installed on my CentOSv6 with Apache the let's encrypt for the server, it works fine, but I can't renew it  :-\

Used these instructions in December last year....  http://wiki.centos-webpanel.com/hostname-ssl-with-letsencrypt

Error:

The following certs could not be renewed:
  /etc/letsencrypt/live/sub.domain.com/fullchain.pem (failure)
IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: sub.domain.com
   Type:   unauthorized
   Detail: Invalid response from
   http://sub.domain.com/.well-known/acme-challenge/UcnoQ8dI8D6PsGIMEpcvwTyPQL1ImGopjQqAsl0PBao:
   "
Not Found

Any ideas?

18
CentOS-WebPanel Bugs / Re: Strange Error(s)
« on: March 06, 2017, 09:30:40 PM »
Not at mine...

19
PHP / Re: Error Denied Php Switcher
« on: February 22, 2017, 01:23:26 PM »
Quote
I'm the only user and just use it to host a few simple domains and as an ftp backup server for 2 external servers.

Even then you need full security, because your the only user at risk, please don't!!! secure it as if there are 50 users, also your backups need to be safe, no discussion about that ;-)

20
PHP / Re: Error Denied Php Switcher
« on: February 22, 2017, 01:13:31 PM »
### Also make sure you have the sticky bit set on /tmp in case you changed that folder to 555

chmod +t /tmp

I just noticed I pasted old document, please swap the settings as follow:

UUID=48e6de4c8ed0a /tmp                    ext4    defaults,noexec,nosuid,nodev,noatime        1 2
UUID=231f1115b0c6c2 swap                    swap    defaults,noatime        0 0
tmpfs                   /dev/shm                tmpfs   defaults,noexec,nosuid,nodev,noatime        0 0

You have to reboot after making these changes, ignore my UUIDs as that's the hard disk id....

21
PHP / Re: Error Denied Php Switcher
« on: February 22, 2017, 11:44:52 AM »
CWP has not that intelligence ;-) lol

when I did my first compile/rebuild I discovered in the log some missing programs, so I added the following,  yum install -y ed re2c   just make sure you check the log files for any missing ones.

I sugggest you secure /tmp in this way

nano /etc/fstab, as you can see I have added some setting when you compare mine with yours.
The noatime makes it even faster as it avoids writing access time, no need for temp files... just read up about that parameter ;-)

UUID=48e6de4c8ed0a /tmp                    ext4    defaults,noatime        1 2
UUID=231f1115b0c6c2 swap                    swap    defaults,noatime        0 0
tmpfs                   /dev/shm                tmpfs   defaults,noexec,nosuid,nodev,noatime        0 0

Even better would be to create a seperated partition  for /tmp so it is out of reach for your system, but still protect it as suggested, it  really depends how strict you want to be in security, but with suPHP and modsecurity you are a little bit better off.
Install all the rest like maldet, rkhunter, rootkit and so on...

Hope that helps you.

22
PHP / Re: Error Denied Php Switcher
« on: February 22, 2017, 11:00:39 AM »
@karel,

When you rebuild php it uses the /tmp folder to retrieve all files, perhaps you made to many restrictions on your /tmp folder?

23
@karel,

Thank you, I was hoping I had overlooked a setting somewhere so it bahave like cPanel, but it  seems not, like you suggested chattr  is the  only option then so far, I really hope they make it like cPanel.

Thanks for your time to respond.

24
Thank you,  yes I tried that, but it didn't work out for me, hence I came with other solution.

25
Perhaps it's enough that you use for all images or other urls only // instead of the http:// or https://

26
Well I deleted 3.5GB of ioncube loaders with no obvious ill effects. Still wondering why so many copies were created. ???

If this still goes on,  try these settings in the php.ini and watch your temp folder ;-)

session.save_path = "/tmp"
session.gc_probability = 50
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.cache_expire = 180

It makes the clean up a bit faster....

27
@Sandeep,  sure I pressed fix it.

But I have 2 issues.

- I can't install php v.7 with the PHP selector.
- Apache Webserver      httpd dead but subsys locked

So, what's cwp going to do about it?

28
Crashed.....when trying to install php v7.x in the php selector.

part of log.

Nothing to do
buildconf: checking installation...
buildconf: autoconf version 2.63 (ok)
rebuilding aclocal.m4
rebuilding configure
configure.ac:276: error: Autoconf version 2.64 or higher is required
build/ax_check_compile_flag.m4:60: AX_CHECK_COMPILE_FLAG is expanded from...
autom4te: /usr/bin/m4 failed with exit status: 63
rebuilding main/php_config.h.in
configure.ac:276: error: Autoconf version 2.64 or higher is required
build/ax_check_compile_flag.m4:60: AX_CHECK_COMPILE_FLAG is expanded from...
autom4te: /usr/bin/m4 failed with exit status: 63
autoheader: '/usr/bin/autom4te' failed with exit status: 63
/usr/local/cwp/.conf/php_conf/php7.conf: line 1: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Stopping httpd: [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

Build Completed
###################

After a reboot it came with message

WARNING! You are not running CWP Apache and this could cause that your domains do not work!

under service status:
Apache Webserver      httpd dead but subsys locked

How to fix httpd dead but subsys locked?

29
Hi, Looks more an issue with modsecurity than anything else, have you ever checked the log file and the rules?

If you enable modsecurity, than try to create a folder with filezilla, and it doesn't work, then in the log file it shows the ID of the rule what stopped it.
Then you can disable that rule, but to be honest I have no such issues with my Apache config.

To disable a rule modify this file: /usr/local/apache/modsecurity-owasp-old/global_disabled_rules.conf

Menu, Security, Mod Security, configuration files [3]

30
Hi,

I created a folder /test
placed .htaccess file in it with following content:

AddHandler application/x-httpd-php56 .php

Checking the php info, it shows error:

Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Contents of File: /opt/alt/php56/usr/php/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/London"


Pages: 1 [2] 3 4 5