How To Change Apache Service Name
Aug 3, 2007Is it possible to change apache2.conf service name with httpd.conf ?
View 2 RepliesIs it possible to change apache2.conf service name with httpd.conf ?
View 2 RepliesIs there a way to change the web services (from Windows) from SYSTEM to an Admin account? (Cos i need to use PHP's system() to run a process on the system but it only takes in user: ADMIN and not SYSTEM
I have tried changing the following processes:
IIS Admin
World Wide Web Publishing
Simple Mail Transfer Protocol (SMTP)
but i still get a dependency error. Please advise.
Or should I use Apache?
after learning that server aliases are not available for PPA, we are needing to rename our service nodes. We have looked through the documentation, and did see the ppa.hostname command for the management node but there does not seem to be an equivalent for service nodes.
View 3 Replies View RelatedI'm using Plesk 11.5.30 Update #47
I want to change some Domains to an other Service Plan.
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
One of my customers wants me to change the ownership to nobody and group to apache in a directory created in the home directory of his website. I want to know whether doing so will pose any security problem. Also is there any advantage of changing the owner to nobody and group to apache?
View 11 Replies View RelatedI am trying to change permissions on my perl and CGI files to execute them for my website.
I have a laptop I am using as my server. It has Windows Server 2003. I have Apache, and Active Perl. IIS is disabled. My website loads just fine.. I just cant change the permissions or find out how.
How do I change the permissions on my perl and cgi files?
We have a SAP portal and Apache server in our environment. The URL which users see is like http://portal:50000/irj/portal in some cases after login, from a program we are calling the url http://portal:50000/irj/portal/alias1 in the same window. In this case the URL changes in explorer.
I am trying to find out if I can mask the url and keep it the same as http://portal:50000/irj/portal, but Apache to send calls to SAP server as http://portal:50000/irj/portal/alias1, so the end user cannot see the URL change.
It's been happening on both my old and new server, was really hoping this would be fixed.
Basically, the httpd/apache service crashes or goes down making domain names and sites unable to load; although cPanel/WHM still accessible. This would go on for about 5 minutes OR until I restart httpd in root.
sites simply do not load or just timeout after a period of time.
This has become extremely annoying for both me and my clients because it makes it seem like we have downtime.
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.
APache is running under the "nobody" user/group as default in CPanel servers
as a suggestion I should change it to another user/group to improve security!
But in CPanel servers its hard to do that because you must edit some scripts and files to prevent the backing to nobody when running some scripts such
PHP Code:
/scripts/chownpublichtmls/scripts/enablefileprotect
or when create a new account
Some sites says "the secret of changing the user/group is in the UID/GID of nobody < 100 !"
so I found a solution :
1 - delete the user/goup nobody
2 - recreate it with GID/UID > 30000
3 - run /scripts/chownpublichtmls
so the question is that solution improve security or i should change the user/group to another one! like "www"?
I just made a fresh install of the following :
Apache 2.4 (x64)
PHP 5.5.5 Thread Safe (x64)
OS: Windows 8.1 (x64)
And I think everything is working. When openingen 127.0.0.1 I see the apache message that the server is running and when executing phpinfo() it displays the PHP info.
My problem is that I'm trying to change the document root.
I have change the following in the httpd.conf:
DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">
The lines abowe have been change to:
DocumentRoot "D:/www"
<Directory "D:/www">
After this I did a reboot of the apache server using the CMD httpd -k restart. I even tried restarting using the apachemonitor and rebooted the whole server. But apache still loads the files from c:/Apache24/htdocs
I can't find any more entries with htdocs to change. What am I missing?
I run windows 8.1
Installed Apache 2.4.10 into c:apache24
Apache is run as service
I tried to change documentroot and directory to e:xxx....
When I test localhost/test_apache.html (my own html) I get error
"Forbidden You don't have permission to access / on this server."
Have I changed all needed parameter or is it a real permission problem?
I am using windows 2008 R2 64 bit O.S, I downloaded httpd-2.4.10-win64-VC11 and tomcat-connectors-1.2.39-windows-x86_64-httpd-2.4.x and I created 3 tomcat workers and then I configured workers.properties and httpd.conf.
After complete setup when i tried using
http://localhost then
I got It works! message (looks everything is fine).
and then I have deployed my sample web application I tried to access the same application then using
http://localhost/SampleCluster
I am getting
503 service not available.
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
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 installed apache 2.4.3 in windows server 2003. Since i did not get administrator rights in this machine i could not install as a service.
I runned as an application through the command line console and is working fine.
Is there any difference regarding performance when running as a service or as an application?
Is there any other benefit or drawback of running as a service or as an application?
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]...
I am using the latest version of Apache on an Windows XP machine
When my web service is down for maintenance, since Apache is will still be up and running, I would like for Apache to serve an xml file as a response for the appropriate request. I have three operations available, makePayment, calculateFee, and voidPayment.
Is it possible to have Apache determine what type of request is made for example if I have an xml error page for each operation; how will Apache know which xml file to serve based on the operation request from the client
To make it more clear: What is the best practice for modifying apache to know what request is being made in order to serve the appropriate xml file?
*My computer is a computer of a 500 computers network within our company.
* i have been given a STATIC local intranet ip 192.168.10.168 assigned by our IT department via their router.
* i have the internet facility provided through the above mentioned intranet for which i get a dynamic ip ex: 188.54.208.205, 176.44.107.21
* i have installed WAMP server.
my current project for the company i am doing should be able to access via internet in addition to the local access. local access is the primary access method. so now i have installed a free dns service like dyndns. at the setup of that, i have choosen a free subdomain ex: my.freedns.com they offer. then i assigned the ip ex:188.54.208.205. also installed their desktop client for monitoring ip changes auto updates.
Now the problem is : when i hit my.freedns.com the page displaying is of our internet service provider. not of my project homepage . How can i fix so when i issue above subdomain it will show my webserver default page?Â
Out of nowhere apache stops working, and I have to restart the httpd service that restablesca
The message it throws is "Service Unavailable"
The server is a CentOS Linux Centos 6.5
It has 24 cores and 24 GB RAM
These are the values ​​that I have in httpd.conf
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
[Code]....
Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?
View 1 Replies View RelatedI'm running Apache 2.4.7 on a RHEL 6.4 server. I'm using the Oracle WebLogic Proxy Plugin ver 12.c to connect to a back end server.What's happening is that Apache answers URL.. and proxies the request via the WebLogic Proxy Plugin to internal.blah.com. Unfortunately, the downstream system encounters a problem and issues an http 302 redirect to internal.blah.com/whathappened. I would like to have Apache intercept this http 302 and redirect the client to URL...
View 1 Replies View RelatedOn Cpanel/WHM. I have just moved from a VPS to a dedicated server. I reinstalled munin, so get some stats via that. I used to have apachetop loaded on my VPS for when I wanted a 'near realtime' streaming view of apache access.
I'm wondering what the best solution is to get a good view of apache, like what apachetop did, plus also it would be nice to have a real-time monitor of MySQL activity, HDD activity (such as I/O queues, etc. Something along the lines of the perfmon on Windows servers.
What is my best option?
Also, with Nagios, when I look at the website, it seems there are two options. Load it on a single server and then load the stats via [url]or have the Nagios 'stat collector' on one machine, and have it gathering stats from multiple machines.
If you only install it on a single dedicated server, do you really have to be on the console and connect to the Nagios stats via localhost, rather than connecting remotely?
Ideally, I would like a quick, easy to setup solution, but if it takes some configuring, I can deal with it, as long as there is some documentation. My main goal is to get the real time type monitoring, you get with window's perfmon.
I've got the following Issue with Apache 2.4.7: <OS 5> Zugriff verweigert: AH00370: Failed to create WinNT Service Profile
Well i should mention, that the same Packages are running properly configured in a Virutal Machine (same configuration as my Livemachine) without any problems whatsoever.
Its my Livemachine, where Apache keeps returning this Message while attempting to install Apache as a Service.
Installed Packages:
Apache: httpd-2.4.7-win32-VC11.zip
PHP: php-5.5.7-Win32-VC11-x86.zip
MySQL: mysql-installer-community-5.6.15.0
phpMyAdmin-4.1.3-all-languages.zip
OperatingSystem: Windows 7-64 Ultimate SP1
UAC: Disabled
CMD: tried the "Execute as Administrator" as well as without (<- which is always working in my Case)
Logfile: Apart from the ususal "install.log", nothing else inside the Logs Folder.
Even reinstalled Apache twice, with- and without my Configurationfiles, but still got the same results.
I'm new to Apache. I'm using a version 2.4 for Windows 7. It didn't come in as an .msi so I had to configure the appropriate web-server name via the httpd text document.
Each time I go to http://localhost, I am present with a page with the content "It works." I tried adding a different .html file into the directory to see if I could access that also, but I was not able to navigate to it via the address bar. So I edited the content of index.html from 'It works!' to "It works?!!!" but sadly, the actual page is still showing 'It works!' for its content (Rather ironic, huh?).
So, for whatever reason, the actual 'localhost' page isn't updating or even noticing any of my edits in what I presume to be the correct directory.
Here's my httpd document for referenc [URL] ....
Hosting Settings
There is no php support - so i can´t change or choose running as apache module or cgi application (s. screenshot)...
OS Ubuntu 12.04.5 LTS
Panel version 11.5.30 Update #50, last updated at July 17, 2015 03:46 AM
I have a Server with Centos7 + Plesk 12 and in the service configuration say that the Bind service is not installed, from command line i have install named services and make a manual configuration the first domain, but when I return to the service page in plesk... the problem is the same, the Bind Service is not installed; then the problem is when i want create a new hosting i need to go to the ssh to make the DNS configuration...
View 1 Replies View RelatedGot following Problem: Unable to find service node for web service on domain with id = 0
After a Check from [URL] ....
I tried this: [URL] ....
Result:
+--------------------+--------------+---------------------------------------+------------------------------+------------+
| Domains | Service Type | IpAddressesCollections.ipCollectionId | Current value of ipAddressId | Have to be |
+--------------------+--------------+---------------------------------------+------------------------------+------------+
| XXXXXXXXXXXXX.org | mail | 30 | 0 | 1 |
+--------------------+--------------+---------------------------------------+------------------------------+------------+
Resolution:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'Update IpAddressesCollections SET ipAddressId = 1 WHERE ipCollectionId = 30'
Result: ERROR 1062 (23000) at line 1: Duplicate entry '30-0' for key 'PRIMARY'