webmin - can't edit mysql settings at all - webmin

New webmin user. I have a database setup and running. The 'MySQL Server Configuration' page provides pretty much nothing in terms of settings and the 'MySQL System Variables' page shows at the top 'Warning - Variables set on this page will be reset to their default values when MySQL is restarted. Permanent settings must be made on the MySQL Server Configuration page.' which simply goes back to the original page which doesn't let me change much of anything.
If I change settings in my.cnf manually they are all erased as soon as I restart the server. Am I missing something here? I need to make changes to innodb settings and I can find no way to do this!?

Related

Path problem after migration to new server

I migrated my mediawiki to a server with a different hostname (completely different machine).
after export/import the database and changing the hostname in the web-config file i was able to log in to mediawiki-1.34.0
But after clicking on a page (wiki-entry), the old hostname will be used. It seems that the old hostname is saved somewhere in the database as well.
I used this Howto: https://www.mediawiki.org/wiki/Manual:Moving_a_wiki
Best Regards,
M
You probably need to update $wgServer and related variables.
You might need to invalidate some caches as well, to force articles to be re-rendered. That depends greatly on wiki settings and your overall infrastructure; see e.g. $wgCacheEpoch.

Easy Hosting Control Panel creates multiple backup

I have a server that's running Ubuntu 16.04. and apparently Easy Hosting Control Panel keeps on creating multiple back-ups like 50 times a day which fills the 50 gb disk space and it's causing the server to crash.
The backup is creating multiple directories named Apache2.backupbyehcp inside /etc directory.
I've tried deleting the backups one by one and after a day there it is again.
I want to disable or limit the backups created.
Any help is greatly appreciated.
Here's a screen shot of the backup directories that are being created:
This is caused by:
Ehcp trying to recover webserver config, each time it detects that the webserver config is broken or webserver not responding.
This may result in such unexpected/unwanted behaviour.
What to do:
1st, check the problem in webserver configs, like, tail -f /var/log/ehcp.log
so that you can understand what is going wrong.
This is sometime caused by incorrect webserver custom configurations by admin or reseller. You may disable custom webserver configs via ehcp gui-> options.
(I strongly suggest finding the cause of this.)
If everything regarding the webserver is okay, but you just need to disable this backup,
open install_lib.php in ehcp dir, search for backupbyehcp and disable that line.
Hope this helps.

Not able to start the IBM HTTP Server

We have taken the Images of the mount points from one existing IBM HTTP Server v8.5 and copied it to another Server. When we tried to start the server using ./apachectl start am not getting any error messages but no I couldn't find any httpd instance running.
When I tried to stop the server I got "httpd (pid 19422?) not running" message.
Changes have been made in httpd.conf by changing the server name.
Please let me know if this Image copying is possible?
If yes, please let me know where else should I have to make the changes?
As long as you keep the path the same, and copy a stopped server, it should be fine.
If you change path, obviously you'll have to change all references to that path in the installation root.
If the server was running, when you copied it, you'll need to zap the PidFile (logs/httpd.pid by default). Usually this is recovered automatically.
Solved this issue, by granting the access to the particular file. It was due to different user who started the server on the parent server from where the Application was cloned.

WHM and cPanel database and settings storing place

I'm trying to figure out where all WHM settings are stored. I got a task to prepare some template with WHM and cPanel installed but I can't find anywhere any information what is the name of the database where information (with settings) are stored.
I'm precisely looking for the option to turn on email notification in cPHulk about banned user IPs. I know that I can set it up later but I don't want to make any of initial setup in WHM/cPanel.
Is any chance to manually change this settings value ? (either in database or file).
I'm looking as well where are stored values for WHM option: "Show IP Address Usage"
By default, you can only preconfigure WHM using cpanel.config file as described in their docs: https://documentation.cpanel.net/display/1144Docs/The+cpanel.config+File
Unfortunately, this only covers 'Tweak Settings' section, so you can't preconfigure cPHulk using it. One of the alternatives would be to use WHM API and fire it after the server is installed. With this API you have way more options, e.g. cPHulk controls are there: https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+load_cphulk_config

WAMP Phpmyadmin Login Still Don't Display

Okay, I know it may sound stupid but I really need your opinions or suggestions about something. A computer has an older WAMP version (5 1.7.0) installed in it (I'm not the one who installed it) and running on Windows XP. Whenever I go to its Phpmyadmin page, it automatically gives me access to anything what are in it. That's a security hole that must be solved. I want it to ask me or prompt a login page first. I still have no success from the following steps that I've tried:
I have set the username as root and the password as
samplepass from the Priveleges section in the Phpmyadmin page - Still no success!
I also modified the config.inc.php file. I put the said password in $cfg['Servers'][$i]['password'] and changed the "cookie" as "config" in $cfg['Servers'][$i]['auth_type'] - Still no success!
Already restarted the connection of all WAMP services after the changes made - Still no success!
I also cleared the histories, caches, cookies, etc. in the browsers just incase - Still no success!
One thing I've noticed is that the file has no $cfg['Servers'][$i]['AllowNoPassword'] nor $cfg['Servers'][$i]['AllowNoPasswordRoot'] in it. I tried including that into the file and providing it the value as "YES" but still, no login page is displaying.
I don't want to reinstall the WAMP or install new one. I'm afraid to destroy what was already there. So what do you think why the login page is still not displaying? Am I forgetting something or missed to do? (Sorry for sometimes I'm forgetful).
Alright, just after trying the things out again with still no success, I came up with this:
I changed back the value of $cfg['Servers'][$i]['auth_type'] from "config" to "cookie"
Then I added a random text value for $cfg['blowfish_secret']
After the (2) changes I made, I restarted the all the services again and poof! Login page is now displaying! But I'm still confused why my first tries didn't work. I'm not a know-it-all person about this particular area and sure there's more things to know about database thing. That's all.