GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How to manage a vps (https://gfy.com/showthread.php?t=1270315)

porn-update 08-01-2017 09:02 AM

But where?

I have this: sudo nano /etc/apache2/sites-available/alternativegirlshardpics.com.conf
and this: sudo nano /etc/apache2/mods-enabled/dir.conf

porn-update 08-01-2017 12:18 PM

And then suddenly a lighting...

is there anything in the PHP configuration that does not work <? But it requires this <?php, probably not active

Barry-xlovecam 08-01-2017 05:27 PM

Quote:

Originally Posted by porn-update (Post 21926578)
But where?

I have this: sudo nano /etc/apache2/sites-available/alternativegirlshardpics.com.conf
and this: sudo nano /etc/apache2/mods-enabled/dir.conf

/etc/apache2/sites-available/alternativegirlshardpics.com.conf
$cd /etc/apache2/sites-available
$ls -1
[see what is there]
$cp alternativegirlshardpics.com.conf alternativegirlshardpics.com.conf~
[back up your file that works]
nano /etc/apache2/sites-available/alternativegirlshardpics.com.conf
[make your edits] ^X 'y'

$a2ensite alternativegirlshardpics.com.conf
$ /etc/init.d/apache2 restart
or;
service apache2 restart

php is always starts 5 and 7 (4 was <? as I recall)
<?php '{......}'
?>

in php 7 you actually don't need the closing tag -- try it LOL works ...

check your return on this
Code:

barry@paragon-DS-7:~$ apt search apache2|grep 'php'

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libapache2-mod-php/xenial,xenial 1:7.0+35ubuntu6 all
libapache2-mod-php7.0/xenial-updates 7.0.18-0ubuntu0.16.04.1 amd64
php7.0-fpm/xenial-updates,now 7.0.18-0ubuntu0.16.04.1 amd64 [installed,automatic]
barry@paragon-DS-7:~$


porn-update 08-02-2017 10:54 AM

Thank you

Almost online, in the end I thought I'd install an 14.04 with PHP5 native, then later with calm install a 16.04 with PHP 7. And I will manage the whole changing DNS

There are almost, the databases are online, the files are online, only one last thing is missing, the symlink.

My sites to work need to symlink to a folder that contains functions shared by all.

Usually on VPS with cpanel I created the symlink by creating a file with this code and loading it into public_html.

Code:

symlink('/home/pornupda/public_html/function_global', '/home/pornupda/public_html/transgender-hardpics.com/function_global');
Now the situation is strange...

I have these
/var/www/html/
/var/www/public_html/

In /html responds the server IP, in public_html my sites (following the tutorial has happened this)

In public_html:
Alternativegirlshardpics.com
Function_global
Transgender-hardpics.com

I tried to create the symlink with this code
Code:

symlink('/var/www/public_html/function_global', '/var/www/public_html/alternativegirlshardpics.com/function_global');
I uploaded the file in /html (I also tried /public_html/alternativegirlshardpics.com)

But he says
Code:

Warning: symlink (): Permission denied in/var/www/html/add_symlink_digitalocean.php on line 3
How do I create this symlink? What have I missed?

Can I change /html in /public_html? is a mess happening? Better rather if I move my sites from /public_html to /html? Just to put a little in order...

porn-update 08-02-2017 12:54 PM

Found :thumbsup

From terminal

Code:

ln -s path/to/source path/destination/symlink

Barry-xlovecam 08-02-2017 12:56 PM

I make my document root for the server permissions

username:www-data
user:group

the command is from the level above the directory whose permissions you want to change

Code:

$ stat 'the directory name'
#return the ownership info, *check any sub-directories and files too.

$ stat *
#everything below the target
#then if necessary
$ chown -R username:www-data
#recursively change ownership permissions
#you need root or sudo

you need these permissions for the server and php to function correctly
also to FTP into the ..../html owner 0 root if html/mydocroot is username:www-data and there is a symbolic link ...

I use scp at the command line or sftp in a FTP client -- then you need no FTP server, its all over ssh -- more secure and less resources used.

the symbolic link may not work due to a permissions conflict?

**
ln -s yeah ....

porn-update 08-02-2017 01:59 PM

Sites Online! :)

But nothing works... :Oh crap

Only the HTTPS version works
https://www.alternativegirlshardpics.com/

Without HTTPS
Code:

Internal server Error
Apache/2.4.7 (Ubuntu) server at www.alternativegirlshardpics.com Port 80

And you do not see the images, the images have this structure
Code:

< img src = "https://www.alternativegirlshardpics.com/images/blank.gif" data-src = "https://images03-fame.gammacdn.com/movies/64703/64703_01/previews/2/174/top_1_185x135/64703_01_01.jpg"
And only the home page, this page does not work
https://www.alternativegirlshardpics.com/1004

It seems a problem URL rewriter, but on port 443 ??? Seems like an SSL problem.

In both sites I have added a certificate let's encrypt, following this guide https://www.digitalocean.com/communi...n-ubuntu-14-04


What's missing???

I'll attach the various virtual host files because I'm not understanding anything anymore

/etc/apache2/sites-enabled/000-default.conf
Code:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin [email protected]
        DocumentRoot /var/www/public_html

        <Directory /var/www/public_html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # New directive needed in Apache 2.4.3:
                Require all granted
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

