Help - Search - Member List - Calendar
Full Version: Install question
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost > Help!
dmc
Can this script be installed and used within an existing website?

As in ww/mysite.com/imagehost/

I'm having trouble with the install/database setup

Thanks
lappy512
Yes, exactly what problems are you having?

It can be used within a existing website.

http://image.krazyletter.com/
http://www.lindsaylohan.nl/imagehost0.6/
http://www.upithere.com/

examples. smile.gif
dmc
Thanks for gettin back to me.

It seems I'm having trouble connecting to my database.

The install file generates this for the conf_global file

<?php $siteurl = "http://www.roofersreview.com/";
$sitename = "Imagehost";
$mysql['db'] = "";
$mysql['user'] = "";
$mysql['pass'] = "";
$mysql['host'] = "localhost";
$maxfilesize = "2097152";
$adminpass = "";
$version = 0.6;
$daystokeepfiles = "15"; ?>

it's not taking my database entries. [ db, user, pass ]

Any ideas?

Thanks
lappy512
did you input the database info into the installer file? weird, it seems that the form doesn't work? What version of PHP are you using?

If you want, you can try putting your database info and admin pass info into the conf_global file in between the quotes.

Also, you will need to then run the querries on the mysql database, if those haven't been run by the install.

I think the main problem might be the version of PHP you are running. What version are you using?
dmc
PHP 4.4.1
MySQL 4.0.25

I will try putting db info directly into conf_global.

What should I enter for mysql queries?

Thanks for the help.
lappy512
if, in PHPMYADMIN, you don't see any tables, use this SQL:
SQL
CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '0',
`comments` TEXT NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM ;


SQL
CREATE TABLE `stat_cache` (
`files` int(11) NOT NULL default '0',
`space` int(11) NOT NULL default '0',
`band` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0'
) TYPE=MyISAM;


SQL
CREATE TABLE `thumbs` (
`id` int(11) NOT NULL default '0',
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;


SQL
INSERT INTO `stat_cache` ( `files` , `space` , `band` , `downloads` )
VALUES (
'0', '0', '0', '0'
);
dmc
Thanks for that, I'll let you know how it works out.
smile.gif
lappy512
anything yet?
dmc
Had to take a break.

I've just got it working; got the index page up. Cool

Can upload and show links but the thumbnail and url are not working.

What did I miss
??
lappy512
That's one major problem with this script (which I'm not sure how to get past, yet).

It requres your server to have mod_rewrite (which your webhost may not have)

Also, you can check if the file is in the "uploads" folder, it should just be named "1" or something like that.
dmc
The files are in the uploads folder and I can get to them there.

Not sure on the mod_rewrite, is there an easy quick way to check on that?
lappy512
if it gives you a 404, you probably don't have mod_rewrite installed, although the best way would be to check with your host.
dmc
Yeah, it's a 404 error.

I'll check with the host to see about the mod_rewrite.

If not available, do you have a way around the problem?

dmc
The web host says that mod_rewrite is enabled but that I need to add " Rewrite Engine on" to the .htaccess file.???
lappy512
that line should be in the file, I personally think you need to get it resolved with your host (becuase it's in the file and everything, and works on other servers)
rushwhq
Hello All,

I need a help.. I recently installed PHPKImageHost.
I getting this error:
Conf_Global Successfully Created
error

And when i try to access www.nicolekg.com.ar
I can see the form, but displays this text:
Please make sure your Database is installed correctly.

Everything its ok. Dbname, dbuser, dbpass, localhost.

i apreciate if anyone can help to fix this

Regards And happy new year!

Rush
lappy512
The only reason it should be doing thats, is that it cannot connect to the host with the username and password provided.

Are you sure you've set up a mySQL username and password, and you are using it correctly?

For example, on a cpanel server, there's usually a prefix for a username, for example: "heliohos_image" or something like that, depending on your domain name.
rushwhq
QUOTE(lappy512 @ Jan 5 2006, 04:59 PM)
The only reason it should be doing thats, is that it cannot connect to the host with the username and password provided.

Are you sure you've set up a mySQL username and password, and you are using it correctly?

For example, on a cpanel server, there's usually a prefix for a username, for example: "heliohos_image" or something like that, depending on your domain name.
*




Hi lappy thanks for quicly reply.
Its all ok. Gonna try on another host and see whats happen.

Be back soon
Rush
rushwhq
Well tried on www.rushwhq.com/shareit and i got the same problem.
All the rest is fine, like i say before.

When i do install.php. i put the necesary info there. but the script dont create the DB and dont delete install.php.

tried creating the DB and inserted this:
CREATE TABLE `images` (
`id` int(11) NOT NULL auto_increment,
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '0',
`comments` TEXT NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM ;";

CREATE TABLE `stat_cache` (
`files` int(11) NOT NULL default '0',
`space` int(11) NOT NULL default '0',
`band` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0'
) TYPE=MyISAM;";

CREATE TABLE `thumbs` (
`id` int(11) NOT NULL default '0',
`size` int(11) NOT NULL default '0',
`downloads` int(11) NOT NULL default '0',
`lastuse` int(11) NOT NULL default '0',
`type` char(10) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
";
INSERT INTO `stat_cache` ( `files` , `space` , `band` , `downloads` )
VALUES (
'0', '0', '0', '0'
);";

But no help...

Regards
Rush
lappy512
Ah, you already need to create a database. You already need the user to exist, the pasword assigned to the user, and the database.
rushwhq
i edited my last thread pls read.
Like i say everything is fine. I currently running a vbb and other scripts that works well. but ur script doenst work with my hosting.

phpinfo()
http://www.rushwhq.com/1.php

Regards
Rush
rushwhq
fixed. Password problem.

Regards and thanks for helping me out smile.gif

Rush
lappy512
No problem. smile.gif
little_matc
even i am facing the same problem..

installed and the index and admin page is working fine..

but when uploading the image.. the image gets uploaded but not the preview or thumbnail is generated.. no can i get the image displayed from the link generated by the process.php page.

can anyone please help me out from this mess???
zsinyoz
I got the same problem as your, ... Every thing work.... When I upload...it seem, it can not create the extension of the file...i.e. instead of pic4.jpg it just create a file pic4

anyone can help us

QUOTE(little_matc @ Jan 24 2006, 06:38 AM)
even i am facing the same problem..

installed and the index and admin page is working fine..

but when uploading the image.. the image gets uploaded but not the preview or thumbnail is generated.. no can i get the image displayed from the link generated by the process.php page.

can anyone please help me out from this mess???
*


lappy512
As I said, you have a problem with mod_rewrite. You will need to contact your host about this problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.