I tried to upload file on wordpress but it didn't allow me to do so because the file size was larger than the limit. After googling the problem, I accessed my website info through ssh and edited the php.ini file to increase the following settings:
upload_max_filesize = 512M
post_max_size = 512M
memory_limit = 512M
PS: I noticed that this also changed the info in the php-7.2.ini which seems to be an exact copy of php.ini.
After changing those settings I restarted httpd and went to my website. The upload limit was at 1M and I tried uploading the file again and it still didn't work...
I'm running out of possible solutions so if someone could help me out, that'd be awesome!
PS: I don't know if this matters but the wordpress I have is running with the multisite option ON. I only currently have 1 website on it. Also don't know if this matters, but I also route my www.example.com domain to my example.com domain in Route 53 in AWS and read somewhere that the server might be creating 2 separate instances on the server. Adding the multisite functionality worked fine when I edited the wp-config.php file so I figured the double instance thing was not a problem but I'm still mentioning it here just in case.