/etc/apache2/sites-available/alternativegirlshardpics.com.conf
Code:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin [email protected]
        ServerName alternativegirlshardpics.com
        ServerAlias www.alternativegirlshardpics.com
        DocumentRoot /var/www/public_html/alternativegirlshardpics.com


        # CGI Directory
        ScriptAlias /cgi-bin/ /var/www/public_html/alternativegirlshardpics.com
        <Location /cgi-bin>
                Options +ExecCGI

        AddHandler server-parsed .shtml .xhtml

        </Location>
                #rewrites
                RewriteEngine on

        <IfModule security2_module>
            SecRuleEngine Off
        </IfModule>

        <Directory /var/www/public_html/alternativegirlshardpics.com>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # New directive needed in Apache 2.4.3:
                Require all granted
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

I found also this:
/etc/apache2/sites-available/alternativegirlshardpics.com-le-ssl.conf
Code:

<IfModule mod_ssl.c>
<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin [email protected]
        ServerName alternativegirlshardpics.com
        ServerAlias www.alternativegirlshardpics.com
        DocumentRoot /var/www/public_html/alternativegirlshardpics.com

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
SSLCertificateFile /etc/letsencrypt/live/alternativegirlshardpics.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/alternativegirlshardpics.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/alternativegirlshardpics.com/chain.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin [email protected]
        ServerName alternativegirlshardpics.com
        ServerAlias www.alternativegirlshardpics.com
        DocumentRoot /var/www/public_html/alternativegirlshardpics.com

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
SSLCertificateFile /etc/letsencrypt/live/alternativegirlshardpics.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/alternativegirlshardpics.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/alternativegirlshardpics.com/chain.pem
</VirtualHost>
</IfModule>

last error log
Code:

[Wed Aug 02 21:11:14.880693 2017] [ssl:warn] [pid 1306] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Aug 02 21:11:15.275079 2017] [ssl:warn] [pid 1307] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Aug 02 21:11:15.284878 2017] [mpm_prefork:notice] [pid 1307] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.21 OpenSSL/1.0.1f configured -- resuming normal operations
[Wed Aug 02 21:11:15.284941 2017] [core:notice] [pid 1307] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 02 21:12:44.308475 2017] [core:alert] [pid 1318] [client 66.249.66.205:38269] /var/www/public_html/transgender-hardpics.com/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration


porn-update 08-04-2017 02:22 PM

Meanwhile I created another droplet and started it all over again, and it worked...

The 2 sites are online, it works url_rewriter and I solved the problem of the photos (my fault, uploaded an old file without a JavaScript)

The only thing I haven't reinstalled is let's encrypt, so my sites now only work in http

So I think it's been let's encrypt to make the mess...

I would not repeat everything, so I'm thinking about another way to make HTTPS, suggestions?


P.S. How do I know if Opcache, memcached and APCU, etc. are working?


Last stupid question: varnish does not work in HTTPS? Should I use Nginx for HTTPS?

porn-update 08-07-2017 05:13 PM

Sites Online! :):):)

I destroyed and created a hundred droplet in the meantime, but we finally got to have the 2 sites online with working HTTPS
https://www.alternativegirlshardpics.com/
https://www.transgender-hardpics.com/

I tried to install varnish with Apache and Nginx, but it was like throwing a firecracker inside the server case, nothing worked anymore and there was no way to understand why...
The guides seem kinda old, maybe varnish is dead with https... ???

Anyway we are online, now optimization... cache, gzip compression, monitoring etc etc etc, tips?

Barry-xlovecam 08-07-2017 08:56 PM

You are hotlinking to images that are not using TLS(HTPS)
So, your SSL is broken -- not your fault -- but is broken HTTPS better than no HTTPS?

porn-update 08-08-2017 08:51 AM

Honestly to me the https make just crap, I find them an extremely stupid thing, especially on sites like these, but slowly everyone is getting scared by big G.

At the logical level on many occasions have no meaning, eg in cases like mine where the site is HTTPS but the contents are not.

I think it's just an advantage for big G that certainly somehow manages to simplify or reduce the weight of the pages that he has to read.

The fact that they should be used only in login procedures or containing sensitive data has been completely suppressed by the fear of not complying with the rule of big G, so many sites apply them on all pages.

At the moment they almost seem to be the main factor even just to be taken into account by big G, also I do not think it is absolutely true.

With regard to end users I believe that 99% have absolutely no idea what the HTTPS protocol is, nor do they care about it.

My sites would not absolutely need it, I'm installing them only in some, just not to be the only idiot not to have them, but I would gladly do it less.

porn-update 08-08-2017 08:59 AM

Another stupid question...

Cloudflare needs something on the server to work?

I use it only in a bigboobshardpics.com site and only in the Cdn folder, where all the images of the site are located.

http://porn-update.com/temp/Schermat...2017:53:43.png

The site itself does not need cloudflare, slows down if I apply it to the whole site.

The idea is to create a kind of CDN leveraging CloudFlare, just for images.

Does it make sense to you?
Need something on the server for CloudFlare?

porn-update 08-08-2017 02:05 PM

And so, I've seen everything, tried everything, done everything...

The 2 sites are online:
https://www.alternativegirlshardpics.com/
https://www.transgender-hardpics.com/

