Ubuntu Servers :: Desktop 10.04 Home Server- Editing Httpd.conf File - Fails

Jul 8, 2010

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?

View 4 Replies


ADVERTISEMENT

CentOS 5 :: Httpd: Could Not Open Configuration File /etc/httpd/conf/httpd.conf: No Such File

Nov 9, 2009

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

[code]....

View 3 Replies View Related

Ubuntu Servers :: Httpd.conf Not Found While Running .PHP File?

Jul 28, 2010

While trying to run the file in PHP I am getting below error. httpd.conf not found Following directories (and its subdirectories) are accesible via Apache:

View 3 Replies View Related

Ubuntu Servers :: Modify The Httpd.conf File But It's Empty And Wordpress Installation

Jun 17, 2011

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.

View 1 Replies View Related

General :: What Is The Use Of /etc/sysconfig/httpd Conf File In Apache Server

Aug 4, 2010

what is the role of /etc/sysconfig/httpd configuration file in apache server .

View 2 Replies View Related

Server :: Change The Configuration In Httpd.conf File With Out Affect Current Status Of Http Service?

Jan 27, 2011

I need to change the some configuration in httpd.conf file with out affect any current status of http service.

View 3 Replies View Related

OpenSUSE Hardware :: Create A Seperate X Server On 11.2 Without Editing The Xorg.conf File?

Apr 24, 2010

Is there a way to create a Seperate X Server on openSUSE 11.2 without editing the xorg.conf file? I red on this forum that should not be used any longer.

View 3 Replies View Related

CentOS 5 Server :: Loading Multiple Virtual Host Conf Files From Httpd.conf?

Jun 1, 2009

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

Include conf/vhosts/vhost_*.conf

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.

View 3 Replies View Related

Ubuntu Servers :: Httpd.conf Not Working After Upgrade To 9.04?

May 7, 2010

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>

[code]....

View 4 Replies View Related

Ubuntu Servers :: RewriteRule Works On .htaccess - But Not On Httpd.conf

Sep 29, 2010

We are trying to migrate from a centos server to ubuntu server, but we have some problems with an application called Topincs [url].

