Hey everyone, so for the past weeks Ive been learning wordpress since Ive always wanted to learn wordpress. I started web dev with code 2 years ago, so I always procrastinated learning wordpress. I really like it.
**LOCAL ENVIRONMENT:**
When I start a brand new site using Local, I go the custom route, and select:
I enter the wordpress new username, password and email and click continue and the sites is created locally.
​
**PROBLEM:**
When I try to upload an image (max upload size is 300MB) even if its a small tiny 100px X 100px, it shows me a web server error:
​
​
I have tried ALL combinations of version of PHP/APAHCE/MYSQL or MARIADB and it gives me this error ONLY if I use Apache.
If I where to use NGINX theres NO ERROR.
Any ideas why this is happening?
I’m using Windows 10 + Local for WordPress.
​
**EXTRA QUESTION:**
I’m going to export this Apache/php/mariadb site using “All in one migration” plugin, and then import it into a Raspberry Pi that has Apache Virtual Hosts sites already running.
If I develop locally with Nginx/php/maridb and tried to import it to the Raspberry pi, would there be a conflict? Meaning, does the “All in one migration plugin” migrates everything and transfers Nginx stuff so it’s compatible with Apache?
Or the rule is, I need to use the EXACT web server in LOCAL that I will be using in my server (raspberry pi, linode, digital ocean, bluehost etc)?
​
*Raspberry Pi is running:*
PHP: 7.4.30
Apache: 2.4.54
MariaDB: Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnueabihf (armv8l) using EditLine wrapper
[ad_2]
I wouldn’t use anything higher that PHP 8.0 yet. I don’t believe 8.1+ is supported as yet, but I haven’t looked into it – a lot of plugins don’t work on 8.1
As for the stack question – WP doesn’t care what it runs on, as long as it’s a support version of PHP, Apache, mySQL/maria. It can be moved to a stack that different to what it was built on without any issues.