[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PHP Package
Hello,
Well if you are trying to run pear, then you will run into problems. Since
the default install for openBSD 3.2 has a chroot apache. Run httpd -u to
disable it.
Richard
On November 3, 2002 10:22 pm, Travis Gillitzer wrote:
> All,
>
> I am trying to add PHP with MySQL support. I did the following to
> install PHP:
>
> # pkg_add php4-core-4.2.3.tgz
> # /usr/local/sbin/phpxs -s
> Copied php.ini-dist to /var/www/conf/php.ini
> # pkg_add php4-mysql-4.2.3.tgz
> # /usr/local/sbin/phpxs -a mysql
> # pkg_add php4-imap-4.2.3.tgz
> # /usr/local/sbin/phpxs -a imap
> # pkg_add php4-pear-4.2.3.tgz
>
> I then installed the MySQL package. It works fine, as far as I can
> tell.
>
> I then install PHPShop (http://www.phpshop.org)
> However I am getting error when I go to the webstore. It reads as
> follows:
>
> Fatal error: Call to undefined function: mysql_pconnect() in
> /phpshop/db/db_mysql.inc on line 73
>
> That line in db_mysql.inc is as follows:
>
> $this->lid = mysql_pconnect(DB_HOST,DB_USER,DB_PWD);
>
>
> I know that line works. It was working when I was running OpenBSD 3.1.
> The only difference is I didn't
> use packages to install PHP and MySQL.
>
> One thing that caught my eye on the phpinfo() page is the --configure
> line. It reads as follows:
>
> ./configure' '--with-apxs=/usr/sbin/apxs' '--without-mysql'
> '--without-xml' '--enable-cli'
> '--with-iconv=/usr/local' '--with-gettext=/usr/local'
> '--enable-dio' '--without-pear'
> '--enable-bcmath' '--enable-session' '--enable-trans-sid'
> '--enable-calendar' '--enable-ctype'
> '--enable-ftp' '--with-pcre-regex' '--with-posix'
> '--enable-sockets' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-yp' '--with-recode=/usr/local'
> '--enable-shared' '--disable-static'
> '--disable-rpath' '--with-config-file-path=/var/www/conf'
> '--enable-inline-optimization'
> '--with-pic' '--with-openssl' '--with-zlib' '--prefix=/usr/local'
> '--sysconfdir=/etc'
>
> Notice the --without-mysql and --without-pear? Is that is what is
> causing the problem?
>
> Thanks in advance.
- References:
- PHP Package
- From: "Travis Gillitzer" <tgillitzer@kc.rr.com>