Apache, Mysql Automatically Start After Reboot Under CentOS
Jul 8, 2007
I have one bare server and installed everything myself. however, I found apache, mysqld can not automatically start after reboot, may I know how to enable them to automatically start after reboot?
View 5 Replies
ADVERTISEMENT
Aug 22, 2014
So Everything was going great! Until I needed to reboot, and then after that only Plesk panel worked not my IP or any domains setup with it.
BUT when I restart Nginx it all starts working again! (Had to /usr/local/psa/admin/bin/httpdmng --reconfigure-all to get the domains to go to the right directory though)
But now everytime I reboot the server Nginx has to be restarted
Is this Normal?
I`m running Plesk 12 fresh clean install yesterday
CentOS 7 64BitÂ
View 11 Replies
View Related
Feb 21, 2008
Is there a way to start apache in linux if it goes down automatically?
View 10 Replies
View Related
Oct 24, 2008
reboot my vps every 30 min automatically in my hypervm control panel. How can i do that?
View 12 Replies
View Related
Jun 18, 2009
Can anyone recommend a Apached and MYSQL optimization expert? I just some optimization done on mysql and apache upgraded... but pache wouldn't restart with the following entries:
MinSpareThreads 25
MaxSpareThreads 35
ThreadsPerChild 25
if i remove above then it starts... but my CPU spikes and I am getting a ton of errors emailed to me:
Invalid SQL:
SELECT COUNT(DISTINCT(userid)) AS count FROM vb_session WHERE vb_session.userid>0 AND vb_session.lastactivity>1245294346;
MySQL Error : Out of memory (Needed 8388580 bytes)
Error Number : 5
Request Date : Wednesday, June 17th 2009 @ 09:39:06 PM
Error Date : Wednesday, June 17th 2009 @ 09:39:06 PM
Its constantly complaining about this same query and i thought i removed all of the vbulletin options...
i am pulling my hair out... cuz my server isn't swapping, ther are 0ver 8GBs in cache.... but my CPU goes up
Here is original problem thread...
[url]
2nd post has recommended config... and my subsequent probs
View 6 Replies
View Related
Aug 27, 2012
SETUP:
CentOS 6.3, 64 bit.
Plesk 11.09, Update #10.
I enabled Watchdog in Plesk.
It works fine.
However, it doesn't start up by itself after a server reboot.
I can start it manually with the following command:
/usr/local/psa/admin/bin/modules/watchdog/wd --start (which I have done by adding it to /etc/rc.local)
Shouldn't Plesk do this automatically?
View 19 Replies
View Related
Apr 2, 2009
my hd is little and the /var partition is full twice this days,
and it make my server down.
i try to run "yum clean all" and it empty some space.
i want to ask if any way i can stop the automatic yum ?
or the space will be full again and my server will down again.
View 7 Replies
View Related
Jul 16, 2009
I have cPanle shared account.
Is there a way to automatically check and repair mysql databases and tables, that can be scheduled as cron job?
View 9 Replies
View Related
Jan 29, 2009
Anyone know a good script that I can run with cron or something? Mysql seems to be the #1 problem with a lot of my web sites, a restart usually fixes it right away for me, but I can't keep restarting my servers everyday manually.
View 1 Replies
View Related
Jan 16, 2013
How to restart apache automatic every 12 hours ?
View 6 Replies
View Related
Mar 7, 2015
I have a issue when i try to start the DNS bing server over my vps with Centos 7 and plesk 12 its shows me this error
Error: Unable to make action: Unable to manage service by dnsmng: Empty error message from utility. ('--start', 'dns')
View 1 Replies
View Related
Feb 14, 2008
We are facing apache problem on one of our server.
It is getting restarted automatically within 30 seconds.
Below are the logs.
Please let us know the solution if any asap.
=================================================
Feb 14 04:57:00 server monit[5113]: 'apache' failed, cannot open a connection to INET[127.0.0.1:80] via TCP
Feb 14 04:57:00 server monit[5113]: 'apache' trying to restart
Feb 14 04:57:00 server monit[5113]: 'apache' stop: /etc/init.d/httpd
Feb 14 04:57:01 server monit[5113]: 'apache' start: /etc/init.d/httpd
==================================================
View 3 Replies
View Related
Jan 16, 2015
Apache Version: 2.2.29
OS Version: Windows 2012 R2 64 bit OS
Restart of apache is happening continuously .... below is snippet of the same.....
Fri Jan 16 11:22:53 2015] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Fri Jan 16 11:22:53 2015] [notice] Apache/2.2.29 (Win32) configured -- resuming normal operations
[Fri Jan 16 11:22:53 2015] [notice] Server built: Sep 10 2014 11:38:25
[Fri Jan 16 11:22:53 2015] [notice] Parent: Created child process 11440
[Fri Jan 16 11:22:53 2015] [notice] Child 11440: Child process is running
[Fri Jan 16 11:22:53 2015] [notice] Oracle WebLogic plugin build date/time: Feb 9 2011 11:49:26. Change Number: 1386101
[Fri Jan 16 11:22:53 2015] [notice] Child 11440: Acquired the start mutex.
[Fri Jan 16 11:22:53 2015] [notice] Child 11440: Starting 64 worker threads.
[Fri Jan 16 11:22:53 2015] [notice] Child 11440: Starting thread to listen on port 80.
[Fri Jan 16 11:22:53 2015] [notice] Child 11440: Starting thread to listen on port 80.
[Fri Jan 16 11:22:54 2015] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Fri Jan 16 11:22:54 2015] [notice] Apache/2.2.29 (Win32) configured -- resuming normal operations
View 2 Replies
View Related
Jul 14, 2009
tdot:/# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
.
.
.
.
...failed or took more than 6s.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
tdot:/#
View 10 Replies
View Related
Nov 10, 2007
getting the following when trying to start mysql:
Quote:
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").
have googled this to death. solutions are not working.
so far have tried the whole linking mysql.sock to the file in /tmp, changing mysql root password, rebooting, adding socket parameters in my.cnf. nothing works!
View 4 Replies
View Related
Nov 9, 2007
I am getting this error. Cannot start mysql.
I cannot find any document to fix this issue.
Stopping web server: Apache2.
www:/# /var/wkscript/tools/panel_manager start
LayeredPanel related software starting.Starting system log daemon: syslogd.
Starting periodic command scheduler: cron.
Starting mail transport agent: Postfix.
Starting MySQL database server: mysqld.
.
.
.
.
.
.
.
.
.
.
.
.
.
...failed or took more than 6s.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Starting domain name service: named.
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -E -O clf:/var/log/pure-ftpd/transfer.log -S 75.126.177.244,21 -u 1000 -B
Starting web server: Apache2.
Starting web server: Apache2.
If you visit the site, the main page gives this error:
Fatal error: Failed to connect to the DB server in /var/wkscript/db.php on line 28
View 3 Replies
View Related
Feb 16, 2007
What command could I use to see all the currently running services on my Windows (vista) computer?
I'm trying to start my MySQL server, but it won't start. I think I know what the problem is though I'm not sure. I think that the service name "MySQL" is already running...and I need to remove it or something.
Btw...my apache and php is fine. Though...I cannot use my MySQL from php obviously...since it's not running.
View 2 Replies
View Related
May 7, 2008
My MySQL server take too much time to start. I moved the data folder to its own hard disk, but still no improvement.
# uptime;date;service mysqld start;date;uptime;service httpd start
05:46:15 up 5 days, 1:24, 2 users, load average: 0.24, 1.07, 1.23
Wed May 7 05:46:15 CDT 2008
Starting MySQL: [ OK ]
Wed May 7 06:04:21 CDT 2008
06:04:21 up 5 days, 1:42, 1 user, load average: 1.77, 1.65, 1.50
Starting httpd: [ OK ]
#
You see MySQL take 18 minutes to start.
This happens whenever i restart the server or restart mysql.
Here is the process while MySQL starts
# ps aux|grep mysql
root 23549 0.0 0.0 4448 1168 pts/0 S+ 05:24 0:00 /bin/sh /sbin/service mysqld start
root 23556 0.0 0.0 4628 1272 pts/0 S+ 05:24 0:00 /bin/bash /etc/init.d/mysqld start
root 23613 1.5 7.5 157668 154580 pts/0 D+ 05:24 0:01 chown -R mysql:mysql /backup/mysql
root 23780 0.0 0.0 3896 664 pts/1 S+ 05:26 0:00 grep mysql
#
It is chown that make the MySQL startup slow.
MySQL data size is about 11 GB.
View 2 Replies
View Related
Feb 2, 2008
under the shell on a cpanel server I tried to restart mysql - and it won't restart
/etc/init.d/mysql start
Starting MySQL................................... ERROR!
Where do I even begin to try to fix this?
View 4 Replies
View Related
Jan 11, 2015
i have made my all pages with .html extension and hence my SEO is based on accordingly. Now i made some changes to htaccess that causes to not inclusion of header and footer pages (both are made with .php extension ). so i decided to change the extension of pages (.html to .php) and it wokrs. due to SEO and large number of pages i want all my pages .php (made later). to get converted automatically with .html in browser. so is it possible using .htaccess rewrite.
View 1 Replies
View Related
Nov 13, 2007
I have a cheap managed server and support is of little help BUT they will do what I tell them, where should I tell them to start to fix high mysql load?
The server currently has a large IPB forum, a large 4images gallery, and a couple popular Wordpress blogs, and this combo keeps taking mysql down.
What can I do server side to help this? And what shouldn't I do?
View 5 Replies
View Related
Mar 23, 2014
I can't start MYSQL. How can i fix this?
View 3 Replies
View Related
Feb 18, 2015
I have test server with > VMware CentOS + Plesk 12...And after reboot, plesk "localhost.localdomain" show me "Apache 2 default page"I do this > service httpd restart, and after all ok. (Show Plesk Default page) no apache page.I want normaly reboot server and show "Plesk default page" no apache...
View 4 Replies
View Related
Oct 30, 2009
I just installed mySQL server on a brand new dedicated server and am getting Timeout error occurred trying to start MySQL Daemon. I have uninstalled and reinstalled it a few times and am still getting the same error.
View 11 Replies
View Related
May 10, 2007
I am getting the error (as listed in the title) on my server. This is a BRAND NEW FRESH install on a brand new server...
OS: Unix Fedora
Kernel Version: Kernel 2.6.18-1/2798.fc6 on an i686
Hardware Information: Brand new Dell SC1435 Server
Software Version: MySQl 5
Control Panel: Nothing yet
Apache starts ok but when I go to strart MySQL I get the following error...
[root@server112]# /etc/rc.d/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon
Starting MySQL: [FAILED]
Does anyone have any ideas?
I did some pretty extensive searching...
Web Hosting Talk article that basically describes the same error. I followed everything as listed in his suggestion and it didn't change anything.
Also Checked here but this didn't work either.
View 6 Replies
View Related
Sep 13, 2014
I am having to restart https after a reboot in order to get the virtual hosts working.
If I DON'T restart https, all I get is the system default page and NOT the individual vhost index pages.
View 4 Replies
View Related
Aug 29, 2013
After an unexpected server shutdown. We cant start mysql anymore.
Error: Could not complete the operation: defpackagemng failed: The process terminated unexpectedly. (Error code 1067) at Start service MySQL
View 4 Replies
View Related
Jun 18, 2008
I spent all my afternoon on this but I couldn't managed to solve this problem out. Hope someone knows the solution for this one.
I've chrooted Apache and now it won't start. I try to run it with chroot /chroot/httpd httpd and it doesn't start but instead enters a single error in a error log. Something about permission being denied and apr_proc_detach constant. The best part is that I managed to run it flawlessly on an another server, but on this one it won't start. If I start it with -X parameter then it runs fine. Has anyone came across this error before? What libraries I should put in chroot environment to avoid the apr_proc_detach permission denied error?
On another computer it runs without problems, so I believe it's problem me not including all the necessary libraries in the environment (I included everything on the ldd /usr/sbin/httpd list).
View 6 Replies
View Related
Jun 1, 2007
will time i restarted my apache give me error:
Attempting to restart httpd
[url] Waiting for httpd to restart.... . . . . . . . . . . finished.
httpd status root 24470 1.0 2.3 23356 21692 ? S 20:25 0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
httpd has failed, please contact the sysadmin.
and :
root@part5 [/usr/local/cpanel/apache]# httpd configtest
Failed loading 1: 1: cannot open shared object file: No such file or directory
PHP Warning: PHP Startup: Unable to load dynamic library './' - ./: cannot read file data: Is a directory in Unknown on line 0
Warning: DocumentRoot [/home/hhhhha/public_html/hostmanager] does not exist
httpd: bad user name hhhhha
View 7 Replies
View Related