So as I've stated above: I have a quite big, but quite easy script, which gets a single json file from a website, decodes it, then saves the data in a PostgreSQL database. It takes about 4 to 5 minutes to completely finish (about 300 000 records) on my computer (i3M CPU, laptop) but takes a about 10-15 times longer to do the same thing on the server which I've just rented.
The dedicated server has an intel Xeon quad (3Ghz) CPU, and on an overall level much better specifications with much better internet access, so I'm pretty sure it has nothing to do with that. It runs the latest Debian, Apache/2.4.10, PHP Version 5.6.22-0, PostgreSQL 9.5.
I've tried to copy the settings and modules from the WAMP settings, figured it my help. Unfortunately, it didn't. Not sure what information might help in solving this problem, but I'm more than happy to answer to any of the questions.
I am almost positive it has something to do with some option which I must have skipped, so any help would be much appreciated.
PS: WAMP uses: 2.4.17 Apache, 5.6.16 PHP, 9.5 PostgreSQL.