LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   phpbb, apache2, php4 (https://www.linuxquestions.org/questions/linux-software-2/phpbb-apache2-php4-256240/)

Odins_Son 11-17-2004 10:05 PM

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. .

teddyted 12-01-2004 01:30 PM

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

Odins_Son 12-23-2004 02:24 AM

Hey thanks a ton. I got it working just fine


www.brookshatchat.com


All times are GMT -5. The time now is 01:09 AM.