Apache :: 2.2 On 2008 R2 Won't Start After Modding HTTPD For SSL
Oct 31, 2014
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.
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]
httpd server configuring.I share my files only from local disks but some of my resources are located on truecrypt secure volume.When I want to start my server now I have to mount my all drives first to have all path active. Otherwise httpd doesn't start with 'invalid path' error.My question is, how to force httpd starting without path or drive exists checking?
Platform Windows7 x64 Apache version 2.4.3 Package Xampp
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).
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
[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.
I 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')
I recently updated to apache 2.2 and when I went to check
/usr/local/apache/conf/httpd.conf
I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update.
how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it.
I can't reach my website, I get a "corrupted content" error message in the browser.Looking into apache (version 2.4.7), I get
Code: ~$ apachectl -S AH00526: Syntax error on line 22 of /etc/apache2/sites-enabled/000-default.conf: SSLCertificateKeyFile: file '/etc/ssl/private/owncloud.key' does not exist or is empty Action '-S' failed.
However, I double checked that the file is in the appropriate location and does contain the key, so maybe apache has no permission. afaik, it doesn't run as root all the time - or only for a short time?
permissions for the key file are as follows:
Code: ~$ sudo ls -l /etc/ssl/private/owncloud.key -rw-r--r-- 1 root ben 1704 Sep 28 04:01 /etc/ssl/private/owncloud.key
, where ben is my normal user.
It was suggested to me on the httpd IRC channel that maybe apparmor was doing something wrong, but I don't know how to investigate that.
I did some googling and searching on Apache lounge forums prior to posting this question, but I didn't find a definite answer to whether is it ok to use Apache Httpd v2.4.X VC10
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.
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]