I have:
Installed LAMP
Configured Virtual Host
Configured DNS on Digitalocean
Installed phpMyAdmin
Created MySQL database and users
Modified the configuration of php.ini
Created Symlink
Open the ports on the firewall
Enabled Mod_rewriter
Enabled Mod_deflate
Install let's encrypt and certificates
Enabled Opcache
Installed and enabled memcached
Installed and enabled cache/Chace_disk
and created some cronjob

And in a couple of weeks it doesn't look bad...

I'm at the point where I would see the 2 sites run for a few days and if all goes well start transferring to this server some other site

But I wonder, how many things will I have forgotten or ignored?

For example, now I have php 5.5.9, maybe it is worth switching to 5.6? (at 7 in ubuntu 16.04 I will pass in the future with another droplet)

I have not installed mod security, but he has always been obnoxious to me, but maybe better to install it?

I was unable to install varnish (it happened a mess), will it be worth losing more time or not?

I'm not sure it works gzip compression, but deflate is installed and configured, do I have to do anything else?
I tried to configure if-modified-since, but I did not understand if it worked...:(

Will miss something important?
phpinfo()

Barry-xlovecam 08-08-2017 05:04 PM

How To Set Up a Firewall with UFW on Ubuntu 16.04
https://www.digitalocean.com/communi...n-ubuntu-16-04
Shields up -- tighten your ship up.
If you have a static ip set that for ssh and mysql remote -- use sftp over port 22

porn-update 08-09-2017 09:09 AM

Thank you

Maybe I missed something in the configuration of url_rewriter, because this stupid rule

RewriteRule tags/ tags.php [L]

does not work
https://www.alternativegirlshardpics.com/tags/

It always worked, but on the new server does not want to work...

I tried to rewrite it in 1000 different ways,

RewriteRule ^tags$ tags.php [L]
RewriteRule ^tags\/$ tags.php [L]

But it just doesn't work

I searched in Digitalocean and Google, but I do not find particular configurations of url_rewriter

It is not a basic page, I can directly use tags.php, but I would like to understand why it does not work...

Any ideas?

P.S. of all that could go wrong, if this is the only thing that does not work, I feel more than lucky... :thumbsup

Barry-xlovecam 08-09-2017 11:36 AM

using .htaccess in Apache2 right
check
$stat .htaccess

the file permission might need to be user:www-data (user:group) if PHP needs to use that file.

porn-update 08-09-2017 12:49 PM

is root...:mad:

http://porn-update.com/temp/Schermat...2021:47:22.png

Code:

root@ubuntu-2gb-blr1-14-04-3:/var/www/html/alternativegirlshardpics.com# stat .htaccess
  File: ?.htaccess?
  Size: 3774              Blocks: 8          IO Block: 4096  regular file
Device: fd01h/64769d        Inode: 134366      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)  Gid: (    0/    root)
Access: 2017-08-08 23:58:52.492271000 +0000
Modify: 2017-08-07 23:58:32.766034228 +0000
Change: 2017-08-07 23:58:43.310034228 +0000
 Birth: -

What do I do?

porn-update 08-11-2017 10:09 AM

Another stupid question

For cronjob I use: crontab -e

And this line of code
0 16 * * * /usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php

But I'm not sure do something...

They are active for a few days, but I do not receive mail and I see no changes in the site
(the Cronjob upload new content, but may be there are no new content these days)

The scripts have an output that I would like to receive via mail, but I did not understand if I have to set the mail for the cronjob somewhere...

I don't know if they're working....

How can I understand? Are there any logs anywhere? Something missing in my code?

In the different servers sometimes make me add -p, -f etc. But I never understood what they serve... and I have not found guides that explain it...

magneto664 08-11-2017 10:50 AM

Quote:

Originally Posted by porn-update (Post 21946705)
Another stupid question

For cronjob I use: crontab -e

And this line of code
0 16 * * * /usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php

For first - don't add those codes on public forum - somebody can make a magic with your cronjob and even ddos your server!

for cronjob - don't run cron on root this is a important issue and I strong recommend using some service like "https://www.webcron.org/" where u can get a mail confirmation or stats/logs and you don't need to know magic it skills - basically about a webcron I use since 2009 when I load 10 euros and i have 2 left. Is a fucking cheap and save your time, keep your server clean and safe and easy access via page from mobile, no need to login via ssh to check fix or stop.

tnx

porn-update 08-11-2017 12:20 PM

I do not want to use a paid service... I have a Linux server, the server must operate the Cronjob...

magneto664 08-11-2017 04:37 PM

Quote:

Originally Posted by porn-update (Post 21946990)
I have a Linux server, the server must operate the Cronjob...

PM ! me I will help you!

Barry-xlovecam 08-11-2017 04:48 PM

try this

Quote:

*/5 * * * * (cd /usr/share/../../../; php ./file.php) > /dev/null 2>&1
This is a no email 5 min cron
sometimes you have to cd then use the cli
always end you cron with a new line

You need a MTA and Email server to send an email out.
see cd /var/logs

to troubleshoot cron

Code:

root~:$ cat /var/logs/syslog|less

porn-update 08-12-2017 09:02 AM

Quote:

You need a MTA and Email server to send an email out.
Should I install postfix? only postfix?
I don't need any more mail, just the ones with the result of the cronjob.

The cronjob logs are weird, I can't figure out if it works.
Code:

Aug 12 06:39:01 ubuntu-2gb-blr1-14-04-3 CRON[11065]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 07:09:01 ubuntu-2gb-blr1-14-04-3 CRON[15998]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 07:15:02 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 07:15:02 Checking for newer version of do-agent
Aug 12 07:15:02 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 07:15:02 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 07:17:01 ubuntu-2gb-blr1-14-04-3 CRON[17326]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 07:39:01 ubuntu-2gb-blr1-14-04-3 CRON[20954]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 08:09:01 ubuntu-2gb-blr1-14-04-3 CRON[25956]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 08:15:02 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 08:15:02 Checking for newer version of do-agent
Aug 12 08:15:02 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 08:15:02 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 08:17:01 ubuntu-2gb-blr1-14-04-3 CRON[27297]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 08:39:01 ubuntu-2gb-blr1-14-04-3 CRON[30895]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 09:09:01 ubuntu-2gb-blr1-14-04-3 CRON[3414]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 09:15:03 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 09:15:03 Checking for newer version of do-agent
Aug 12 09:15:03 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 09:15:03 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 09:17:01 ubuntu-2gb-blr1-14-04-3 CRON[4743]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 09:39:01 ubuntu-2gb-blr1-14-04-3 CRON[8336]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 10:09:01 ubuntu-2gb-blr1-14-04-3 CRON[13268]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 10:16:03 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 10:16:03 Checking for newer version of do-agent
Aug 12 10:16:04 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 10:16:04 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 10:17:01 ubuntu-2gb-blr1-14-04-3 CRON[14593]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 10:39:01 ubuntu-2gb-blr1-14-04-3 CRON[18355]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 11:09:01 ubuntu-2gb-blr1-14-04-3 CRON[23435]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 11:17:01 ubuntu-2gb-blr1-14-04-3 CRON[25007]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 11:17:04 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 11:17:04 Checking for newer version of do-agent
Aug 12 11:17:04 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 11:17:04 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 11:39:01 ubuntu-2gb-blr1-14-04-3 CRON[29374]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 12:00:01 ubuntu-2gb-blr1-14-04-3 CRON[714]: (root) CMD (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew)
Aug 12 12:09:01 ubuntu-2gb-blr1-14-04-3 CRON[2335]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 12:17:01 ubuntu-2gb-blr1-14-04-3 CRON[3698]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 12:17:12 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 12:17:12 Checking for newer version of do-agent
Aug 12 12:17:12 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 12:17:12 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 12:39:01 ubuntu-2gb-blr1-14-04-3 CRON[7591]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 13:09:01 ubuntu-2gb-blr1-14-04-3 CRON[13202]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 13:17:01 ubuntu-2gb-blr1-14-04-3 CRON[14688]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 13:17:15 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 13:17:15 Checking for newer version of do-agent
Aug 12 13:17:15 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 13:17:15 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 13:39:01 ubuntu-2gb-blr1-14-04-3 CRON[18582]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 14:09:01 ubuntu-2gb-blr1-14-04-3 CRON[23907]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 14:17:01 ubuntu-2gb-blr1-14-04-3 CRON[25285]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 14:17:18 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 14:17:18 Checking for newer version of do-agent
Aug 12 14:17:18 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 14:17:18 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 14:39:01 ubuntu-2gb-blr1-14-04-3 CRON[29030]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 15:09:01 ubuntu-2gb-blr1-14-04-3 CRON[1700]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 15:17:01 ubuntu-2gb-blr1-14-04-3 CRON[3066]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 12 15:17:18 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 15:17:18 Checking for newer version of do-agent
Aug 12 15:17:18 ubuntu-2gb-blr1-14-04-3 do-agent[1007]: 2017/08/12 15:17:18 Unable to update do-agent: Update: Error initializing repository: tuf: failed to decode root.json: expired at 2017-07-22 15:27:54 +0000 UTC
Aug 12 15:39:01 ubuntu-2gb-blr1-14-04-3 CRON[6929]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 12 15:46:15 ubuntu-2gb-blr1-14-04-3 crontab[8299]: (root) LIST (root)
Aug 12 15:47:50 ubuntu-2gb-blr1-14-04-3 crontab[8634]: (root) BEGIN EDIT (root)
Aug 12 15:48:26 ubuntu-2gb-blr1-14-04-3 crontab[8634]: (root) REPLACE (root)
Aug 12 15:48:26 ubuntu-2gb-blr1-14-04-3 crontab[8634]: (root) END EDIT (root)
Aug 12 15:49:01 ubuntu-2gb-blr1-14-04-3 cron[1058]: (root) RELOAD (crontabs/root)
(END)

I currently have only two crons a day, at 4pm and 5pm, and I renew let's encrypt at 3.15

I have search the error in Google, but the answers are all very confusing...

magneto664 08-12-2017 09:06 AM

Quote:

Originally Posted by porn-update (Post 21948520)
Should I install postfix? only postfix?

never install on your server postfix or any mail service. ! or you want to give access for spammerS?

Barry-xlovecam 08-12-2017 08:29 PM

Did you edit the conrab to a
(cd /path/; php file.php)

try it manually does the cron work manually?

maybe without the \. that is from an old php 5 install? or just

php /path/file.php

su 'user'
password ********

crontab -e

make a user crontab for this

then verify $ stat [] that any file to be written to is permissions user:www-data otherwise the php will not be able to write to the file
you could go up from 644 to 666 and try it also

