LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-03-2007, 03:59 AM   #1
pk_kala
Member
 
Registered: Feb 2006
Posts: 34

Rep: Reputation: 15
can't run apache2


/etc/init.d/apache2 start

Forcing reload of web server (apache2)...Syntax error on line 70 of /etc/apache2/sites-enabled/000-default:
User cannot occur within <VirtualHost> section
failed!



in /etc/apache2/sites-available/default

I add

<VirtualHost 10.15.13.13:80>
ServerAdmin admin@y.com
ServerName www.y.com
DocumentRoot /data/www/home/www.y.com
DirectoryIndex index.php index.htm index.html
ScriptAlias /cgi-bin/ /data/www/home/www.y.com/cgi-bin/
ErrorLog /data/www/logs/error/www.y.com-error_log
CustomLog /data/www/logs/access/www.y.com-access_log common
User www-data
Group www-data
</VirtualHost>


ls -l /data/www/home

drwxr-xr-x 3 www-data www-data 4096 2007-09-03 09:13 www.y.com


How I resolve ?

Thank you



cat /etc/passwd

www-data:x:33:33:www-data:/var/www:/bin/sh
 
Old 09-03-2007, 07:29 AM   #2
tets
Member
 
Registered: Aug 2005
Location: Prague, Czech Rep.
Distribution: Gentoo, Mint
Posts: 33

Rep: Reputation: 16
Re: can't run apache2

"User cannot occur within <VirtualHost> section" ;-)

The "User" and "Group" directives must be placed in /etc/apache2/apache2.conf

Tets :-)
 
Old 09-03-2007, 07:59 AM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
From the Apache documentation:
Quote:
To find out if a directive can be used in the VirtualHost directive, check the Context using the directive index.
Norm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can php4 and php5 run simultaneously on apache2? tisource Linux - Software 1 09-14-2005 11:53 PM
Cann't run apache2 melinda_sayang Slackware 3 09-11-2004 07:15 AM
Can you run Apache2 without Apache 1.3? elfoozo Debian 5 05-10-2004 05:17 PM
apache2 error message in run level hiplainsdrifter Linux - Networking 3 04-21-2004 01:18 PM
Need to remove Apache 1.3 default installation under Mandrake 8.1 so Apache2 can run RIOMX Linux - Software 6 12-13-2003 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration