fsockopen

[13-Sep-2007 17:18:29] PHP Warning:  Call-time
pass-by-reference has been deprecated;  
If you would like to pass it by reference, modify the
declaration of fsockopen().  If you would like to enable
all-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file.
in /export/home/www/php/include/url.inc.php on line 337
Fix: Change:
   $fd = fsockopen($host, 80, &$errno, &$errstr);    
To
   $fd = fsockopen($host, 80, $errno, $errstr);    

Undefind index: carson.eecs.berkeley.edu

[13-Sep-2007 17:43:04] PHP Notice:
Undefined index:  carson.eecs.berkeley.edu in /export/home/www/php/get.php on line 29
Solution: The sites table needs to mention carson.eecs.berkeley.edu. Find a copy of sites.sql in a mysql backup directory, for example /export/home/www/mysqlarchive/Wed/sites.sql and change one of the hosts to carson.eecs.berkeley.edu. Then follow the procedure from php/util/mysqlrestoreall:
su - mysql
/opt/mysql/mysql/bin/mysqladmin -f drop sites
cd /home/www/mysqlarchive/Wed
/opt/mysql/mysql/bin/mysqladmin create sites
/opt/mysql/mysql/bin/mysql sites < sites.sql

Undefined variable: SCRIPT_URL

[13-Sep-2007 17:54:58] PHP Notice:  Undefined variable: SCRIPT_URL in
/export/home/www/php/trust.eecs.berkeley.edu/get.php on line 17
Change the offending line to:
$url = $_SERVER['SCRIPT_URL'];

can't find carson.eecs.berkeley.edu/config.php

[13-Sep-2007 18:16:04] PHP Fatal error:  require() 
[ function.require]: Failed opening required 'carson.eecs.berkeley.edu/config.php' (include_path='.:/usr/local/lib/php') in /export/home/www/php/mysql/config.inc.php on line 14
Solution: add /home/www/php to PhP's includes by editing php.ini:
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"                                               
include_path = ".:/home/www/php"
and restarting Apache with /etc/init.d/gsrc stop; /etc/init.d/gsrc start

Login page does not exist

When I go to http://carson.eecs.berkeley.edu and click on "login", I get a blank page.

Solution: The problem was that the ssl.conf file was not include rewrite.conf.

trustlocal page does not exist

http://carson.eecs.berkeley.edu/trustlocal brings up a blank page.

Solution: group.php needed to properly access formerly global vars.

pubs did not exist

Needed to run cvs update -P -d -A and copy the cvswww and wwwdata directories.
To copy those dirs, I used this command:
 gtar -cf - . | ssh cxh@carson "cat > ~www/cvswww/c.tar"

Problem finding groups that have cvs home pages

Groups like education were not being found.
Solution:
  1. group.php needed more global variable work. See php.err for messages
  2. The apache error_log contained:
    [Fri Sep 14 15:07:53 2007] [error] [client 64.142.12.29]
     client denied by server configuration: 
    /home/www/cvswww/carson.eecs.berkeley.edu/education/
    
    This looks like a problem with symbolic links in httpd.conf:
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        # Commented out by cxh so we can follow symbolic links for cvswww/carson*
        #Order deny,allow
        #Deny from all
    </Directory>
    
    and then restarted httpd