![]() |
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. |
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? |
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() |
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 |
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 |
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. |
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 |
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... |
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 |
I do not want to use a paid service... I have a Linux server, the server must operate the Cronjob...
|
Quote:
|
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 |
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)) I have search the error in Google, but the answers are all very confusing... |
Quote:
|
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? |
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. |
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. |
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) |
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) However, the mails of the cronjob I need... |
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 |
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 . |
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:
|
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 ... |
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 |
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 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? |
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 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 |
Code:
curl "https://www.alternativegirlshardpics.com/cronojob.php" '____' works in a bash terminal (or ssh) ONLY |
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? |
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? |
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? |
You doing too much bro
|
I suggest you use https://runcloud.io/ ;)
|
Quote:
|
Quote:
|
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?
|
memory usage
$ free -m I have 12G RAM on this box Code:
barry@paragon-DS-7:~$ free -m 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. |
Quote:
I see that you like to give away money, will you give me a little? tnx |
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.
|
Quote:
OMG !!! |
fuck you
|
Quote:
|
Please-- put me on ignore -- asswipe
|
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 |
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. |
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 |
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 or occasionally visiting a site http://porn-update.com/temp/Schermat...2002-26-28.png 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? |
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 |
When login
Code:
System information as of Wed Sep 6 01:25:04 UTC 2017 Code:
root@ubuntu-2gb-blr1-14-04-3:~# df 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 |
Today also came this:
Code:
An unexpected error occurred: It is RAM? |
I also found this
Code:
root@ubuntu-2gb-blr1-14-04-3:~# sudo df -i |
All times are GMT -7. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc