I've been scanning the apache2 docs for the past few days and have not come up with an answer my following issue:
In my httpd.conf file, at the very end, I have the line
However, when I run apache checkconfig or try to start apache, it gives me the error:
httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf/vhosts/vhost_1.conf: Permission denied
It appears as if the Include line is correct - in terms of it grabbing the first virtual host conf file. However, I'm confused on the permissions. the /etc/httpd folder is owned by root:root, as are the subfolders. As a test, I chown'd the conf/vhost folder combination and all the vhost files to apache:apache to see if that made a difference, and it appeared to make no difference at all. The log files don't contain anything (assumed because apache isn't starting). If I place the contents of the vhosts in a singular vhosts.conf it works - with the permissions set to root:root. I'd like to avoid having to use one vhosts conf for the configuration I'm trying to achieve - as it would make my life a lot easier.
phpmyadmin files are in usr/share/phpmyadmin but i cant find anything in my apache2.conf or httpd.conf files that point to that directory.How do I find the route taken from the Server root "ServerRoot "/etc/apache2"" to the phpmy admin files.
accidentally I do something wrong with my server and the httpd folder missing and I need it to setup my mail server and anyone can help me what can I do without reinstalling my Cent OS? Here is the error msg :
[root@mydomain etc]# service httpd stop Stopping httpd: [FAILED] [root@mydomain etc]# service httpd restart
I would like to extract Room number, Lastname,Firstname,invoice (205880080),arrival date, departure date, and total(229.46). Can you at least give me a hint on how to proceed? I have tried a lot but I am stumped from the beginning.
***History*** Room: 124 B Payment: Bell/TRAVELSCAPE.COM Lastname*FIT*,Firstname 4A, 0K, 0B Guest Bell *205880080 FT Bell *205880080 July 31, 2010
I have installed ClamAV 0.95.3 into Ubuntu 9.10 (i386) fully patched I am behind an authenticating proxy, so I've entered these details into freshclam.conf: HTTPProxyServer myproxy.com HTTPProxyPort 1234 HTTPProxyUsername myusername HTTPProxyPassword mypass code....
So I changed the perms to 0700 (user is clamav). Now I get: $ sudo freshclam ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf
I checked DNS resolution with this (which I found in a thread somewhere): # host database.clamav.net database.clamav.net is an alias for db.local.clamav.net. db.local.clamav.net is an alias for db.other.clamav.net. db.other.clamav.net has address 22.214.171.124 db.other.clamav.net has address 126.96.36.199 - I presume the installation can find the update site?
Im reading in file /proc/cpuinfo into a char array.Im using strstr to search for a string im interested in (the cpu speed line) and storing it in another char array.I want to just store the line that contains CPU speed but im getting everything after the CPU speed line in the char array too.Is there anything better than strstr or is there someway i can parse the the payload data (i.e. the actual cpu speed)
We have apache installed at a directory other than the default location. There are two httpd.conf files on the server, one at the apache installation directory, and the other one is the default one at /etc/httpd/conf. The apache ran very well with the customized httpd.conf before, but after I installed php 5, the server seems taking the default httpd.conf and doesn't display the html pages which are installed at our apache directory. How to let the server know not to use the default httpd.conf and use the customized one instead?
I modified my httpd.conf file without making a backup. Apache runs fine but I am having a perplexing problem with drupal and want to try a vanilla httpd.conf file. Where can I get a 'virgin' configuration file for fedora 10?
I have installed XAMPP on my ubuntu machine, I typed nautilus in the command line and from there I tried to change the httpd.conf file from "/opt/lampp/etc" but it does not allow me to change the contents of the file. Error attached with this post.
This is not intended to teach you about http.conf and its various options. This guide is intended to help with speeding up your web servers by assisting in protecting them from petty abuse, such as hotlinking and scraping, and by using options that yield better performance in general. The methods used in this guide address general concepts, but the implementations of the methods are completely arbitrary, and are tailored to my needs. Each user may want to make their own modifications to suit their own setup. Again, this is a general guide, meant for instruction purposes only. I will go over each significant section in the file, and explain what it does, and the reasoning for it.
This assumes that you WISH to disable the ability to use .htaccess, and to administrate your websites on the server level. If you have a shared hosting plan then you cannot administrate your server at all, and so some of these sections will not apply to you, but some of them will; the ones that still do, you will place in your .htaccess file, in place of your httpd.conf.
Some of the options in these files are default, and so they may not be explained at all. This thread is more about the non-standard configurations.
Most of these options are standard. Notice that there are extra AddTypes, for things such as .xpi files (firefox plugins, etc), and .ogg video files.
Also take note that we disable the option for .htaccess. This makes a dramatic speed increase. This is because if .htaccess is enabled, then for each request made to your server, apache must look in the directory where the requested file resides for an .htaccess file (it does not matter whether one is there or not, and the lookup is NOT cached, so it much be performed EACH request). If apache finds a file, it must parse it. Then it must look in the parent directory, and in the parent's parent, and so on, until it reaches root (/). This is done for EACH and EVERY request. Disabling .htaccess and administrating your server at the global level will make a dramatic difference on busy servers. On not so busy servers, you may not notice the difference.
Note that we disabled cgi-bin completely. This is because we're running mod_php, so we don't need cgi-bin. If you're not using it, lock it down so that no one else can .
Also note that we used AddOutputFilterByType to make sure that all text files were compressed before being sent across the wire. This saves bandwidth.
Of this section, most of these options cannot be set in .htaccess. Options such as the addtype and addhandler and addencoding CAN be set in .htaccess; the rest are global/sever level only.
Any changes in the way httpd.conf works in 9.04Yesterday I updated from 8.04 to 8.10 and then to 9.04. All works fine, except for Apache Virtual sites.I had several defined in my httpd.conf file, which I used for testing clients' websites.ince the upgrade the virtual sites are not recognised, and all access is done at the original level /var/wwwAny changes in the way httpd.conf works? checked the Apache docs, but found nothing.Here's the httpd.conf I've been using:
<Directory /var/www/clientname/htdocs/products> AllowOverride All </Directory>
I am a network/system Administrator in an avg. based company, we are using Cent Os as servers. We are developing applications in both php & java, for java we are using apache tomcat as server (port number 8080) & for php we are using apache as server (port 80). Php applications are uploaded in the server and giving the link to our clients like localhost.com/chrome. Now we are planning to give the java based application for testing purpose to clients & can give the application link to client as localhost.com:8080/mozilla. Is it is possible to change the link localhost.com:8080/mozilla to localhost.com/mozilla with out changing the portnumber of apache tomcat server & without interrupting the php applications, that means our clients can access php application as localhost.com/chrome & java application as localhost.com/mozilla in the same server at the same time.
I've been trying to figure out how to set up my Apache 2 running on Ubuntu 9.10 to provide a reverse proxy so I can see my wifi network camera monitoring my dogs and still have access to my family website. First, I followed the suggestions from this thread on Ubuntu forums: [URL]. I set up a similar rule set at the end of my /etc/apache2/sites-available/default, restarted apache -- from which I got a response saying that Apache2 could not determine the server name -- and then tried logging into my server through its ip address. When I tried http://192.168.2.80/dogCam, I just got a 404 error. Here's what I added: (I also tried my domain name, but it also didn't work.)
When I looked at many other threads, I get recommendations to have my setup in httpd.conf. But, in both this server and a freshly installed Ubuntu laptop, my httpd.conf file is empty! I tried copying and pasting the recommended contents of the following thread, with the example proxy paths replaced with the ones I needed: [URL]. Straight-forward tutorials don't seem to apply, as Ubuntu has a blank httpd.conf file. I figured out that Ubuntu seems to load its modules by simply adding soft-links to the modules of interest from modules-enabled to modules-available. But, after a full day of trying to figure out what looks to be fairly simple and well-documented, I am at a loss for setting up this reverse proxy or even figuring out where to set ServerName to define my domain name to Apache2 in Ubuntu.
I'm installing Wordpress and I want Hosting Multiple Sites with them. For that I need modify the httpd.conf file but it's empty. Where I can make that changes? These are the changes:
1. Type: LoadModule rewrite_module /libexec/mod_rewrite.so 2. Find the <VirtualHost> section in the httpd.conf file. 3. Find a line in the <VirtualHost> section of the httpd.conf that looks like this: AllowOverride None 3. Replace that line with this line: AllowOverride FileInfo Options 4. On a new line, type ServerAlias *.[URL]. 5. Save the httpd.conf file and close it.
I've got a dedicated server using whm/cpanel and there is a particular domain being hosted which contains a very elaborate .htaccess file which is full of mod_rewrite rules, among other things. I've been asked to try and get the contents of this .htaccess file into the httpd.conf (or some appropriate include file) to improve performance.
I've been reading this page and it's really confusing me: [url]
In the file usr/local/apache/conf/httpd.conf I see that there are two VirtualHost sections that appear to be relevant for my domain (which I'll call mydomain.com). The first listens on port 80 and the second is on 443. Seems to me that my apache directives in .htaccess would belong in this section. In the first section I see this:
In the second section I see this:
The problem with both of these is that the directory /usr/local/apache/conf/userdata does not exist, much less the full path to either of those files.
I turned my home PC running Ubuntu 10.04 into a server, and so i am so lost, after reading like a 10-20 different guides and/or official docs, I am totally lost.
All I wanted was to create a custom 404 error page...i read about how people edited .htaccess files to customize error pages, i tried and failed also, editing apache2.conf, I got lost and i dont wanna mess up everything and also, how you're supposed to not touch either of those as its not how it should be done and instead you need to edit httpd.conf and i did and FAILED! again...
Also how do I make it so that I can make subdomain(s) on my site? and wth is a name server and where do I get one?