I have setup and configured a LAMP server on an RPi3.
All software is installed with no errors. I have configured a basic Wordpress home page, however it takes 4 plus minutes to load.
I am running this from my home ADSL and I know my provider is not blocking any ports as I had confirmed that with them already. And when I try to open the webpage from a PC at work, I can see Chrome shows at the bottom waiting for 192.168.1.2 which is my Pi's internal IP. I don't think this is DNS as Chrome shows the internal IP after a few seconds when using the FQDB and the same slowness is experienced when using public IP.
What I have done so far to solve the issue:
I have checked top while I had a mobile device access the website -no excess CPU or RAM being used.
Configured RPi to boot to CLI only (no auto login)
Reduced GPU memory to 128MB
Tested DNS which works fine
No errors in any error logs for RPi, Apache2, DNS etc.
Loads of free disk space as I am using a 64GB memory card
I am running Raspbian Linux 9
I can confirm that my upload speed is only 1 Mbps which I know is slow, but I still don't believe that a basic wordpress site with virtually no content on it should take over 4 minutes to load. Maybe a minute or slightly more at most.
I suspect it could be that my apache2 has not been configured optimally as I have been looking at the config files and the ones on my server are very limited compared to some on the internet.
Can anyone please help and advise what I can do to speed this up? I am happy to post whatever config files you need (Apache2, DNS etc.)
Thanks in advance