Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Marko

Pages: [1]
1
How to / Re: how to secure CentOS server using CWP features
« on: August 18, 2023, 07:51:58 AM »
Blocking country in CSF is very bad advice, if you have high traffic sites CSF will totally destroy your server and CPU.

2
I think you need configure the SPF, DKIM and DMARC, also enable firewall and mod security.

3
You are talking about email spoofing ?

4
Other / Re: Cache page ?
« on: July 31, 2023, 10:15:43 PM »
Your script cached in memory with opcache feature disable it in php.ini

Code: [Select]
opcache.enable = 0
Or you can set opcache_reset() at head of script.

5
CentOS 7 Problems / Cron job does not work
« on: July 28, 2023, 11:34:04 AM »
Hello,
Anyone have idea what's going on with my cron job. Cron is run as i expect but does not execute script and I can't find any error, in cron log I found

Code: [Select]
Jul 28 13:20:01 global CROND[9961]: (username) CMD (wget -qO /dev/null https://site.com/dir/publish_cron.php )
Jul 28 13:20:01 global CROND[9959]: (username) MAIL (mailed 71 bytes of output but got status 0x0001#012)

If I setup same line as root user all is working fine

Code: [Select]
*/10 * * * * wget -qO /dev/null https://site.com/dir/publish_cron.php
But if I set up cron as any other user in that case i have problem, and also this file does not call any mail function inside, i was try to disable firewall but all is same.

6
CentOS 7 Problems / Re: CORS Missing Allow Origin
« on: December 24, 2020, 02:22:01 PM »
Already added but problem was line in apache config, after removing all working fine. So header added in nginx and php only.

7
CentOS 7 Problems / CORS Missing Allow Origin
« on: December 24, 2020, 12:12:17 AM »
Hello
I have using Nginx & Varnish & Apache but can't find solution to fix CORS problem.
I have add in apache vhosts
Code: [Select]
Header set Access-Control-Allow-Origin "*"
In nginx vhosts config
Code: [Select]
add_header 'Access-Control-Allow-Origin' '*';
In php script

Code: [Select]
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true"

What i'm missing, where can be problem and why i have "CORS Missing Allow Origin" error constantly?

Pages: [1]