Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
08-08-2017, 08:51 AM | #51 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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. |
08-08-2017, 08:59 AM | #52 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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. 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? |
08-08-2017, 02:05 PM | #53 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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() |
08-08-2017, 05:04 PM | #54 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
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 |
08-09-2017, 09:09 AM | #55 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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... |
08-09-2017, 11:36 AM | #56 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
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. |
08-09-2017, 12:49 PM | #57 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
is root...
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: - |
08-11-2017, 10:09 AM | #58 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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... |
08-11-2017, 10:50 AM | #59 | |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
Quote:
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
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
|
08-11-2017, 12:20 PM | #60 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
I do not want to use a paid service... I have a Linux server, the server must operate the Cronjob...
|
08-11-2017, 04:37 PM | #61 |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
PM ! me I will help you!
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
08-11-2017, 04:48 PM | #62 | |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
try this
Quote:
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 |
|
08-12-2017, 09:02 AM | #63 | |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
Quote:
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 have search the error in Google, but the answers are all very confusing... |
|
08-12-2017, 09:06 AM | #64 |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
never install on your server postfix or any mail service. ! or you want to give access for spammerS?
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
08-12-2017, 08:29 PM | #65 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
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? |
08-13-2017, 04:01 PM | #66 |
Confirmed User
Join Date: Oct 2002
Location: Holland
Posts: 466
|
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. |
08-14-2017, 09:59 AM | #67 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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 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. |
08-15-2017, 10:56 AM | #68 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
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) |
08-16-2017, 01:19 PM | #69 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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) However, the mails of the cronjob I need... |
08-17-2017, 07:17 AM | #70 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
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 |
08-17-2017, 10:06 AM | #71 |
Confirmed User
Join Date: Oct 2002
Location: Holland
Posts: 466
|
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 . |
08-17-2017, 11:08 AM | #72 | |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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??? Quote:
|
|
08-17-2017, 12:25 PM | #73 | |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Quote:
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 ... |
|
08-17-2017, 02:02 PM | #74 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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 |
08-18-2017, 12:44 PM | #75 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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? Will it improve in the future? Maybe cache or server that optimizes? |
08-21-2017, 01:16 PM | #76 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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 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)) |
08-21-2017, 07:03 PM | #77 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Code:
curl "https://www.alternativegirlshardpics.com/cronojob.php" '____' works in a bash terminal (or ssh) ONLY |
08-22-2017, 01:05 PM | #78 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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? |
08-22-2017, 02:20 PM | #79 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
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? |
08-26-2017, 03:12 PM | #80 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
How should I read this?
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? |
08-26-2017, 03:34 PM | #81 |
Masterbaiter
Industry Role:
Join Date: Aug 2016
Posts: 27,028
|
You doing too much bro
__________________
Unlock the limitless potential of AI |
08-26-2017, 05:27 PM | #82 |
Confirmed User
Industry Role:
Join Date: Jun 2015
Posts: 507
|
I suggest you use https://runcloud.io/ ;)
__________________
Looking for adult SEO service that works? Click here for more infos ;) Email: pro.topadult at gmail dot com Skype: protopadult ICQ: 690852277 (rarely use) |
08-28-2017, 03:08 PM | #83 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
|
08-28-2017, 03:56 PM | #84 |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
and what is wrong with this? cache is a cache don't look on it.
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
08-28-2017, 04:56 PM | #85 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
Ok, but for now I have moved only 2 of my sites, on this server I would like to put about 6 other sites very similar, as structure and visits, can I continue to add sites?
|
08-28-2017, 08:44 PM | #86 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
memory usage
$ free -m I have 12G RAM on this box Code:
barry@paragon-DS-7:~$ free -m total used free shared buff/cache available Mem: 12015 3467 4422 161 4124 8020 Swap: 4093 0 4093 Or. you can run this -- repeats the command every 15 seconds and dates and logs the results. Code:
$ while sleep 15; do date >>my.log; free -m >> my.log; done Code:
$ cat my.log or learn how to use the top command and sort your processes. in ssh/terminal Code:
$ man top In the host's dashboard there are usage graphs. |
08-29-2017, 08:16 AM | #87 |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
It hosts pages that have more viewers than yours on vps with 1 gb of ram
I see that you like to give away money, will you give me a little? tnx
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
08-29-2017, 05:10 PM | #88 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
That's just one LINUX box on my office desk -- that is running Xorg ltdm GUI. It's a single processor 4core workstation -- not a server.
|
08-29-2017, 06:35 PM | #89 | |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
Quote:
OMG !!!
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
|
08-29-2017, 08:58 PM | #90 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
fuck you
|
08-30-2017, 03:06 AM | #91 |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
08-30-2017, 09:57 AM | #92 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Please-- put me on ignore -- asswipe
|
08-30-2017, 04:10 PM | #93 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
Is it possible to block or throw out Magneto664 from the discussion?
It's a nice discussion, I'm very sorry that the focus on the main topic is lost because of an idiot |
08-30-2017, 06:12 PM | #94 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Don't worry about it ...
GFY is full of little attention whores. That is what the main forum is for to hand someone their ass in a hat. |
08-30-2017, 06:50 PM | #95 | |
God Bless You
Industry Role:
Join Date: Aug 2014
Location: Glasgow, $cotland
Posts: 1,467
|
Quote:
pray to Jesus or whatever you do. I hope nobody will hack your amazing servers - you give almost everything in plain text wait....... sorty I hope somebody hack your servers. you give almost everything in plain text : bye.. and sweet kisses
__________________
magneto664 📧 gmail.com Adult Backlinks 💘Best Website Stats 💘 Best CDN for Adult Content My Fav: 👍Chaturbate 👍 Stripchat 👍 Dateprofits 👍 AdultFriendFinder |
|
09-05-2017, 05:45 PM | #96 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
Umh...
Today's day of Cronjob... I make a cronjob for each site, at a distance of one hour from the other once a week. Cronjob upload new content to MySQL, add new links to Sitemaps etc. Some cronjob last a few seconds 5-10-20 others are sometimes longer 2-3 min. Today I began to see strange behaviors. For example trying to install zip Code:
root@ubuntu-2gb-blr1-14-04-3:~# sudo apt-get install zip Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: zip 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 1 not fully installed or removed. Need to get 0 B/262 kB of archives. After this operation, 603 kB of additional disk space will be used. (Reading database ... 64067 files and directories currently installed.) Preparing to unpack .../archives/zip_3.0-8_amd64.deb ... Unpacking zip (3.0-8) over (3.0-8) ... dpkg: error processing archive /var/cache/apt/archives/zip_3.0-8_amd64.deb (--unpack): unable to create `/usr/bin/zip.dpkg-new' (while processing `./usr/bin/zip'): No space left on device No apport report written because the error message indicates a disk full error dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/zip_3.0-8_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) or occasionally visiting a site Updating the page all back to work Even nixstat from a few days, it's kinda hard to show me the charts. I have added some site in the past few days, even from 2-3000 visits a day and are not all yet... the two most performing sites I would like to put on this server I have not moved them yet. Are problems that can be solved with some optimization of MySQL (eg resizing tmp or caches) or is it already time to buy a larger server? |
09-05-2017, 06:22 PM | #97 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
There is a problem writing to the disk.
$ df and check the disc usage. here is an example of a new vps Code:
root@ds12-ams-2gb:~# df Filesystem 1K-blocks Used Available Use% Mounted on udev 1014796 0 1014796 0% /dev tmpfs 204820 16044 188776 8% /run /dev/vda1 40593708 3052664 37524660 8% / tmpfs 1024092 0 1024092 0% /dev/shm tmpfs 5120 0 5120 0% /run/lock tmpfs 1024092 0 1024092 0% /sys/fs/cgroup tmpfs 204820 0 204820 0% /run/user/1001 tmpfs 204820 0 204820 0% /run/user/0 |
09-05-2017, 06:53 PM | #98 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
When login
Code:
System information as of Wed Sep 6 01:25:04 UTC 2017 System load: 0.75 Processes: 116 Usage of /: 36.5% of 39.34GB Users logged in: 0 Memory usage: 21% IP address for eth0: 139.59.71.64 Swap usage: 0% Code:
root@ubuntu-2gb-blr1-14-04-3:~# df Filesystem 1K-blocks Used Available Use% Mounted on udev 1019956 12 1019944 1% /dev tmpfs 204988 376 204612 1% /run /dev/vda1 41251136 15058276 24484420 39% / none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 1024936 0 1024936 0% /run/shm none 102400 0 102400 0% /run/user root@ubuntu-2gb-blr1-14-04-3:~# I have however MySQL tables with hundreds of thousands of lines. I also use this type of query for the research: Code:
$query_photo = "SELECT SQL_CALC_FOUND_ROWS ".$select_fields.", MATCH(title, description) AGAINST('".trim(addslashes($_GET['query']))."') as score FROM ".$prefix."photo WHERE MATCH(title, description) AGAINST('".trim(addslashes($_GET['query']))."') ".$sort_by." DESC LIMIT ".$start.", ".$step.""; I also use APCU, memcached and Opcache, can they create the problem? I did zip even with sudo, same result Code:
root@ubuntu-2gb-blr1-14-04-3:~# sudo apt-get install zip Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: zip 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 1 not fully installed or removed. Need to get 0 B/262 kB of archives. After this operation, 603 kB of additional disk space will be used. (Reading database ... 64067 files and directories currently installed.) Preparing to unpack .../archives/zip_3.0-8_amd64.deb ... Unpacking zip (3.0-8) over (3.0-8) ... dpkg: error processing archive /var/cache/apt/archives/zip_3.0-8_amd64.deb (--unpack): unable to create `/usr/bin/zip.dpkg-new' (while processing `./usr/bin/zip'): No space left on device No apport report written because the error message indicates a disk full error dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/zip_3.0-8_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) root@ubuntu-2gb-blr1-14-04-3:~# |
09-06-2017, 05:35 PM | #99 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
Today also came this:
Code:
An unexpected error occurred: IOError: [Errno 28] No space left on device: '/var/log/letsencrypt/letsencrypt.log' Please see the logfile '/tmp/tmp58sSmQ' for more details. It is RAM? |
09-06-2017, 07:18 PM | #100 |
Confirmed User
Industry Role:
Join Date: Apr 2014
Posts: 386
|
I also found this
Code:
root@ubuntu-2gb-blr1-14-04-3:~# sudo df -i Filesystem Inodes IUsed IFree IUse% Mounted on udev 254989 392 254597 1% /dev tmpfs 256234 316 255918 1% /run /dev/vda1 2621440 2621440 0 100% / none 256234 2 256232 1% /sys/fs/cgroup none 256234 5 256229 1% /run/lock none 256234 1 256233 1% /run/shm none 256234 2 256232 1% /run/user root@ubuntu-2gb-blr1-14-04-3:~# |