Can't run install.php Can't run install.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't run install.php

Started by PapaTramp, January 04, 2005, 02:04:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PapaTramp

Ifter installing coppermine from ports, i cant run install.php, the result is
Fatal error: Call to undefined function preg_split() in /usr/local/www/coppermine/install.php on line 21

OS: FreeBSD 5.2-p2
coppermine: coppermine-1.3.2
PHP 5
Wbr,
Andrey "Papa" Lutsenko

PapaTramp

Sorry, FreeBSD 5.3-p2
And sorry, but how i can know what version of php installed?
Wbr,
Andrey "Papa" Lutsenko

Nibbler

What is ports ?

I've seen this message before, try searching the board for the undefined function message. Check php version with a phpinfo file.

PapaTramp

#3
Quote from: Nibbler on January 04, 2005, 02:15:43 PM
What is ports ?

I've seen this message before, try searching the board for the undefined function message. Check php version with a phpinfo file.
Ports is a method of installing programms under FreeBSD. With dependants etc. CVS.
I found the message like mine but there it was without answer...
PHP version 5.0.3
Wbr,
Andrey "Papa" Lutsenko

Nibbler

"The extension_dir in php.ini needed to be corrected to where the pcre.so was placed."

-> Try that.

For phpinfo file:

<? phpinfo(); ?>

Save to a file, upload, and run in browser.

PapaTramp

Done.
***************
phpinfo()
PHP Version => 5.0.3

System => FreeBSD papatramp.com 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #1: Fri Dec 17 21:41:57 ANAT 2004     papatramp@papatramp:/usr/obj/usr/src/sys/papatramp i386
Build Date => Jan  4 2005 21:14:13
Configure Command =>  './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6' '--prefix=/usr/local' 'i386-portbld-freebsd5.3'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/etc
Scan this dir for additional .ini files => /usr/local/etc/php
additional .ini files parsed => /usr/local/etc/php/extensions.ini

PHP API => 20031224
PHP Extension => 20041030
Zend Extension => 220040412
Debug Build => no
Thread Safety => disabled
IPv6 Support => disabled
Registered PHP Streams => php, file, http, ftp, compress.bzip2, https, ftps, compress.zlib 
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

***************

And there is another 8kb of info...
Wbr,
Andrey "Papa" Lutsenko

Joachim Müller


PapaTramp

#7
Quote from: GauGau on January 05, 2005, 12:36:31 AM
link please.

Joachim

http://www.papatramp.com/coppermine/index.php
http://www.papatramp.com/coppermine/install.php
http://www.papatramp.com/info.php

P.S. After some manupulates this error disapperas, but now after filling the form on the install.php and pressing "Let's go" button the page install.php appers ahain and with empty fields...
Wbr,
Andrey "Papa" Lutsenko

Joachim Müller

Make sure the include folder is writable for the script (as suggested in the docs). Make sure you have register_long_arrays turned on in php.ini. Search the board for details, this has been reported before, and fixes have been posted.

Joachim

PapaTramp

Quote from: GauGau on January 05, 2005, 03:38:38 PM
Make sure the include folder is writable for the script (as suggested in the docs). Make sure you have register_long_arrays turned on in php.ini. Search the board for details, this has been reported before, and fixes have been posted.

Joachim
Yes, i did.
ls -la /usr/local/www/data/
...
drwxrwxrwx  10 www   www    1536 Jan  6 01:18 coppermine

ls -la /usr/local/www/data/coppermine
...
drwxrwxrwx   4 www   www      512 Jan  4 22:46 albums
drwxrwxrwx   2 www   www     1024 Jan  5 20:30 include

in php.ini:
register_long_arrays = On

Damn, i cant understand ;( After pressing "Lets go" nothing happens. If i look in webmin, there is no new database with name "coppermine". And file config.inc.php dont appers in /include directory...
Wbr,
Andrey "Papa" Lutsenko

Nibbler

Coppermine doesn't create a database - you have to provide details of an already setup database. You could try installing manually - import the /sql files into your db and write your own config.inc.php using the sample as a guide.

kegobeer

Once you create the database, try the installer again.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

PapaTramp

I did:
run the mysql, then
mysql> source /usr/local/www/data/coppermine/sql/schema.sql
ok
mysql> source /usr/local/www/data/coppermine/sql/basic.sql
ok
When i looked into database, i see the new tables.
Well, i made file /include/config.inc.php:
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'papatramp';        // Your mysql username
$CONFIG['dbpass'] =                         'password';                // Your mysql password
$CONFIG['dbname'] =                         'coppermine';        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg132_';
?>

User papatramp has all privileges. Well, when i point to http://www.papatramp.com/coppermine/install.php, filled all fields and press "Lets go" - i've got blank page with COppermine logo on the top.  :P
COnfig.inc.php chowned to www:www and chmoded to 777.
Sorry, no idea what to do now.
Wbr,
Andrey "Papa" Lutsenko

kegobeer

Whoa!  Hold on, dude.  You created the tables, populated them, and created a config.inc.php file.  You just installed Coppermine.  You'll probably have to drop the tables and do it again if you've tried the installer a few more times.

I see you haven't configured DirectoryIndex to include index.php.  You really need to do that, or stick a index.htm file in there until you do.  I browsed your file directory - fix that.

You need to use a tool like phpmyadmin to create an admin account, and to put in your ecards_more_pic_target to match the url of where your root is (http://www.papatramp.com/coppermine/)
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

If you imported the sql files without doing a find/replace for the prefix then you'll need to set the prefix in config.inc.php to CPG_

Joachim Müller

you really shouldn't run your own webserver publicly if you have little to no idea about how to make it secure... You'll get hacked in no time, I guarantee.

Joachim