New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
I won't add it as a default but will certainly consider making it an option
Fixed more bugs, namely permissions bugs and the php5-mysql installation code :P
I tested it on my server and it all seems in good working order (yea, not the first time I've said that!)
Well, the problem was that if you had a low-memory VPS, MySQLd would not start because InnoDB didn't have enough memory, and that would cause a whole flurry of problems. That code fixed the problem by disabling the start of MySQLd during dpkg configuration.
However, you seem to have fixed it by adding in the files directly before installation even starts, which does work. However, that renders http-configure-mysql partially useless because the configuration is already there and the script doesn't delete it if you didn't want low memory usage and/or InnoDB disabled.
(If you don't mind a suggestion, I'd suggest having an option to disable the start of MySQLd and go straight to http-configure-mysql before the section where the script does its own restart.)
Running http-configure-mysql and selecting no at relevent prompts will actually remove the offending configuration files and restore innodb/normal memory settings
Sure, I was just unsure of how to do this, mind sharing any ideas/tips you have?
https://github.com/TigersWay/VPS/blob/master/vps/lxmp.sh
Line 81
Oh! I didn't see the rm in the else, sorry.
But if you wanted to do that, here's what I think would work:
Full credits to TigersWay for his elegant solution.
You'll probably have to check my if statements, since I'm not a shell coder, but I think they're right. I assume a similar procedure for nginx if you wanted to do it there too.