If it is a PDO MySQL make sure you settings are correct for the database



make sure there is a \n (newline) at the end of the command

leave the > /dev/null 2>&1 off for now


I don't see it working
Is there some file affected -- can you stat a date time?

Mail servers are a hassle to set up correctly -- why do you really need an email -- to feel good? Can't you tell by the website's updates if the cronjob is working?

Kafka 08-13-2017 04:01 PM

Varnish doesn't work (yet) with Apache https. You have to use Nginx to handle incoming SSL requests:

nginx (https, 443) -> varnish (http, 80) -> apache (http, 8080)

See here for more details.

For just sending mails you can use mailx (a Unix utility program for sending and receiving mail,) command, no locale MTA is required (like Postfix) and use the Gmail MTA.


If you don't have the mailx command, you can install the package.
You can use this command to send emails:

echo -e "your body text" | mailx -v -s "subject text" \
-S smtp-use-starttls \
-S ssl-verify=ignore \
-S smtp-auth=login \
-S smtp=smtp://smtp.gmail.com:587 \
-S from="[email protected]" \
-S [email protected] \
-S smtp-auth-password=yourGmailpasswd \
-S ssl-verify=ignore recipientemailaddress

copy this command to a file (shell script) and make it executable.
With cron it is easy to execute this script to run periodically at fixed times.


and never, ever use ftp. Use sftp(secure ftp)or rsync to transfer data to your server.
Ftp is unsecure and all the data is unencrypted.

Learn shell commands and to test things and learn things install Ubuntu or Centos.
on your local pc.
Copy (with rsync) all the data to your local pc (open port 22 for local ssh server) so you can test things.

porn-update 08-14-2017 09:59 AM

Thanks for the answers.

The Cronjob, manually launched works (and works on other servers)

I added a file https://www.alternativegirlshardpics.com/lastcron.txt the timestamp of the last started. fwrite in cronojob.php.

Now I've added all the possible ways, to figure out if someone works, then if it works I'll see what it is
http://porn-update.com/temp/Schermat...2018-50-40.png

The mail I really would need, because I load data from RSS, XML, TXT files etc that are not mine and every day there is some new error to correct and fix.

Via Mail I also get the output of PHP errors.

Barry-xlovecam 08-15-2017 10:56 AM

no: cd /usr/share//../../ is an example path

the way it works, is the cron will cd to that location ; (<stop next command) php ./(execute this file)
then you need no path to the file

try that manually as the cron would do it
$ cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php
see if it works ok in a bash shell (ssh) and NOT a browser

so
Code:

0 16 * * * (cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php)
try without the ./ if that does not work

porn-update 08-16-2017 01:19 PM

I tried everything, done everything,

I also tried to use different users, both root and normal user
Nothing ever works.

But in the logs I found this

Code:

Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1520]: (root) CMD (php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1522]: (pornupdate) CMD (/usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1521]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php cronojob.php))
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1525]: (root) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php))
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1528]: (root) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php cronojob.php))
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1524]: (pornupdate) CMD (php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1531]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php))
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1516]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1518]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1513]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1514]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1515]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1519]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:01 ubuntu-2gb-blr1-14-04-3 CRON[1517]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:10:59 ubuntu-2gb-blr1-14-04-3 kernel: [  103.896095] random: nonblocking pool is initialized
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1718]: (pornupdate) CMD (php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1717]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php cronojob.php))
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1719]: (pornupdate) CMD (/usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1723]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php))
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1715]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1713]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1714]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:11:01 ubuntu-2gb-blr1-14-04-3 CRON[1716]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1897]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php))
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1898]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php cronojob.php))
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1900]: (pornupdate) CMD (php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1899]: (pornupdate) CMD (/usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1893]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1895]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1896]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:12:01 ubuntu-2gb-blr1-14-04-3 CRON[1894]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2148]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php ./cronojob.php))
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2149]: (pornupdate) CMD ((cd /var/www/html/alternativegirlshardpics.com/; php cronojob.php))
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2150]: (pornupdate) CMD (/usr/bin/php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2153]: (pornupdate) CMD (php /var/www/html/alternativegirlshardpics.com/cronojob.php)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2145]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2144]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2143]: (CRON) info (No MTA installed, discarding output)
Aug 16 20:13:01 ubuntu-2gb-blr1-14-04-3 CRON[2146]: (CRON) info (No MTA installed, discarding output)

I have to install Postfix???
However, the mails of the cronjob I need...

Barry-xlovecam 08-17-2017 07:17 AM

https://serverfault.com/questions/13...tput-to-syslog
try these ideas
setting up a 'proper' email server is not just installing postfix. You will need to create a database, install an MTA setup like Dovecot and an email daemon. You will need to shell into mysql to create email accounts in a the database or find a web GUI to do this. Try the idea in that link first.

Try
Code:

$ sudo  apt-get install libxml2-utils

$ xmllint

xmllint

Kafka 08-17-2017 10:06 AM

As i said, use mailx and Gmail MTA. Easy for just sending emails.
btw, Postfix does not need MySql and Dovecot. Just use your login account.

If you only want to send out emails Dovecot is not needed either.
Dovecot is an IMAP and POP3 email server (for receiving emails).

But again, you don't need a local MTA .

