Welcome! Log In Create A New Profile

Advanced

Legacy niggle ...

Posted by Lester Caine 
Lester Caine
Legacy niggle ...
September 04, 2018 09:50PM
I've had a problem with a machine which was running my legacy PHP5
service. I've got the new setup running but a pair of CodeIgniter sites
are being difficult, or rather one of the pair. I've got nginx on a
machine running a local PHP7 php-fpm and a remote PHP5 php-fpm. The
legacy code is using a mysql driver and needs a bit of work converting
the code to PHP7 which is on the todo list. The PHP5 php-fpm setup was
running both sites fine, but having mirrored everything to the new
machine, one is still fine, but the other is just throwing 'File not
found.' messages. If I JUST switch the fastcgi_pass to the PHP7 service
I get errors and warnings about no mysql functions which would seem to
indicate everything is in the right place, but anything else I can check?

And now to screw the sod on 139.199.103.154 who is trying to hack the
MySQL server!

--
Lester Caine - G8HFL
-----------------------------
Contact - https://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - https://lsces.co.uk
EnquirySolve - https://enquirysolve.com/
Model Engineers Digital Workshop - https://medw.co.uk
Rainbow Digital Media - https://rainbowdigitalmedia.co.uk
Jonesy via php-general
Re: Legacy niggle ...
September 05, 2018 03:50AM
On Fri, 31 Aug 2018 22:44:39 +0100, Lester Caine wrote:
>
> And now to screw the sod on 139.199.103.154 who is trying to hack the
> MySQL server!

inetnum: 139.199.0.0 - 139.199.255.255
netname: TencentCloud
descr: Tencent cloud computing (Beijing) Co., Ltd.

/etc/hosts.allow;

ALL : 139.199. : deny

Jonesy
Anonymous User
Re: Legacy niggle ...
September 05, 2018 04:20AM
September 4 2018 9:45 PM, "Jonesy via php-general" <[email protected]> wrote:
> On Fri, 31 Aug 2018 22:44:39 +0100, Lester Caine wrote:
>
>> And now to screw the sod on 139.199.103.154 who is trying to hack the
>> MySQL server!
>
> inetnum: 139.199.0.0 - 139.199.255.255
> netname: TencentCloud
> descr: Tencent cloud computing (Beijing) Co., Ltd.
>
> /etc/hosts.allow;
>
> ALL : 139.199. : deny
>
> Jonesy

sudo iptables -A INPUT -s 139.199.0.0/16 -d <destination ip or interface> -j DROP

works as a reverse denial of service. they open a socket. your system silently drops the connection. the calling system will open a ton of sockets waiting for acks to its syn packets and will get crickets.

--Curtis
- -
Re: Legacy niggle ...
September 07, 2018 08:00AM
unsubscribeOn August 31, 2018 at 4:44 PM Lester Caine &#60;[email protected]&#62; wrote:I&#39;ve had a problem with a machine which was running my legacy PHP5 service. I&#39;ve got the new setup running but a pair of CodeIgniter sites are being difficult, or rather one of the pair. I&#39;ve got nginx on a machine running a local PHP7 php-fpm and a remote PHP5 php-fpm. The legacy code is using a mysql driver and needs a bit of work converting the code to PHP7 which is on the todo list. The PHP5 php-fpm setup was running both sites fine, but having mirrored everything to the new machine, one is still fine, but the other is just throwing &#39;File not found.&#39; messages. If I JUST switch the fastcgi_pass to the PHP7 service I get errors and warnings about no mysql functions which would seem to indicate everything is in the right place, but anything else I can check?And now to screw the sod on 139.199.103.154 who is trying to hack the MySQL server!-- Lester Caine - G8HFL-----------------------------Contact - https://lsces.co.uk/wiki/?page=contactL.S.Caine Electronic Services - https://lsces.co.ukEnquirySolve - https://enquirysolve.com/Model Engineers Digital Workshop - https://medw.co.ukRainbow Digital Media - https://rainbowdigitalmedia.co.uk
Narcis Garcia
Re: Legacy niggle ...
September 07, 2018 09:20AM
This mailing list should append a footer with list's information,
including unsubscription link.


El 07/09/18 a les 07:56, - - ha escrit:
> unsubscribe
>
>> On August 31, 2018 at 4:44 PM Lester Caine <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>
>> I've had a problem with a machine which was running my legacy PHP5
>> service. I've got the new setup running but a pair of CodeIgniter sites
>> are being difficult, or rather one of the pair. I've got nginx on a
>> machine running a local PHP7 php-fpm and a remote PHP5 php-fpm. The
>> legacy code is using a mysql driver and needs a bit of work converting
>> the code to PHP7 which is on the todo list. The PHP5 php-fpm setup was
>> running both sites fine, but having mirrored everything to the new
>> machine, one is still fine, but the other is just throwing 'File not
>> found.' messages. If I JUST switch the fastcgi_pass to the PHP7 service
>> I get errors and warnings about no mysql functions which would seem to
>> indicate everything is in the right place, but anything else I can check?
>>
>> And now to screw the sod on 139.199.103.154 who is trying to hack the
>> MySQL server!
>>
>> --
>> Lester Caine - G8HFL
>> -----------------------------
>> Contact - https://lsces.co.uk/wiki/?page=contact
>> L.S.Caine Electronic Services - https://lsces.co.uk
>> EnquirySolve - https://enquirysolve.com/
>> Model Engineers Digital Workshop - https://medw.co.uk
>> Rainbow Digital Media - https://rainbowdigitalmedia.co.uk
Frank
Re: Legacy niggle ...
September 07, 2018 10:50AM
On 07 Sep, Narcis Garcia <[email protected]> wrote:
> This mailing list should append a footer with list's information,
> including unsubscription link.

That link is in the headers, as with any proper mailing list. Apparently
some people are just too lazy or too stupid to look there.


> El 07/09/18 a les 07:56, - - ha escrit:
> > unsubscribe
> >
> >> On August 31, 2018 at 4:44 PM Lester Caine <[email protected]
> >> <mailto:[email protected]>> wrote:
> >>
> >>
> >> I've had a problem with a machine which was running my legacy PHP5
> >> service. I've got the new setup running but a pair of CodeIgniter sites
> >> are being difficult, or rather one of the pair. I've got nginx on a
> >> machine running a local PHP7 php-fpm and a remote PHP5 php-fpm. The
> >> legacy code is using a mysql driver and needs a bit of work converting
> >> the code to PHP7 which is on the todo list. The PHP5 php-fpm setup was
> >> running both sites fine, but having mirrored everything to the new
> >> machine, one is still fine, but the other is just throwing 'File not
> >> found.' messages. If I JUST switch the fastcgi_pass to the PHP7 service
> >> I get errors and warnings about no mysql functions which would seem to
> >> indicate everything is in the right place, but anything else I can check?
> >>
> >> And now to screw the sod on 139.199.103.154 who is trying to hack the
> >> MySQL server!
> >>
> >> --
> >> Lester Caine - G8HFL
> >> -----------------------------
> >> Contact - https://lsces.co.uk/wiki/?page=contact
> >> L.S.Caine Electronic Services - https://lsces.co.uk
> >> EnquirySolve - https://enquirysolve.com/
> >> Model Engineers Digital Workshop - https://medw.co.uk
> >> Rainbow Digital Media - https://rainbowdigitalmedia.co.uk
Anonymous User
Re: Legacy niggle ...
September 07, 2018 11:10AM
Sent from MailDroid

-----Original Message-----
From: Frank <[email protected]>
To: php-general@lists.php.net
Sent: Fri, 07 Sep 2018 9:40
Subject: Re: Legacy niggle ...

On 07 Sep, Narcis Garcia <[email protected]> wrote:
> This mailing list should append a footer with list's information,
> including unsubscription link.

That link is in the headers, as with any proper mailing list. Apparently
some people are just too lazy or too stupid to look there.

I'm on my phone today .... no footer detail is visible and I can't see how to get it up
And trimming the unnecessary bits is a pain ...
Tim Streater
Re: Legacy niggle ...
September 07, 2018 11:40AM
On 07 Sep 2018, at 09:37, Frank <[email protected]> wrote:

> On 07 Sep, Narcis Garcia <[email protected]> wrote:
>> This mailing list should append a footer with list's information,
>> including unsubscription link.
>
> That link is in the headers, as with any proper mailing list. Apparently
> some people are just too lazy or too stupid to look there.
>
>
>> El 07/09/18 a les 07:56, - - ha escrit:
>> > unsubscribe

You mean this header:

list-unsubscribe: <mailto:[email protected]>

Perhaps some people are unaware of that or don't know what you mean by "headers". However I might take this as a feature request for my own email client; if I detect such a header in a mail I could enable an "Unsubscribe" button.


--
Cheers -- Tim
Sorry, only registered users may post in this forum.

Click here to login