Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can't run install.php  (Read 7787 times)

0 Members and 1 Guest are viewing this topic.

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Can't run install.php
« on: January 04, 2005, 02:04:54 pm »

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
Logged
Wbr,
Andrey "Papa" Lutsenko

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #1 on: January 04, 2005, 02:06:58 pm »

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

Nibbler

  • Guest
Re: Can't run install.php
« Reply #2 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.
Logged

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #3 on: January 04, 2005, 02:44:15 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
« Last Edit: January 04, 2005, 02:51:29 pm by PapaTramp »
Logged
Wbr,
Andrey "Papa" Lutsenko

Nibbler

  • Guest
Re: Can't run install.php
« Reply #4 on: January 04, 2005, 02:56:45 pm »

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

-> Try that.

For phpinfo file:

Code: [Select]
<? phpinfo(); ?>
Save to a file, upload, and run in browser.
Logged

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #5 on: January 04, 2005, 03:01:17 pm »

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...
Logged
Wbr,
Andrey "Papa" Lutsenko

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't run install.php
« Reply #6 on: January 05, 2005, 12:36:31 am »

link please.

Joachim
Logged

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #7 on: January 05, 2005, 02:36:41 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...
« Last Edit: January 05, 2005, 11:50:59 am by PapaTramp »
Logged
Wbr,
Andrey "Papa" Lutsenko

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't run install.php
« Reply #8 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
Logged

PapaTramp

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #9 on: January 05, 2005, 04:26:54 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...
Logged
Wbr,
Andrey "Papa" Lutsenko

Nibbler

  • Guest
Re: Can't run install.php
« Reply #10 on: January 05, 2005, 04:29:52 pm »

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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Can't run install.php
« Reply #11 on: January 05, 2005, 05:22:25 pm »

Once you create the database, try the installer again.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't run install.php
« Reply #12 on: January 06, 2005, 04:19:55 am »

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.
Logged
Wbr,
Andrey "Papa" Lutsenko

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Can't run install.php
« Reply #13 on: January 06, 2005, 04:28:13 am »

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/)
Logged
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

  • Guest
Re: Can't run install.php
« Reply #14 on: January 06, 2005, 04:42:10 am »

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_
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't run install.php
« Reply #15 on: January 07, 2005, 10:26:13 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.