LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2008, 05:37 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Debian apache2 phpbb doesn't work, always displays "it works"


This is strange despite removing apache2-default, having an index.html page and a folder "forum" whenever I go to my server it says "It Works!"

My phpbb forum isn't working either, I'm not sure if that's related. I used to have a web server on ubuntu and phpbb working fine.
 
Old 03-15-2008, 04:22 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
so you type http://localhost/forum/index.html
and the response ist "It works" ?
 
Old 03-15-2008, 01:55 PM   #3
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
No actually I get a bunch of errors. The installer didn't work, when I clicked finish it just brought me to a white screen.

When I go to 127.0.0.1 it was saying "it works." I've rebooted sense then and now it's giving me a 404 "The requested URL /apache2-default/ was not found on this server." I don't see why it's trying to loat apache2-default when I have index.html and even still have a folder "forum" in /var/www.

Last edited by 1veedo; 03-15-2008 at 02:00 PM.
 
Old 03-16-2008, 05:46 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
you can take a look at the apache2.conf file or maybe it is httpd.conf where most cofiguration is set. The variable where apache looks for documents is called
DocumentRoot="/path/somehwere"

if it set to /var/ww/apache-default or similar then apache now is in trouble to find that. It cannot serve any pages if this setting is not adjusted. Every page thh is to be displayed must reside inside of this directory...

after changing config you have to restart the server to put changes into effect...

Last edited by j-ray; 03-17-2008 at 03:26 AM.
 
Old 03-20-2008, 09:11 PM   #5
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Think I found the problem. I didn't look at the config files but httpd.conf is empty. In fact there's no configurations there except mods for php and apache2.conf which is basic stuff, none of the server roots and standard apache configurations (like <directory> stuff).
 
Old 03-21-2008, 02:25 AM   #6
brianhenson
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
To turn off the default it works page go to (assuming default installation) /etc/apache2/sites-available/ and edit the file called default you are looking for this string RedirectMatch ^/$ /apache2-default/ put a # in front of it and then restart apache with this command /etc/init.d/apache2 force-reload and then test out and try the installer again. If you do to the directory and just see the listing of the files php may be setup incorrectly. I would also try this create a new file called test.php and put this code into it
PHP Code:
<html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo
( );
?>
</body>
</html>
This will show you a listing of your current php settings.

just my 2c
 
Old 03-22-2008, 09:26 PM   #7
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
Yeah that worked thanks. I used to know a lot about apache's config files but the past year or so every distro I've installed apache2 with had everything set up and working automatically (even php and mysql).
 
  


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
Apache2 userdir "almost" works - can't serve images directory jpantone Linux - Server 14 07-15-2008 01:25 PM
Turn ON "URL rewrite" in Apache2 (debian etch) swmok Linux - Server 2 11-19-2007 04:02 AM
root password doesn't work at log in, works using "su" etfd Red Hat 3 01-10-2007 06:38 AM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
An observation about "it doesn't work on Debian but it works on Red Hat..." sundialsvcs Linux - General 2 03-12-2006 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:45 AM.

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