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.
16
CentOS-WebPanel Bugs / File Management -> Server logs -> sort does not work
« on: September 09, 2016, 11:14:41 PM »
Maybe someone has already reported ... but I have seen it now.
In File Management -> Server logs, the sort parameter (filename, size, permissions, etc.) does not work.
In File Management -> Server logs, the sort parameter (filename, size, permissions, etc.) does not work.
17
Information / Sometimes my sites go off
« on: September 09, 2016, 11:08:31 PM »
it has happened a couple of times, most recently yesterday.
Going to visit my sites is the warning impossible to get to the site or server has not responded.
Entering cwp everything is normal. All active services, no error or visible problem.
Restarting the server via ssh, the sites back online and everything is back to work.
What can it be? there is a way to understand what has happened?
Whereas I had to disable some logs because they ate all the space ...
Going to visit my sites is the warning impossible to get to the site or server has not responded.
Entering cwp everything is normal. All active services, no error or visible problem.
Restarting the server via ssh, the sites back online and everything is back to work.
What can it be? there is a way to understand what has happened?
Whereas I had to disable some logs because they ate all the space ...
18
E-Mail / Some email problem ...
« on: September 06, 2016, 09:30:26 PM »I touched a bit postfix configuration, then I put everything back as in the beginning, but some errors but remained ...
Fortunately, I do not need the email (otherwise it was a mess), but if you can solve it might be better ... maybe the server generally works better ...
These errors can be resolved?
19
CentOS 6 Problems / Re: Crontab will not work
« on: August 24, 2016, 03:46:19 PM »
Nothing ... still not working ...
I made these 2 files. The first writes the timestamp in a file.
It runs via cronjob every 30 minutes.
The second reads the file with the date.
It does not work ... That damned date never changes.
I made these 2 files. The first writes the timestamp in a file.
Code: [Select]
$nome_file_index = $_SERVER['DOCUMENT_ROOT']."/cron_test.txt";
chmod($nome_file_index, 0666);
$file = fopen($nome_file_index, "w") ;
fwrite($file, time());
fclose($file);
It runs via cronjob every 30 minutes.
Code: [Select]
0 * * * * /usr/local/bin/php /home/pornupda/public_html/cron_test.php
30 * * * * /usr/local/bin/php /home/pornupda/public_html/cron_test.php
The second reads the file with the date.
Code: [Select]
$filename = "cron_test.txt";
$handle = fopen($filename, "r");
$crontest = fread($handle, filesize($filename));
echo 'Last cron '.date ("D d M Y H:i", $crontest);
It does not work ... That damned date never changes.
20
CentOS 6 Problems / Re: Crontab will not work
« on: August 22, 2016, 08:27:58 PM »
If I type via ssh crontab -e, this is the result
But it is normal ??
Code: [Select]
~
"/tmp/crontab.7Z7B4W" 0L, 0C
But it is normal ??
21
CentOS 6 Problems / Re: Crontab will not work
« on: August 22, 2016, 07:27:33 PM »
No, I want to use the server crontab. Why should I use an external service? for a fee. It is stupid.
22
CentOS 6 Problems / Re: Crontab will not work
« on: August 21, 2016, 09:04:18 PM »
Does not work...
These are the log. There you see something strange
My test crontab was reduced to sending a mail ... but the email never arrives ...
CWP is on droplet digitalocean, digitalocean can create problems to the crontab?
These are the log. There you see something strange
Code: [Select]
Aug 21 00:00:01 centos-1gb-blr1-01 CROND[29994]: (root) CMD (/usr/sbin/csf --lfd restart > /dev/null 2>&1)
Aug 21 00:00:01 centos-1gb-blr1-01 CROND[29995]: (root) CMD (/usr/local/bin/svcMonitor)
Aug 21 00:01:01 centos-1gb-blr1-01 CROND[30523]: (root) CMD (run-parts /etc/cron.hourly)
Aug 21 00:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[30523]: starting 0anacron
Aug 21 00:01:01 centos-1gb-blr1-01 anacron[30532]: Anacron started on 2016-08-21
Aug 21 00:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[30534]: finished 0anacron
Aug 21 00:01:01 centos-1gb-blr1-01 anacron[30532]: Jobs will be executed sequentially
Aug 21 00:01:01 centos-1gb-blr1-01 anacron[30532]: Normal exit (0 jobs run)
Aug 21 00:20:01 centos-1gb-blr1-01 CROND[328]: (root) CMD (/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php > /dev/null 2>&1)
Aug 21 01:00:01 centos-1gb-blr1-01 CROND[5144]: (root) CMD (/usr/local/bin/svcMonitor)
Aug 21 01:00:01 centos-1gb-blr1-01 CROND[5145]: (root) CMD (/usr/sbin/raid-check)
Aug 21 01:01:01 centos-1gb-blr1-01 CROND[5712]: (root) CMD (run-parts /etc/cron.hourly)
Aug 21 01:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[5712]: starting 0anacron
Aug 21 01:01:01 centos-1gb-blr1-01 anacron[5721]: Anacron started on 2016-08-21
Aug 21 01:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[5723]: finished 0anacron
Aug 21 01:01:01 centos-1gb-blr1-01 anacron[5721]: Jobs will be executed sequentially
Aug 21 01:01:01 centos-1gb-blr1-01 anacron[5721]: Normal exit (0 jobs run)
Aug 21 02:00:01 centos-1gb-blr1-01 CROND[14245]: (root) CMD (/usr/local/bin/svcMonitor)
Aug 21 02:01:01 centos-1gb-blr1-01 CROND[14698]: (root) CMD (run-parts /etc/cron.hourly)
Aug 21 02:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[14698]: starting 0anacron
Aug 21 02:01:01 centos-1gb-blr1-01 anacron[14707]: Anacron started on 2016-08-21
Aug 21 02:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[14709]: finished 0anacron
Aug 21 02:01:01 centos-1gb-blr1-01 anacron[14707]: Jobs will be executed sequentially
Aug 21 02:01:01 centos-1gb-blr1-01 anacron[14707]: Normal exit (0 jobs run)
Aug 21 03:00:01 centos-1gb-blr1-01 CROND[21114]: (root) CMD (/usr/local/bin/svcMonitor)
Aug 21 03:01:01 centos-1gb-blr1-01 CROND[21582]: (root) CMD (run-parts /etc/cron.hourly)
Aug 21 03:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[21582]: starting 0anacron
Aug 21 03:01:01 centos-1gb-blr1-01 anacron[21591]: Anacron started on 2016-08-21
Aug 21 03:01:01 centos-1gb-blr1-01 run-parts(/etc/cron.hourly)[21593]: finished 0anacron
Aug 21 03:01:01 centos-1gb-blr1-01 anacron[21591]: Will run job `cron.daily' in 27 min.
Aug 21 03:01:01 centos-1gb-blr1-01 anacron[21591]: Will run job `cron.weekly' in 47 min.
Aug 21 03:01:01 centos-1gb-blr1-01 anacron[21591]: Jobs will be executed sequentially
Aug 21 03:28:01 centos-1gb-blr1-01 anacron[21591]: Job `cron.daily' started
Aug 21 03:28:01 centos-1gb-blr1-01 run-parts(/etc/cron.daily)[25967]: starting certwatch
Aug 21 03:28:01 centos-1gb-blr1-01 run-parts(/etc/cron.daily)[25977]: finished certwatch
Aug 21 03:28:01 centos-1gb-blr1-01 run-parts(/etc/cron.daily)[25967]: starting cwp
Aug 21 03:28:16 centos-1gb-blr1-01 run-parts(/etc/cron.daily)[26102]: finished cwp
Aug 21 03:28:16 centos-1gb-blr1-01 run-parts(/etc/cron.daily)[25967]: starting logrotate
My test crontab was reduced to sending a mail ... but the email never arrives ...
CWP is on droplet digitalocean, digitalocean can create problems to the crontab?
23
CentOS 6 Problems / Crontab will not work
« on: August 19, 2016, 05:32:45 PM »
Hello to all.
For each of my site I have a php file to be launched once a week via crontab.
This is the code I use
0 18 * * 3 /usr/local/bin/php -q /home/pornupda/public_html/mio-sito.com/cronojob.php
Why it does not work? It never starts ..
If you launch the file manually everything works perfectly.
I saw several threads on this forum seems to be the correct address.
So why it does not work?
For each of my site I have a php file to be launched once a week via crontab.
This is the code I use
0 18 * * 3 /usr/local/bin/php -q /home/pornupda/public_html/mio-sito.com/cronojob.php
Why it does not work? It never starts ..
If you launch the file manually everything works perfectly.
I saw several threads on this forum seems to be the correct address.
So why it does not work?
24
Information / directory whit password
« on: August 07, 2016, 11:19:36 PM »
Stupid question...
Can I set a password on a directory via cwp?
Can I set a password on a directory via cwp?
25
Information / Re: Switch to PHP 7 (out of memory)
« on: August 04, 2016, 11:21:47 PM »
Just reboot immediately goes to 9 Gb.
What do you mean by
What do you mean by
Quote
add some swap to your server
27
Information / address error fwrite
« on: August 04, 2016, 11:15:25 PM »
Hi at all.
I have a php file that creates the sitemap. In the end, the file creates a sitemap.xml file in the site root.
On cwp this thing does not seem to work ... does not save the file to the root of the site, but in the server root.
Not here /public_html/domain.com/sitemap.xml
But here /sitemap.xml
Something does not work ...
Not only with the sitemap file, but with any file created by php, from any script.
I noticed that if you launch the file manually, everything seems to work correctly.
The file is saved in the wrong place when, for example, is run by crontab.
Missing some configuration cwp? You can solve it without putting hand to all the files already created?
I have a php file that creates the sitemap. In the end, the file creates a sitemap.xml file in the site root.
Code: [Select]
$nome_file_index = "sitemap.xml";
chmod($nome_file_index, 0666);
$file = fopen($nome_file_index, "w") ;
fwrite($file, stripslashes(utf8_encode($elenco_sitemap)));
fclose($file);
On cwp this thing does not seem to work ... does not save the file to the root of the site, but in the server root.
Not here /public_html/domain.com/sitemap.xml
But here /sitemap.xml
Something does not work ...
Not only with the sitemap file, but with any file created by php, from any script.
I noticed that if you launch the file manually, everything seems to work correctly.
The file is saved in the wrong place when, for example, is run by crontab.
Missing some configuration cwp? You can solve it without putting hand to all the files already created?
28
Information / Resource usage monitor
« on: August 03, 2016, 11:04:12 PM »
There is a resource usage monitor like this for cwp?
29
Information / Switch to PHP 7 (out of memory)
« on: August 03, 2016, 10:46:01 PM »
Hello everyone, I wanted to try PHP 7. But are digitalocean and I only have 1gb of ram.
Usually my server runs on these numbers.
Trying to move to php7 at some point the process hangs because out of memory. The server still works, but lost some configuration back to php5.
I thought to do Drop cache memory, but I do not a clear idea what to do. [DC] could create problems to the server and to my sites?
I just started to move my sites cwp, so do not risk immense damage, but I do not even want to start all over again ...
My sites are quite up to date, all PDO and html5. There may be other problems in the transition to php7?
If just does not work, I can go back to php5? I lose everything?
Usually my server runs on these numbers.
Trying to move to php7 at some point the process hangs because out of memory. The server still works, but lost some configuration back to php5.
I thought to do Drop cache memory, but I do not a clear idea what to do. [DC] could create problems to the server and to my sites?
I just started to move my sites cwp, so do not risk immense damage, but I do not even want to start all over again ...
My sites are quite up to date, all PDO and html5. There may be other problems in the transition to php7?
If just does not work, I can go back to php5? I lose everything?
30
Information / Re: What consumes space ???
« on: August 03, 2016, 10:36:12 PM »
Turning off error log works. I do not see the log files, but at least I do not eat all the space in two days.
Thank you
Thank you