porn-update 08-17-2017 11:08 AM

So for now I have installed postfix and added the MAILTO= parameter in my crontab, and the mails come to me, so I think Cronjob started to work.
And for me it would be enough already., now calmly I see to understand the rest of your indications

The problem I have now is that I do not get the output of the file via mail, but the code of the file... I mean line by line all the PHP code of my file cronjob.php via mail... ???
And the test file https://www.alternativegirlshardpics.com/lastcron.txt still does not exist, I think PHP does not run... but why??? :helpme

Quote:

But again, you don't need a local MTA .
I think it need locally something like postfix, because the mail I want to send me the server directly when a cronjob is executed, also because, without MTA this damned cronjob does not work...

Barry-xlovecam 08-17-2017 12:25 PM

Quote:

Originally Posted by Kafka (Post 21959899)
As i said, use mailx and Gmail MTA. Easy for just sending emails.
btw, Postfix does not need MySql and Dovecot. Just use your login account.

If you only want to send out emails Dovecot is not needed either.
Dovecot is an IMAP and POP3 email server (for receiving emails).

But again, you don't need a local MTA .

I have virtual accounts set up on my real email servers. Virtual accounts require that.
Complicated set up.

Keep it simple open the file in a browser? put the file in in a web root. or copy it there as part of the cron.

Or, cron a daily scp command on your local computer if you have a LINUX box to use locally.

I don't understand why you have this bad code issue in the cron -- I would fix that problem programatically or find another feed source ...

porn-update 08-17-2017 02:02 PM

So... curl works...

But I'm not happy... I want to know why this damned crontab does not run my PHP scripts and I will not be happy until I can find out...

Postfix gave me some problems with the aliases etc, and fills me the logs of rubbish...

Initially the mails started to arrive, then I restarted the server and postfix started to create problems, I took it half an hour to be able to have the mail again...

Maybe it was enough to add the parameter MAILTO on crontab and maybe the mails arrived the same...

Anyway, for now curl and if everything works in a few days start to move here some sites

porn-update 08-18-2017 12:44 PM

Is normal all this junk in my syslog?

Code:

Aug 18 06:41:49 ubuntu-2gb-blr1-14-04-3 rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="918" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Aug 18 07:07:13 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 07:07:13 Checking for newer version of do-agent
Aug 18 07:07:13 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 07:07:13 No update available
Aug 18 07:09:01 ubuntu-2gb-blr1-14-04-3 CRON[6566]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/l
ib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 07:17:01 ubuntu-2gb-blr1-14-04-3 CRON[7913]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 18 07:39:01 ubuntu-2gb-blr1-14-04-3 CRON[11520]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 08:07:13 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 08:07:13 Checking for newer version of do-agent
Aug 18 08:07:13 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 08:07:13 No update available
Aug 18 08:09:01 ubuntu-2gb-blr1-14-04-3 CRON[16509]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 08:17:01 ubuntu-2gb-blr1-14-04-3 CRON[17838]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 18 08:39:01 ubuntu-2gb-blr1-14-04-3 CRON[21461]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 08:42:55 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[22114]: connect from scan-42.security.ipip.net[139.162.99.243]
Aug 18 08:42:55 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[22114]: lost connection after CONNECT from scan-42.security.ipip.net[139.162.99.243]
Aug 18 08:42:55 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[22114]: disconnect from scan-42.security.ipip.net[139.162.99.243]
Aug 18 08:46:15 ubuntu-2gb-blr1-14-04-3 postfix/anvil[22116]: statistics: max connection rate 1/60s for (smtp:139.162.99.243) at Aug 18 08:42:55
Aug 18 08:46:15 ubuntu-2gb-blr1-14-04-3 postfix/anvil[22116]: statistics: max connection count 1 for (smtp:139.162.99.243) at Aug 18 08:42:55
Aug 18 08:46:15 ubuntu-2gb-blr1-14-04-3 postfix/anvil[22116]: statistics: max cache size 1 at Aug 18 08:42:55
Aug 18 09:07:14 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 09:07:14 Checking for newer version of do-agent
Aug 18 09:07:19 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 09:07:19 No update available
Aug 18 09:09:01 ubuntu-2gb-blr1-14-04-3 CRON[26507]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 09:17:01 ubuntu-2gb-blr1-14-04-3 CRON[27853]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 18 09:39:01 ubuntu-2gb-blr1-14-04-3 CRON[31516]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 10:07:22 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 10:07:22 Checking for newer version of do-agent
Aug 18 10:07:24 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 10:07:24 No update available
Aug 18 10:09:01 ubuntu-2gb-blr1-14-04-3 CRON[4113]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/l
ib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 10:17:01 ubuntu-2gb-blr1-14-04-3 CRON[5497]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 18 10:23:22 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[6541]: connect from 61-216-14-176.HINET-IP.hinet.net[61.216.14.176]
Aug 18 10:23:23 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[6541]: SSL_accept error from 61-216-14-176.HINET-IP.hinet.net[61.216.14.176]: lost connection
Aug 18 10:23:23 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[6541]: lost connection after STARTTLS from 61-216-14-176.HINET-IP.hinet.net[61.216.14.176]
Aug 18 10:23:23 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[6541]: disconnect from 61-216-14-176.HINET-IP.hinet.net[61.216.14.176]
Aug 18 10:26:43 ubuntu-2gb-blr1-14-04-3 postfix/anvil[6543]: statistics: max connection rate 1/60s for (smtp:61.216.14.176) at Aug 18 10:23:22
Aug 18 10:26:43 ubuntu-2gb-blr1-14-04-3 postfix/anvil[6543]: statistics: max connection count 1 for (smtp:61.216.14.176) at Aug 18 10:23:22
Aug 18 10:26:43 ubuntu-2gb-blr1-14-04-3 postfix/anvil[6543]: statistics: max cache size 1 at Aug 18 10:23:22
Aug 18 10:39:01 ubuntu-2gb-blr1-14-04-3 CRON[9133]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/l
ib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 11:07:30 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 11:07:30 Checking for newer version of do-agent
Aug 18 11:07:31 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 11:07:31 No update available
Aug 18 11:09:01 ubuntu-2gb-blr1-14-04-3 CRON[14118]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 11:17:01 ubuntu-2gb-blr1-14-04-3 CRON[15480]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 18 11:39:01 ubuntu-2gb-blr1-14-04-3 CRON[19143]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/
lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 18 12:00:01 ubuntu-2gb-blr1-14-04-3 CRON[22649]: (root) CMD (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q r
enew)
Aug 18 12:07:33 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 12:07:33 Checking for newer version of do-agent
Aug 18 12:07:34 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/18 12:07:34 No update available




