How To Start Apache Automatically When Down
Feb 21, 2008Is there a way to start apache in linux if it goes down automatically?
View 10 RepliesIs there a way to start apache in linux if it goes down automatically?
View 10 RepliesI 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 View RelatedSo 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Â
How to restart apache automatic every 12 hours ?
View 6 Replies View RelatedWe 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
==================================================
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
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 RelatedI 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).
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
when i restart apache show this error :
[root@server ~]# service httpd start
Starting httpd: httpd: Syntax error on line 19 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libperl.so into server: /usr/lib/apache/libperl.so: undefined symbol: ap_table_merge
I just setup an instance of Apache on Windows with SSL and it starts by running "httpd.exe", but I can't get it to start as a service. It was running fine before adding the SSL certificate/key pair.
This is the error, I get as a Service:
Quote:
[Wed Aug 15 11:22:09 2007] [info] mod_unique_id: using ip addr 10.254.1.135
[Wed Aug 15 11:22:10 2007] [info] Init: Seeding PRNG with 144 bytes of entropy
[Wed Aug 15 11:22:10 2007] [info] Loading certificate & private key of SSL-aware server
[Wed Aug 15 11:22:10 2007] [error] (OS 5)Access is denied. : Init: Can't open server certificate file C:/Apache2/conf/ssl/NBCDDSARP10.dev.npe.tic.cert
This is what happens when I run it via "httpd.exe"
Quote:
[Wed Aug 15 11:27:08 2007] [info] Init: Seeding PRNG with 144 bytes of entropy
[Wed Aug 15 11:27:08 2007] [info] Loading certificate & private key of SSL-aware server
[Wed Aug 15 11:27:08 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Wed Aug 15 11:27:08 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Wed Aug 15 11:27:08 2007] [info] Init: Initializing (virtual) servers for SSL
[Wed Aug 15 11:27:08 2007] [info] Configuring server for SSL protocol
[Wed Aug 15 11:27:08 2007] [info] Server: Apache/2.2.4, Interface: mod_ssl/2.2.4, Library: OpenSSL/0.9.8e
I have a vps with cheapvps.co.uk.their service is great. I have used it for one month without any problems. but today I noticed that I can not access my vps through web browser. it gave me this error :
Connection actively refused by the server
after contacting support it was clear for me that the problem is that xampp apache is not running. and support said that as my vps is unmanaged they can not help me right now.
when I enter this command :
/opt/lampp/lampp startapache
I see this message :
XAMPP: Starting Apache with SSL (and PHP5)...
and then nothing happens and apache does not start.
I completely removed Xampp and reinstalled it. then when I try to start xamp apache it says :
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Make the httpd.conf fit your system.
XAMPP: Next try...
XAMPP: Starting Apache with SSL (and PHP5)...
I do not know what to do with httpd.conf and I dont know where exactly it is.
Server easily install but it could not be start ,,,it says that Server Root must be a directory..
View 1 Replies View RelatedI have delete my old ssl key, now will apache not start...
I have this error show
Fout: Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start
('--start', 'web')
[Code] ....
Server down after start apache! Too many connection!
When im start apache on server, its crashed.
I am see following error, in access log:
Where is issue and how can fix it?
-bash-3.1# tail -f /var/log/httpd/access_log
::1 - - [16/Nov/2008:20:54:23 +0330] "GET / HTTP/1.0" 403 5043 "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [16/Nov/2008:20:54:24 +0330] "GET / HTTP/1.0" 403 5043 "-" "Apache/2.2.3 (CentOS) (internal dummy connection)" ....
Code:
[root@serwer /]# httpd restart
/usr/sbin/httpd restart: httpd not running, trying to start
/usr/sbin/httpd restart: httpd could not be started
Code:
[root@serwer /]# httpd status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile [url]
I am using Wamp server 2.2.
I recently made some changes to the Apache configuration to allow me to make a virtual host for the Zendframework. the change i made were as follows:
<VirtualHost 127.0.0.1>
ServerName zendy
DocumentRoot "C:workspacezendypublic"
SetEnv APPLICATION_ENV "development"
<Directory "C:workspacezendypublic">
DirectoryIndex index.php
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
Since these changes were made, my wamp server will not start up. the wamp bar remain red.
What I have to do to find out/trace where the fault is?
I have been using Apache 2.2.23 VC9 ssl 0.98 on my windows 7 32 bit PC. I decided to remove the 2.2.23 release and install 2.4.3 VC9 version yesterday. After installation, I was able to run Apache by running httpd.exe from command line. I can also install Apache service using "httpd -k install" with no problem. However, when I tried to start Apache service using "httpd -k start", it didn't work for me. Starting Apache from apachemonitor also failed. I checked error.log and found the following output:
Starting the Apache2.4 service
[Mon Feb 18 19:00:33.498207 2013] [mpm_winnt:crit] [pid 7564:tid 376] (OS 1053)The service did not respond to the start or control request in a timely fashion. : AH00378: Apache2.4: Failed to start the service process.
I have installed Apache on ubuntu as per our project related manual by using the packages.
httpd-2.4.4.tar.gz
apr-1.4.6.tar.gz
apr-util-1.5.2.tar.gz
I copied apr-1.4.6 apr-util-1.5.2 (after extract) to srclib directory of apr-util-1.5.2
and created symbolic links as below
ln _s apr-1.4.6 apr
ln _s apr-util-1.5.2 apr-util
and configured httpd-2.4.4 with
./configure --with-included-apr
and make ; make install;
now my apache is running , but how to stop and start the apache.
I googled for reference and found it can be done using
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
I dont have apache2 in my /etc/init.d folder.
how to start and stop.
So after a failer update to 12 I ran bootstrap repair.
But Apache wont start. - I get errors like -
Code:
[root@ip-188-121-50-106 /]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 7 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Could not open configuration file /var/www/vhosts/satking.co.uk/conf/13906902810.95873000_httpd.include: No such file or directory
[FAILED]
When I look at my Current CPU Usage / process manager, I see this:
Pid |Owner | Priority | Cpu % |Mem % | Command
13754 | nobody | 0 | 2.2 | 4.0 |/usr/local/apache/bin/httpd -k start -DSSL
I've got about 9 more of these, and it keeps eating up the memory. What is it and what can I do? Is it just apache running?
I encountered a strange problem when installing apache 2.2 or 2.4 as a service and set the service to be automaticly started.On restart of windows, apache service crashes with an access violation.
View 3 Replies View RelatedI'm running Apache 2.2 on Windows 7. I'm a casual user of the Apache server, and the server I'm running is only used to develop a Silverlight application on the local machine, nothing more. The following problem is apparently a non-systematic error (sometimes the server can startup, sometimes it cannot. If it cannot, it sometimes can after a reboot (a service startup race condition?))
I get error when starting the server: "The requested operation has failed!"
When I run "http.exe" from a command prompt I get:
Quote:
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.0.0.100 for ServerName
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. :
make_sock: could not bind to address 0.0.0.0:80
No listening sockets available, shutting down
Unable to open logs
It does not write anything in the "error.log". It cannot? why? rights? but it could yesterday! anything changed from yesterday, no nothing!
I have tried to start the server many times today, and it has not written anything in error.log. Looking in the log there are many entries from yesterday, when the server probably worked!?
Okay there most be something using port 80 then!
Output from "netstat -o -n -a | findstr :80" is nothing! netstat says there is nothing listening on port 80.
I'm running SQL Server 2008 Express, and "Reporting Service" would be a prime candidate for listening on port 80, but netstat says it is not!
I'm using the ZoneAlarm firewall (the Apache server has been given full trust and permissions), and it has worked previously, I belive it cannot be the problem.
I'm using Avast anti-virus, but everything is disabled in it, and I'm only using it to run a virus check from time to time.
(I don't think it has anything to do with the "fully qualified domain name", because the setting it is complaining about has always been the same, also when the server is actually working, from time to time)
A newby to web hosting, I get a lot of "script not found or unable to stat:" errors. Should I be concerned? The web site seems to be working fine. The entire error message looks like this: script not found or unable to stat: /home/coin99/public_html/cgi-bin/cq/undefined, referer: URL...
The public_html/cgi-bin/cq/ directory contains the main Perl script for my site. It is called 'coins' (no extension). There is no file or directory called 'undefined.' The referer is a page on my site.
New to Apache Web Server. Built the self signed certs, and tried to bring up server after configuring the httpd.conf file.I also included the section of the error log file that is pertinent.httpd.conf removed, use past bin.
View 1 Replies View RelatedMy Apache server wont start. I did not install this server.
D:WebserverApachebin>httpd.exe -e debug
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module actions_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module alias_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module asis_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module auth_basic_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module authn_default_module
[code]...
Invalid command 'AuthDigestProvider', perhaps misspelled or defined by a module not included in the server configuration..No port is using port 80 or 8080.
Installed Apache Server 2.4.3 (no PHP, etc.) and it was working beautifully for a week or so. Yesterday, I restarted my laptop (nothing changed... no updates that install automatically, etc.) and now Apache won't start. Here are some things I've found out on my quest on figuring out what's wrong:
1. Apache Error Log:
[Sat Jan 05 14:18:36.745977 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00455: Apache/2.4.3 (Win64) configured -- resuming normal operations
[Sat Jan 05 14:18:36.745977 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00456: Server built: Aug 18 2012 14:13:48
[Sat Jan 05 14:18:36.745977 2013] [core:notice] [pid 4116:tid 372] AH00094: Command line: 'C:Apache24inhttpd.exe -d C:/Apache24'
[Sat Jan 05 14:18:36.747979 2013] [mpm_winnt:notice] [pid 4116:tid 372] AH00418: Parent: Created child process 3436
[Sat Jan 05 14:18:37.335418 2013] [mpm_winnt:crit] [pid 4116:tid 372] AH00419: master_main: create child process failed. Exiting.
2. Nothing else is using port 80 (or 443, for that matter).
3. Apache will start and stay running if I run httpd.exe from the DOS prompt or double-click it from within Windows just fine.
4. Will not run when launched from within the Services or Apache Service Monitor app.
5. Windows Event Error displays the following error:
Faulting application name: httpd.exe, version: 2.4.3.0, time stamp: 0x502f863e
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
Exception code: 0xc0000417
Fault offset: 0x0000000000070468
Faulting process id: 0x13d8
Faulting application start time: 0x01cdeb8eefaec475
Faulting application path: C:Apache24inhttpd.exe
Faulting module path: C:WindowsSYSTEM32MSVCR100.dll
Report Id: 2deab70b-5782-11e2-be94-00247e17b5d9
Faulting package full name:
Faulting package-relative application ID:
6. I've tried fixing/reinstalling the C+ redistribution files about 3 times now, to no avail (thinking the error in the event file was caused by a bad/corrupt MSVCR100.DLL).
7. The exception code in the event error is:
0xc0000417 = STATUS_INVALID_CRUNTIME_PARAMETER =
An invalid parameter was passed to a C runtime function. (But again, reloading the files didn't solve anything).
8. I have tried removing Apache completely, reloading with default settings, etc. and still having the same issue.
9. Out of desperation, I even tried a registry cleaner (CCClean) and CHKDSK on the drive. Both of those didn't fix anything.
This is it... not sure what else to do/try. Again, everything was fine one moment, and it all stopped working after rebooting my system. I've wasted hours into this issue, and have come up empty handed. I'm beyond frustrated at the moment.
EDIT: The download I used for the server is located here: [URL]...
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
I've installed apache, php5 and php handler but couldn't able to the start the server and my error log is below.
stalling the Apache2 service
The Apache2 service is successfully installed.
Starting the Apache2 service
The Apache2 service is running.
ce] Apache/2.0.64 (Win32) configured -- resuming normal operations
[Mon Apr 22 21:16:59 2013] [notice] Server built: Oct 18 2010 01:36:23
[Mon Apr 22 21:16:59 2013] [notice] Parent: Created child process 1060
[Mon Apr 22 21:16:59 2013] [notice] Child 1060: Child process is running
[Mon Apr 22 21:16:59 2013] [notice] Child 1060: Acquired the start mutex.
[Mon Apr 22 21:16:59 2013] [notice] Child 1060: Starting 250 worker threads.
[code]....
I'm facing problem with latest Apache 2.4.9. Previously we used Apache 2.4.7 ​version which supports DER SSL certificates. But Latest Apache(2.4.9) is not working with DER SSL certificates. I have to convert DER certificate to PEM format to start the Apache server. Am i missing anything ? Is DER certificate not supported in Apache 2.4.9 ?
View 6 Replies View Related