Hi
I am new to Centos having come from the other OS if you know what I mean, so I am having to work at this and it is, I must say, a great experience. Anyway as I learn the differences I am stuck with this particular issue, I have been searching and trying different solutions but as yet the answer evades me.
I am installing apache, I have installed httpd and it started up fine, as I am following instructions from a document, I did the part that requires me to create a virtual host, here is what I followed:
# mkdir -p /var/www/web1/web
# chown apache:apache /var/www/web1/web
# chmod 754 -R /var/www/web1/web
Then add the new vhost at the end of /etc/httpd/conf/httpd.conf:
# vi /etc/httpd/conf/httpd.conf
Add Include /etc/httpd/extra/httpd-vhosts.conf
But now when I try to start httpd I get the error "Syntax error on line 1005 of /etc/httpd/conf/httpd.conf: /etc/httpd/conf/httpd.conf:1005: <Directory> was not closed."
Looking at the conf file at that location I can't see anything that stands out if I'm honest, below is that part from the conf file I have bold the line that is supposedly wrong
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/var/www/web1/web"
(line 1005 here)<Directory "/var/www/web1/web">
ServerName http://www.********.com:80
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Include /etc/httpd/extra/httpd-vhosts.conf
Thanks very much for your help
httpd error
Re: httpd error
Since the default config already has an include for /etc/httpd/conf.d/*.conf this would be better either in there or just move your other config file into there and then you can keep httpd.cofn unmodified.# vi /etc/httpd/conf/httpd.conf
I'd guess that whatever file you are including doesn't have a </directory> line in it to match the opening one.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: httpd error
You need either: <Directory "/var/www/web1/web" />
or: <Directory "/var/www/web1/web"> ... </Directory>
Check the documentation to find whih is appropriate in your case.
or: <Directory "/var/www/web1/web"> ... </Directory>
Check the documentation to find whih is appropriate in your case.
Re: httpd error
Thank you very much that fixed my issue