The installation is quite simple and I did it several time (but with ubuntu it's the first time).

Probably there are some parameters to set that I don't know, but even if the installation works fine and I can see the home page, the application doesn't work because RewriteRules aren't applied.

First I tried to ensure that mod_rewrite works fine and I found a weird situation: rewriterules work if they are in .htaccess but don't work if they are directly in http.conf.

View 4 Replies View Related

Fedora Servers :: Find The Httpd.conf Files In FC11?

Aug 6, 2009

Where can I find the httpd.conf files in FC11 ??

View 1 Replies View Related

Fedora Servers :: Suexec Set Up In Apache, Snippits From Httpd.conf?

Jun 25, 2011

I'm having a problem with mod_suexec in Fedora 15.I have suexec set up in Apache, snippits from httpd.conf:

Code:
LoadModule suexec_module modules/mod_suexec.so
...

[code]....

View 3 Replies View Related

Slackware :: Typo In As-installed /etc/httpd/httpd.conf?

Dec 24, 2010

I'm new to Apache configuration so could be misunderstanding but shouldn't the characters highlighted in red below be removed?

Code:

View 9 Replies View Related

Ubuntu :: Making Apt Cache Permanent By Editing Any Conf File?

Apr 8, 2010

I don't want ubuntu to clean /var/cache/apt/archives directory automatically... is it possible to make it permanent by editing any conf file?

View 5 Replies View Related

Ubuntu Servers :: Dhcp3-server Fails To Start - Can't Open /etc/dhcp3/dhcpd.conf: Permission Denied

Oct 1, 2010

I installed dhcpd using:

Code:

Now when I try to run it, I get this weird error:

Code:

The error was:

I changed permissions to 777:

Code:

To no avail!

It's got something to do with AppArmor.

I don't think it is installed on this system:

Code:

View 1 Replies View Related

Fedora :: Httpd.conf - Speed Up - And Lock Down Your Server ?

Feb 19, 2010

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.


Code:

View 4 Replies View Related

Server :: Debian - Apache2 - Httpd.conf ServerRoot ?

Feb 19, 2010

Installed Apache2 on a Debian Lenny system. copied my old /var/www/htnl over to the new system.

Now when I open my browser to my PC I get the index.html under /var/www not /var/www/html.

I have this in my httpd.conf:

Code:

From what I have read, the DocumentRoot should have pointed to /var/www/html overriding /var/www?

If I use "10.1.1.13/html" it works the way it should.

View 3 Replies View Related

Fedora Servers :: HTTPD Fails To Start On Boot

Aug 24, 2010

I'm completely stumped by a problem with httpd in Fedora 13. It fails to start on boot: I can see: Starting htpd: FAILED, in /var/log/boot.log, but I can't find anything else in messages, audit.log or anywhere else that gives me any clue why. The weird thing is that running:
run_init service httpd start
after boot _works_ and the server runs fine, but even when it's running OK,
service httpd status
reports
httpd dead but subsys locked

I'm guessing that the problem somehow relates to selinux, but I can't find anything in the audit logs that gives me a clue. How to turn on more logging so that I can get closer to the problem. I finally discovered the cause. This system was originally configured to use network services directly, without NetworkManager. It had been upgraded a number of times since installation. It seems that over time, if you have turned off NetworkManager, the defaults have changed. Used to be that the network services was 'enabled' by default (hence started at run time). Now, the default is 'disabled'. Httpd couldn't start because there was no network to start on. Enabling network services at boot time fixed this. I guess I should have noticed this. But one might think that httpd failing to start because of the lack of a network might at least give a warning message in the logs about the reason.

View 8 Replies View Related

Server :: Forwarding An Application Having Port Id 8080 To 80 Using Httpd.conf?

Nov 26, 2010

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.

View 9 Replies View Related

Fedora :: Editing A Line In A Daemon.conf [read Only] File?

Mar 16, 2011

I need to edit a line in a file in gedit, but its read only. I need to change

; default-sample-rate = 44100
to
default-sample-rate=44800.

Would anyone know if there is an option to make a read only file editable? Judging by the responses to the thread I followed to enable my soundcard, it is possible, and perhaps there is some setting etc that needs changing

View 3 Replies View Related

Server :: Apache .htaccess - Permission Denied. Exclude From Httpd.conf

Jan 13, 2011

I am administoring a few websites and the latest website to be deployed has a few "unable to check htaccess file, ensure it is readable, referer: " errors in the apache-error log.

That is fine, becuase the directory doesnt contain a .htaccess file.

Is there a setting whereby I can turn off this error ?

I dont want to turn off checking for .htaccess files because some directorys have this file and use it.

View 2 Replies View Related

Debian :: Cant Find Anything In Apache2.conf Or Httpd.conf Files?

Jul 25, 2010

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.

View 5 Replies View Related

Server :: Change Of Apache Httpd.conf Doesn't Work On CentOS/RedHat?

Jun 30, 2010

I've been trying to make install apache 2.1.8 and php 5.2.3 and work on them. After updating and installing some dependence files, apache and php could both be installed.

Then I tried to configure them. I added the following content to the end of Apache httpd.conf:

Code:

Then I run /path/to/apachectl start, and saw the message:

Quote:

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

Then I remembered that I didn't include the rewrite module while making install apache. So I removed the 2 lines I just added to httpd.conf.

But, after running /path/to/apachectl stop and start again, I could still see:

Code:

When I use firefox to open http://host_ip:8080/, I could see "It works!". But when I open http://host_ip:8080/hello.php (the file is already under htdocs), firefox said
Quote:

Failed to Connect

Why and how to solve it?

I noticed that for some stupid reason, the conf file wasn't updated at all and the 2 erroneous lines were still there.

View 91 Replies View Related

Server :: Moving Apache Directives From .htaccess To Httpd.conf In CPanel/WHM Environment

Mar 3, 2010

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:

Code:

In the second section I see this:

Code:

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.

View 1 Replies View Related

Ubuntu Servers :: Can Desktop Home Folder Point To Server Files

May 20, 2010

I was curious if I could have the home folder system from a desktop install point to a set of home folders over on the server? It would streamline my backups and make files a bit more central for accessing

View 3 Replies View Related

Ubuntu Servers :: Error When Loading "sudo Gedit Httpd.conf"?

May 24, 2011

I've installed apache2 and and when i access my URL from outside using www.proxy-ervice.de i just get a webpage with Index of /so i've run the command sudo gedit /etc/apache2/httpd.conf which give me the error: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file'/root/.local/share/recently-used.xbel.2EUJVV': No such file or directory(gedit:2509):Gtk-WARNING **: Attempting to set the permissions of`/root/.local/share/recently-used.xbel', but failed: No such file or directorymy httpd.conf is as follows,Userdir public_htmlOptions +IndexesOptions AllServerName localhost

<Directory "/home/gav/public_html/">
Order allow,deny
Allow from all

[code]....

View 1 Replies View Related

Ubuntu :: Server Vs Desktop For Home File Server

Dec 2, 2010

I have both windows (xp and win7) and mac (osx snow leopard) running on my network. I'd like to find a unified system that I could use as a file server. Mainly, I'd like to have it hold music and movies, maybe run some automated backups from a win 7 desktop. I'd also like it to be a print server. I'd like to run the most simple and lightest weight OS for the server os. However, I don't think I have the basic linux knowledge to run Ubuntu Server as it is terminal based. I have installed it on my machine but I feel like im running in circles. I have it installed and can SSH in with my laptop no problem. I feel like I may be better off installing Ubuntu Desktop and removing what I dont need. at htis time the server has only a 40gig hdd in it, i also have a 500gb hdd i'd be using for the files.

View 14 Replies View Related

CentOS 5 :: Service HTTPD Fails When Server Restarted

Apr 22, 2011

I installed centos 5.5 and httpd service was working well for the last 2 weeks till yesterday. I restarted server and noted my hosting service were not working. I have tried service httpd restart on the terminal and it dispalys [FAILED]. I updated my machine and and have tried restarting it but it doesn't work. I am new to centos and I dont know how to solve this.

View 2 Replies View Related

Server :: Accessing Apache/HTTPD In Home Network?

Feb 7, 2010

I am trying to setup Fedira 12 Linux Apache in my home network. I am able to access the hosted website from inside my home network without any problem. I am facing the problem to access it from outside. At the moment i have connected the Apache directly to DSL modem for testing purpose. I was reading "The ISP may have blocked the HTTP port 80. So check it by connecting the Apache directly to DSL modem." The temporary network connections for testing purpose are as follows..

DSL modem (SIEMENS Speed Stream 4200)-->Fedora 12/Linux Apache Server

I am even unable to PING the real ip (IP for DSL modem).(Firefox gave me error message "Connection Timed out) I have tried to ping it from the internet.I can PING the DSL from Apache without any problem.

1. Why i am even unable to PING the real IP of DSL modem at my home.?

2. Is it possible to run/setup Apache by using this type of DSL modem?

3. DSL modem has real IP. DSL MODEM assigns private IP (192.168.x.x) to Apache. So when a http request form the internet came to DSL modem on port 80, will it forward to Apache automatically.? or i have to made any changes.(I can not see anything in DSL modem to change/modify), OR do I have to use another DSL MODEM/Equipment (router)? This setup is just temporary. The actual design is as follows

DSL MODEM(Speed Stream 4200)-->Fedora 12 Linux ROUTER--->Internal network with DNS/Apache Server

View 9 Replies View Related

Ubuntu Servers :: Setting Up A Home File/torrent Server - 9.10

Mar 7, 2010

I've played with ubuntu for quite a while now and i picked up a atom core mini pc for cheap so i thought i'd make a hobby in setting up a simple server to store files on, access files on my xbmc enabled xbox and download torrents whilst i'm at work though the torrents can wait for future projects though i installed ubuntu server 9.10, i'm aware it's CL only, anyway thus far i've managed to set up the ipaddress of it and make it fixed i'm not sure of what to do with hosts at the moment, reading on it isn't making much sense of it's purpose or layout so i've left it as is i permenently mounted a fat32 partition to /media/stuff and changed permissions to 0777 only have one user on it, myself installed samba smbfs smbclient and an openssh server, and can do all the terminal stuff from my normal pc my current issue lies with samba, with gnome desktop i've never had TOO many problems with sharing folders, however i'm stuck where to proceed in regards to editing smb.conf as there's a lot of options, some of which i'm not sure i need

- I've changed the workgroup to home
- under authentication i have security = share
- i added the following section

Code:

Anyway on my windows xp pro machine, i can access \thork which is the machine and i see 'media-stuff' which is a start i guess, but im refuesed access automatically.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved