Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

squirrelmail / PHP error(s)

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi~

anyone any experience with Squirrelmail (v1.2.9), i get these PHP errors if i go to the webmail-page of my server:
--
Warning: Invalid argument supplied for foreach() in ../src/global.php on line 64

Warning: Invalid argument supplied for foreach() in ../src/global.php on line 64

Warning: Cannot add header information - headers already sent by (output started at ../src/global.php:64) in ../functions/i18n.php on line 720

Warning: Cannot send session cookie - headers already sent by (output started at ../src/global.php:64) in ../src/global.php on line 116

Warning: Cannot send session cache limiter - headers already sent (output started at ../src/global.php:64) in ../src/global.php on line 116

Warning: Cannot add header information - headers already sent by (output started at ../src/global.php:64) in ../src/global.php on line 133

Warning: Cannot add header information - headers already sent by (output started at ../src/global.php:64) in ../src/global.php on line 134

Warning: Cannot add header information - headers already sent by (output started at ../src/global.php:64) in ../src/global.php on line 135

Warning: Cannot add header information - headers already sent by (output started at ../src/global.php:64) in /var/on line 91
--

i have to say i don't know anything about PHP (yet) so..

thx in advance,
rb.
 
What web server are you using? If its Apache, does it have PHP support compiled in?


ChrisP
 
yeah, i use Apache webserver.. is there anyway to check if PHP is compiled ??

if not, how do i compile it ?

thanks.
 
Here are directions that I wrote a few months ago for building PHP as an Apache module (DSO).



At this time, PHP4 and Apache2x are not fully compatible. I couldn’t get it working with Apache 2.0.40, but it worked with Apache 1.3.26...

1. Extract both apache and php sources to /usr/local/src

2. You must have DSO (Dynamic Shared Objects) enabled in Apache before you can use PHP as a DSO module. To recompile Apache with DSO support, use the --enable-so (for Apache 2.x) or --enable-module=so (for Apache 1.x) with the configure script. Run the following, along with any other additional options that you need from the Apache source directory…

./configure --prefix=/usr/local/apache --enable-so
make && make install

3. To compile PHP as an Apache shared module we have to provide the path to the apache apxs utility. From the PHP source directory run the following to compile and install the DSO version of the PHP module for Apache…

./configure --with-apxs2=/usr/local/apache/bin/apxs
make && make install
cp php.ini-dist /usr/local/lib/php.ini
<edit the php.ini file and set> register_globals=On

4. Make sure that shared object module is compiled into Apache by running the following command…look for mod_so.c

/usr/local/apache/bin/httpd -l

5. The following line added to the httpd.conf file will load the PHP module each time Apache is started…

LoadModule php4_module modules/libphp4.so

6. The following added to httpd.conf tells Apache that any file with a .php extension must be treated as PHP scripts and should be processed using PHP input and output filters….

I think this is for Apache 2.x (wasn’t required for Apache 1.x)
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

This is required for Apache 1.x…

AddType application/x-httpd-php .php

7. Restart the Apache web server





ChrisP
 
Since PHP is outputting errors, PHP has to be installed. I'm guessing that this is some sort of bug the Squirrelmail. Have you checked their buglist? //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top