|
From: <mag...@ya...> - 2003-10-31 10:55:33
|
Hola again, thanks for all your input on this. OK here is the information you were asking for. Apache and PHP came preconfigured with the Cobalt Qube. Output from apache - -------------------------------------------------- [root httpd]# httpd -V Server version: Apache/1.3.20 Sun Cobalt (Unix) Server built: Apr 4 2003 14:39:29 Server's Module Magic Number: 19990320:10 Server compiled with.... -D EAPI -D HAVE_MMAP -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_MMAP_FILES -D USE_SYSVSEM_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard" -D DEFAULT_LOCKFILE="/var/run/httpd.lock" -D DEFAULT_XFERLOG="/var/log/httpd/access_log" -D DEFAULT_ERRORLOG="/var/log/httpd/error_log" -D TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -D ACCESS_CONFIG_FILE="conf/access.conf" -D RESOURCE_CONFIG_FILE="conf/srm.conf" -------------------------------------------------- Output for the php RPM - -------------------------------- [root bobs-0.6.0]# rpm --query -i php-4.0.6-C5_Qube3 Name : php Relocations: (not relocateable) Version : 4.0.6 Vendor: (none) Release : C5_Qube3 Build Date: Mon Oct 7 21:36:49 2002 Install date: Fri Oct 17 17:05:06 2003 Build Host: sustaining8.central.sun.com Group : Development/Languages Source RPM: php-4.0.6-C5_Qube3.src.rpm Size : 5111738 License: The PHP license (see "LICENSE" file included in distribution) Packager : PHP Group <gr...@ph...> URL : http://www.php.net/ Summary : PHP: Hypertext Preprocessor ----------------------------------------------------- From the configure command (This is the standard output, let me know if you want to see the whole config.log file). ----------------------------------------------------- [root bobs-0.6.0]# ./configure --with-webdir=/home/groups/home/web \ > --with-bobsdata=/home/bobs/data \ > --with-crondir=/home/bobs/cron \ > --with-mandir=/usr/local/man checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes checking for web server user id... httpd configure: creating ./config.status config.status: creating Makefile config.status: creating bash/Makefile config.status: creating cron/Makefile config.status: creating data/Makefile config.status: creating doc/Makefile config.status: creating images/Makefile config.status: creating images/bar/Makefile config.status: creating images/menu/Makefile config.status: creating inc/Makefile config.status: creating inc/excludes/Makefile config.status: creating inc/servers/Makefile config.status: creating inc/templates/Makefile config.status: creating js/Makefile config.status: creating man/Makefile config.status: creating winc/Makefile config.status: creating inc/config.php config.status: creating data/admin.pwd config.status: creating cron/backup.php config.status: creating cron/check_loop ======================================== Your configuration: web pages directory = /home/groups/home/web/bobs bobs data directory = /home/bobs/data/bobsdata cron directory = /home/bobs/cron crontab directory = /etc admin password = admin *** 0 warning(s) ------------------------------------------------------ Error messages now. When the php.ini include path is set to the preconfigured default include_path = "/usr/sausalito/ui/libPhp" browser -> http://myhost.mydomain.net/bobs/admin.php Immediately i get this error message ----------------------------------------- Fatal error: Failed opening required 'inc/class_config.php' (include_path='/usr/sausalito/ui/libPhp') in /home/groups/home/web/bobs/admin.php on line 5 -------------------------------------------- When I add bobs information to the include path include_path= "/usr/sausalito/ui/libPhp:/home/groups/home/web/bobs/inc:/home/groups/home/web/bobs" browser -> http://myhost.mydomain.net/bobs/admin.php First of all the admin page comes up ok, but when i enter the password, the following error appears ------------------------------------------------ Fatal error: Call to a member function on a non-object in /home/groups/home/web/bobs/admin.php on line 62 -------------------------------------------------- Hope this gives you a bit more information, all your help is muchly appreciated ! And have a Happy Halloween ! Ciao, Robín --- Joe Zacky <jz...@co...> escribió: > Robin Munt wrote: > > >Hi from Barcelona ! > > > >I don´t think this problem is directly related to > >BOBS, more than likely it´s my PHP configuration, > but > >maybe someone can shed some light on it. > > > >System I am using is a Sun Cobalt Qube 3, which > comes > >with Red Hat Enterprise Linux preinstalled. with a > lot > >of services (httpd, samba, php, etc) preconfigured. > > > >I downloaded BOBS, configured and installed it as > >standard (with the web directory pointing to the > >Cobalt default '/home/groups/home/web'), and > >everything seemed OK. When I first ran it I got an > >error indicating the include path. So I added > > > >'/home/groups/home/web/bobs:/home/groups/home/web/bobs/inc' > > > > > >to the include_path in my /etc/httpd/php.ini file. > > > > > You shouldn't have to change the include path of > your http > configuration. The include files in admin.php are > coded as > 'inc/<whatever>' relative to the current directory. > Did you compile with > the option '--with-webdir=/home/groups/home/web' ? > What exactly was the > error original include path error? The ./configure > command line you used > plus the output of it may help shed some light on > the problem too, if > you'd care to post that. > > >I restarted the httpd daemon, this time the BOBS > admin > >screen came up OK. But after entering the password > >this error message came up > > > >"Fatal error: Call to a member function on a > >non-object in /home/groups/home/web/bobs/admin.php > on > >line 62" > > > >Looking in the admin.php file this refers to the > >following piece of code > > > >-------------------------------- > >if ($admin->check_admin($_POST['password']) != > "yes"){ > > admin_login(); > > > exit; > >} > >-------------------------------- > > > > > Sounds like inc/class_admin.php wasn't executed. The > check_admin() > member function is in there. Let's go back to the > original include > error. What did it say? > > >And so i´m a little bit stuck, wanting to try out > this > >software but not being able to get any further ! > > > >Can anyone shed any light if this is a problem with > >BOBS, or if there is someting amiss in my PHP > setup? > >I apologise if this question is not relevant to the > >mailing list, but i didn´t really know where else > to > >go. > > > > > It's relevant. > > >Thanks for your help > > > >Robin > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback > Program. > Does SourceForge.net help you be more productive? > Does it > help you create better code? SHARE THE LOVE, and > help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Bobs-devel mailing list > Bob...@li... > https://lists.sourceforge.net/lists/listinfo/bobs-devel > > ___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es |