Other thing, page scan times...

Long ago when the server worked fine 200-250 milliseconds, now with new server 1100-1200 milliseconds (so much), can I do something?

http://porn-update.com/temp/Schermat...2022-11-49.png

http://porn-update.com/temp/Schermat...2022-12-15.png

Will it improve in the future? Maybe cache or server that optimizes?

porn-update 08-21-2017 01:16 PM

S**t, today I almost thought about starting to move some site... and I found this...

Code:

Cron <root@ubuntu-2gb-blr1-14-04-3> curl https://www.alternativegirlshardpics.com/cronojob.php

  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed

  0    0    0    0    0    0      0      0 --:--:-- --:--:-- --:--:--    0
  0    0    0    0    0    0      0      0 --:--:-- --:--:-- --:--:--    0
  0    0    0    0    0    0      0      0 --:--:--  0:00:01 --:--:--    0
  0    0    0    0    0    0      0      0 --:--:--  0:00:02 --:--:--    0
curl: (6) Could not resolve host: www.alternativegirlshardpics.com

What is it? What happened? How can I understand what didn't work?

This is syslog... there are always a lot of strange lines... which I'm not sure there should be...

Code:

Aug 21 15:09:01 ubuntu-2gb-blr1-14-04-3 CRON[23886]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/l
ib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 15:17:01 ubuntu-2gb-blr1-14-04-3 CRON[25315]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 21 15:18:33 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[25582]: connect from 64-60-63-243.static-ip.telepacific.net[64.60.63.243]
Aug 21 15:18:34 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[25582]: NOQUEUE: reject: RCPT from 64-60-63-243.static-ip.telepacific.net[64.60.63.243]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<DelicaTS>
Aug 21 15:18:34 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[25582]: disconnect from 64-60-63-243.static-ip.telepacific.net[64.60.63.243]
Aug 21 15:21:22 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 15:21:22 Checking for newer version of do-agent
Aug 21 15:21:23 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 15:21:23 No repository update available
Aug 21 15:21:54 ubuntu-2gb-blr1-14-04-3 postfix/anvil[25584]: statistics: max connection rate 1/60s for (smtp:64.60.63.243) at Aug 21 15:18:33
Aug 21 15:21:54 ubuntu-2gb-blr1-14-04-3 postfix/anvil[25584]: statistics: max connection count 1 for (smtp:64.60.63.243) at Aug 21 15:18:33
Aug 21 15:21:54 ubuntu-2gb-blr1-14-04-3 postfix/anvil[25584]: statistics: max cache size 1 at Aug 21 15:18:33
Aug 21 15:39:01 ubuntu-2gb-blr1-14-04-3 CRON[29072]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 16:00:01 ubuntu-2gb-blr1-14-04-3 CRON[32620]: (root) CMD (curl https://www.alternativegirlshardpics.com/cronojob.php)
Aug 21 16:00:04 ubuntu-2gb-blr1-14-04-3 postfix/pickup[22785]: C72CA40911: uid=0 from=<root>
Aug 21 16:00:04 ubuntu-2gb-blr1-14-04-3 postfix/cleanup[32635]: C72CA40911: message-id=<[email protected]>
Aug 21 16:00:04 ubuntu-2gb-blr1-14-04-3 postfix/qmgr[1296]: C72CA40911: from=<[email protected]>, size=1191, nrcpt=1 (queue active)
Aug 21 16:00:15 ubuntu-2gb-blr1-14-04-3 postfix/smtp[32637]: C72CA40911: to=<[email protected]>, relay=porn-update.com[198.252.98.30]:25, delay=11, delays=0.02/0.01/3.3/7.7, dsn=2.0.0, status=sent (250 OK id=1djp7X-004Gzv-H1)
Aug 21 16:00:15 ubuntu-2gb-blr1-14-04-3 postfix/qmgr[1296]: C72CA40911: removed
Aug 21 16:09:01 ubuntu-2gb-blr1-14-04-3 CRON[1714]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 16:17:01 ubuntu-2gb-blr1-14-04-3 CRON[3047]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 21 16:21:27 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 16:21:27 Checking for newer version of do-agent
Aug 21 16:21:27 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 16:21:27 No repository update available
Aug 21 16:39:02 ubuntu-2gb-blr1-14-04-3 CRON[6737]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 17:00:01 ubuntu-2gb-blr1-14-04-3 CRON[10247]: (root) CMD (curl https://www.transgender-hardpics.com/cronojob.php)
Aug 21 17:01:01 ubuntu-2gb-blr1-14-04-3 postfix/pickup[7186]: 4B8A740911: uid=0 from=<root>
Aug 21 17:01:01 ubuntu-2gb-blr1-14-04-3 postfix/cleanup[10423]: 4B8A740911: message-id=<[email protected]>
Aug 21 17:01:01 ubuntu-2gb-blr1-14-04-3 postfix/qmgr[1296]: 4B8A740911: from=<[email protected]>, size=6050, nrcpt=1 (queue active)
Aug 21 17:01:17 ubuntu-2gb-blr1-14-04-3 postfix/smtp[10425]: 4B8A740911: to=<[email protected]>, relay=porn-update.com[198.252.98.30]:25, delay=16, delays=0.01/0/5.9/9.9, dsn=2.0.0, status=sent (250 OK id=1djq4Y-000c2M-FJ)
Aug 21 17:01:17 ubuntu-2gb-blr1-14-04-3 postfix/qmgr[1296]: 4B8A740911: removed
Aug 21 17:09:01 ubuntu-2gb-blr1-14-04-3 CRON[11761]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 17:17:01 ubuntu-2gb-blr1-14-04-3 CRON[13099]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 21 17:21:28 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 17:21:28 Checking for newer version of do-agent
Aug 21 17:21:28 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 17:21:28 No repository update available
Aug 21 17:39:01 ubuntu-2gb-blr1-14-04-3 CRON[16756]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 17:51:04 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[18771]: connect from 50-242-205-53-static.hfc.comcastbusiness.net[50.242.205.53]
Aug 21 17:51:05 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[18771]: NOQUEUE: reject: RCPT from 50-242-205-53-static.hfc.comcastbusiness.net[50.242.205.53]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<AAMFG-DC-TS-01>
Aug 21 17:51:05 ubuntu-2gb-blr1-14-04-3 postfix/smtpd[18771]: disconnect from 50-242-205-53-static.hfc.comcastbusiness.net[50.242.205.53]
Aug 21 17:54:25 ubuntu-2gb-blr1-14-04-3 postfix/anvil[18773]: statistics: max connection rate 1/60s for (smtp:50.242.205.53) at Aug 21 17:51:04
Aug 21 17:54:25 ubuntu-2gb-blr1-14-04-3 postfix/anvil[18773]: statistics: max connection count 1 for (smtp:50.242.205.53) at Aug 21 17:51:04
Aug 21 17:54:25 ubuntu-2gb-blr1-14-04-3 postfix/anvil[18773]: statistics: max cache size 1 at Aug 21 17:51:04
Aug 21 18:09:01 ubuntu-2gb-blr1-14-04-3 CRON[21816]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 18:17:01 ubuntu-2gb-blr1-14-04-3 CRON[23163]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 21 18:21:32 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 18:21:32 Checking for newer version of do-agent
Aug 21 18:21:32 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 18:21:32 No repository update available
Aug 21 18:39:01 ubuntu-2gb-blr1-14-04-3 CRON[26840]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 19:09:01 ubuntu-2gb-blr1-14-04-3 CRON[31868]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Aug 21 19:17:01 ubuntu-2gb-blr1-14-04-3 CRON[754]: (root) CMD (  cd / && run-parts --report /etc/cron.hourly)
Aug 21 19:21:33 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 19:21:33 Checking for newer version of do-agent
Aug 21 19:21:34 ubuntu-2gb-blr1-14-04-3 do-agent[1031]: 2017/08/21 19:21:34 No repository update available
Aug 21 19:39:01 ubuntu-2gb-blr1-14-04-3 CRON[4498]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))


Barry-xlovecam 08-21-2017 07:03 PM

Code:

curl "https://www.alternativegirlshardpics.com/cronojob.php"
try in quotes "_____"

'____' works in a bash terminal (or ssh) ONLY

porn-update 08-22-2017 01:05 PM

Today it works, only yesterday did that thing... I would like to understand why before starting to move sites with many more visits

All that junk in the syslogs is normal? Or something or someone is killing me the server?

I don't need cron hourly, can I take it off?

porn-update 08-22-2017 02:20 PM

Another thing, I was thinking about varnish...

Not all my sites are HTTPS, can I install varnish?

Only for HTTP, even if it does not do HTTPS maybe does something

But can varnish and HTTPS coexist?

Varnish only works on port 80 or if installed can create problems with the 443 of HTTPS?

porn-update 08-26-2017 03:12 PM

How should I read this?
http://porn-update.com/temp/Schermat...2000-04-42.png

Am I already at the limit? Or do I have many other unused resources? I have too much cache?

It is strange this graph, free is very small, but also used is very small, cached is a lot, buffered seems growing but free and used do not seem to shrink... I'm kinda confused???

Can someone help me understand?


All times are GMT -7. The time now is 12:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc