LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2004, 10:05 PM   #1
Odins_Son
LQ Newbie
 
Registered: Nov 2004
Location: Salem
Distribution: debian unstable
Posts: 18

Rep: Reputation: 0
phpbb, apache2, php4


I'm trying to setup a phpbb2 forum on my website. However I am having a problems viewing php pages. I am running debian and I installed php4 and apache2 using the apt-get.

When I goto my site (just a temp site)

66.222.236.149:8080/phpbb --> but the http infront of it. It wont let me post a url until I hav 5 posts.

Before it asked me to download a file instead of showing me the phpbb install page. So I moved the php4.conf and php4.load files into the /etc/apache2/mods-enabled/. Now it just displays a blank page. I dont know what to do



I have tried everything and I've even been getting help on irc channels but nothing seems to work. I'll tell how everything is setup. let me know if you see anything wrong.

in the /php.conf

I have



quote:
--------------------------------------------------------------------------------
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

--------------------------------------------------------------------------------



In /php.load

I have


quote:
--------------------------------------------------------------------------------

LoadModule php4_module /usr/lib/apache2/modules/libphp4.so

--------------------------------------------------------------------------------



In the sites-enabled/000-default

I have an entry for phpbb2 as follows


quote:
--------------------------------------------------------------------------------

#PHPBB CRAPOLA

Alias /phpbb /usr/share/phpbb2/site
#Alias /phpbb/images/avatars /var/lib/phpbb2/avatars
#Listen 8081

<DirectoryMatch /usr/share/phpbb2/site/>
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>

Options -Indexes +FollowSymlinks

DirectoryIndex index.php index.htm

AllowOverride None
order allow,deny
allow from all
</DirectoryMatch>

--------------------------------------------------------------------------------




I also created a file called php.info with a line '<?php phpinfo(); ?>'and put it in a folder that is being served by apache. It displayed the php information so I'm guessing php is set up right. .
 
Old 12-01-2004, 01:30 PM   #2
teddyted
LQ Newbie
 
Registered: Nov 2004
Location: USA
Distribution: SuSe 9.1 Pro
Posts: 8

Rep: Reputation: 0
Hi Odins
I think the
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

is executed only when the IfModule mod_php4.c is true
try it without the <IfModule...
Hope this helps,
Let me know how you solved it
 
Old 12-23-2004, 02:24 AM   #3
Odins_Son
LQ Newbie
 
Registered: Nov 2004
Location: Salem
Distribution: debian unstable
Posts: 18

Original Poster
Rep: Reputation: 0
Hey thanks a ton. I got it working just fine


www.brookshatchat.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 and php4 in Debian swmok Debian 1 06-09-2005 05:21 PM
apache2 + php4 atheist Linux - Software 6 10-25-2004 03:12 PM
a problem with php4 under apache2 aswanjaguar Linux - Software 4 09-22-2004 03:15 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Apache2 & php4 CyberDrake Linux - Newbie 2 11-25-2002 11:32 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration