From: Mitchell K. S. <mk...@pa...> - 2001-11-06 14:27:52
|
Thanks to everyone who responded. I Uninstalled and reinstalled the following RPMs: MySQL-shared-3.23.42.rpm php-mysql-4.0.4pl1.rpm php-4.0.4pl1.rpm I then restarted the system and it worked fine. Mitch Smith -----Original Message----- From: alister air [mailto:ali...@ut...] Sent: Monday, November 05, 2001 5:27 PM To: Mitchell K. Smith; php...@li... Subject: Re: [Phphelpdesk-help] error call to undefined function Hi, Are you sure PHP is compiled with MySQL support? Read the error message - it's not telling you about an Apache problem, it's telling you about a connectivity problem between connect.inc.php and MySQL. On Debian, I ran: apt-get install php-mysql and restarted services - this worked for me. Alister At 03:39 AM 11/6/2001, Mitchell K. Smith wrote: >Greetings. I need some help getting the helpdesk setup. > >In the INSTALL file there were no instructions for setting up the Apache >directives for the helpdesk. >Everything else seemed to go okay including setting up mysql. > >I modified my httpd.conf file like so: > ><VirtualHost 172.31.1.32> > >DocumentRoot /websites/helpdesk >ServerName helpdesk >ServerAdmin mk...@pa... > ><Directory /websites/helpdesk> >AllowOverride None >order allow,deny >allow from all ></Directory> > >ErrorLog /websites/helpdesk/logs/errors.log >CustomLog /websites/helpdesk/logs/access.log combined > ></VirtualHost> > >When I browse to http://helpdesk I get the following error: > >Fatal error: Call to undefined function: mysql_connect() in >/websites/helpdesk/includes/connect.inc.php on line 10 > >My general.conf.php looks like this: > ><snip> > >/* > If you are using http://someaddress.com/phphelpdesk, then you must set the > base url to "http://someaddress.com/phphelpdesk/" Notice the '/' at the >end > you must put that in there. If you are using a virtual host such as > http://phphelpdesk.somecompany.com, then you can just leave it empty with > the quotes touching ""; >*/ >$g_base_url = ""; //base url location > >// you HAVE to set your domain name here, with no HTTP: >// or / at the end or anything... >$g_domain = "helpdesk"; > >// this is the path from the last part of the $g_base_url >// parameter. If there is no path, set this to "/"; NOTICE >// THE BEGINNING AND ENDING /'s!! >$g_base_path = "/"; > ><snip> > >Any help would be greatly appreciated. > > >Mitchell K. Smith >Service and Information Systems Manager >ePlus Technology of PA >130 Futura Drive >Pottstown, PA 19464 >610-495-7800 ext. 264 >mk...@pa... > > > >_______________________________________________ >Phphelpdesk-help mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help -- Alister Air Ph 9514 1277 IT Manager Fx 9514 1656 Faculty of Science, University of Technology Sydney "The time of your life is the one commodity that you can sell but never buy back." -- Bob Black |