I tried to use File Manager, I edited in wp-config.php and added define( ‘WP_MEMORY_LIMIT’, ’256M’); before the line of That’s all, stop editing! Happy publishing.
Then my site will have the error of http 500 error, I looked at php error log and found something like there is syntax error in Line 96 of wp-config.php file.
I have to remove the added script.
So, where can I edit WP-memory limit inside Virtualmin?
@lszach The apostrophes are different. See how yours are fancy and the ones from @Steini are straight. I have been bitten by this one before now. Change them to normal ones and you will be fine. I don’t know what you used to create the fancy apostrophes as most text editors should not use these, it is more a thing for microsoft office.
It’s very common for sites to replace quotes (both single and double) with “smart quotes” ( like that) that are a different, Unicode, character, rather than the ASCII counterparts that are actually recognized by various config file parsers and programming languages. You need to just watch out for it. It happens all the time.
It happens here even, when someone doesn’t wrap it in backticks (`) or triple backticks (```) for a long example containing multiple lines.
Code and config files and logs should be wrapped in those, so they get treated like literal monospace type.