LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2009, 07:11 AM   #16
fmr
Member
 
Registered: Oct 2009
Posts: 32

Original Poster
Rep: Reputation: 0

Hi.
Seeing that I am still a N00B, I do not know how users and groups work in linux, yet.

Quote:
Originally Posted by bathory View Post
apache is not running as root in most cases. It starts with root privileges . . . and then drops to the user/group defined by the respective directives (User and Group). Reading Suse documentation for apache, it looks like it run as wwwrun/users, so make sure that the whole /srv/www path is owned and readable/executable by that user/group.
Also: Where do i find there directives? I don't think there is such a user as wwwrun.

Thank you for your patience.
 
Old 10-16-2009, 07:26 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Running
Code:
ps -ef|grep httpd
should tell you the user under that runs apache. Then from /etc/group you'll find the group the user belongs to.
Quote:
Also: Where do i find there directives?
You have to search all those included *.conf files for something lijke the following 2 lines:
Code:
User wwwrun
Group users
When you find the user/group that runs apache make sure that everything under /srv/www is owned by that user/group.

Regards
 
Old 10-16-2009, 08:24 AM   #18
fmr
Member
 
Registered: Oct 2009
Posts: 32

Original Poster
Rep: Reputation: 0
It seems to have solved the initial problem!

Now I get this error:
Quote:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
The error log states:
Quote:
[error] [client 10.0.0.10] Syntax error in type map, no ':' in /srv/www/htdocs/index.php for header <?php\r\n
It ends right there ...

I do not even know what a cgi script is, and I never needed it when i used Apache and PHP on windows (I used the WAMP package).

There is a folder named cgi-bin in /srv/www with one file in it, named php5.
 
Old 10-16-2009, 08:36 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you have edited index.php in windows there are maybe some special characters in the file.
You can run
Code:
dos2unix index.php index.php
to transform it in unix format.
 
Old 10-16-2009, 08:58 AM   #20
fmr
Member
 
Registered: Oct 2009
Posts: 32

Original Poster
Rep: Reputation: 0
WOOHOO! Thanks alot, everyone!
It is up and running.
Kind regards
 
Old 10-16-2009, 09:07 AM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Cool
You may mark the thread as solved

Best Regards
 
  


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
Yet another Apache index.html 403 problem jerod23 Linux - Server 9 07-13-2009 01:23 PM
apache related problem (HTTP Error 403 - Forbidden ) spandau Linux - Networking 29 09-01-2005 06:06 PM
APACHE Problem 2 dirs, identical permissions and security contexts, one gives 403? tones Linux - Software 2 03-13-2005 08:45 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
I Fixed Apache 403 Forbidden Problem, but how? shosterman Linux - Newbie 2 01-26-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 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