sorry to ask, but I need pointing in the right direction on

Gurberly

Joined: 2002-08-24
Posts: 7
Posted: Thu, 2002-08-29 17:32

Hi I am getting an error

There are a couple of other messages here were people are having errors at the same point, but those concern a windows install whereas this is Unix

Warning: mkdir() failed (Disk quota exceeded) in /home/pigyncom/public_html/gallery/classes/gallery/UserDB.php on line 35
Error: Unable to create dir: /home/pigyncom/public_html/albums/.users
Fatal error: Call to a member function on a non-object in /home/pigyncom/public_html/gallery/classes/UserDB.php on line 99

This occurs when I try to save the configuration at step 4 of the install. There were no errors on the configuration settings. The error message "Disk quota exceeded" may be a bit misleading though as I can still FTP files and create directories manually using SmartFTP ans also read stuff through my browser. I can also change the appropriate permission settings. Also the cpanel stats provided show me having used a less than 5% of my disk quota and bandwidth. I use a webhosting company so am on a shared server, therefore I have no direct access myself. Additionally I have no experience of PHP and server configuration and so on.

I have installed the gallery on two other accounts with the same hosting company, but on different servers (different IP addresses anyway) so I know I am following all the install instructions correctly :smile: I am surmising that the hosting company has set this server up slightly differently from the other two. It's a cheapy host so they won't go looking for difference unless specifically told, but I don't know what to tell them to change/look at.

I have gut feelings it may be to do with the group/membership settings, as where it has installed on the other servers, these have group and membership values of 99 whilst all the stuff I put on directly, has my name. I tried creating a .users folder by hand chmod it 777. It went through the install with no error messages, but then it does not let you log in on the admin password so I guess it could not create the right info in the .users folder that I had manually created.

phpinfo() is http://www.pigyn.com/phpinfo.php if that is of any help I canna make head nor tail of it... Though it seems the same as the other sites I use there.

I also tried to create a simple php script to create a folder by hacking the code out of the userDB.php file so I could use it to give to the host so he could try it at both sites...works here but not here...check the problem with out going through the entire install. Thought it might help them, but unfortunately, my coding is not so hot. Actually, its pretty c**p :smile: I am way out of depth here. And I am way to old to go back to school :smile: :smile:

Sorry to ask about this here, as I'm sure its not a script/install problem per se, but something serverside...just I'm hoping you guys can point me where to look to fix it:) :smile:

If you need more onfo, please come back to me.

Cheers

 
TheWatcher
TheWatcher's picture

Joined: 2002-08-21
Posts: 120
Posted: Thu, 2002-08-29 23:45
Quote:
Hi I am getting an error

There are a couple of other messages here were people are having errors at the same point, but those concern a windows install whereas this is Unix

Warning: mkdir() failed (Disk quota exceeded) in /home/pigyncom/public_html/gallery/classes/gallery/UserDB.php on line 35
Error: Unable to create dir: /home/pigyncom/public_html/albums/.users
Fatal error: Call to a member function on a non-object in /home/pigyncom/public_html/gallery/classes/UserDB.php on line 99

This occurs when I try to save the configuration at step 4 of the install. There were no errors on the configuration settings. The error message "Disk quota exceeded" may be a bit misleading though as I can still FTP files and create directories manually using SmartFTP ans also read stuff through my browser. I can also change the appropriate permission settings. Also the cpanel stats provided show me having used a less than 5% of my disk quota and bandwidth. I use a webhosting company so am on a shared server, therefore I have no direct access myself. Additionally I have no experience of PHP and server configuration and so on.

I have installed the gallery on two other accounts with the same hosting company, but on different servers (different IP addresses anyway) so I know I am following all the install instructions correctly :smile: I am surmising that the hosting company has set this server up slightly differently from the other two. It's a cheapy host so they won't go looking for difference unless specifically told, but I don't know what to tell them to change/look at.

I have gut feelings it may be to do with the group/membership settings, as where it has installed on the other servers, these have group and membership values of 99 whilst all the stuff I put on directly, has my name. I tried creating a .users folder by hand chmod it 777. It went through the install with no error messages, but then it does not let you log in on the admin password so I guess it could not create the right info in the .users folder that I had manually created.

phpinfo() is http://www.pigyn.com/phpinfo.php if that is of any help I canna make head nor tail of it... Though it seems the same as the other sites I use there.

I also tried to create a simple php script to create a folder by hacking the code out of the userDB.php file so I could use it to give to the host so he could try it at both sites...works here but not here...check the problem with out going through the entire install. Thought it might help them, but unfortunately, my coding is not so hot. Actually, its pretty c**p :smile: I am way out of depth here. And I am way to old to go back to school :smile: :smile:

Sorry to ask about this here, as I'm sure its not a script/install problem per se, but something serverside...just I'm hoping you guys can point me where to look to fix it:) :smile:

If you need more onfo, please come back to me.

Cheers

Will you be able to provide the diagnostic page? So we can see something else here... personally this is the first time I heard about disc quota error. I think bharat will be able to assist us here .

 
Gurberly

Joined: 2002-08-24
Posts: 7
Posted: Fri, 2002-08-30 04:54
Quote:
Will you be able to provide the diagnostic page? So we can see something else here... personally this is the first time I heard about disc quota error. I think bharat will be able to assist us here .

If you mean the diagnostics from phpinfo() you can read from this link http://www.pigyn.com/phpinfo.php bit much to post here.

The error message from the install is as above posting.

The session test on the configuration wizard was OK. The phpinfo is as in the link in the previous paragraph. Can't do the other one until I've installed. If you mean some other diagnostic output, I'm afraid you are going to have to explain to me in words of one syllable what you need :lol:

The NetPBM stuff isn't installed on the server, I have put those binaries in a folder. The configuration wizard step three settings are.... and no red bits :smile:

/* Version */
$gallery->app->config_version = 30;

/* Features */
$gallery->app->feature["zip"] = 0; // (missing zipinfo -- it's optional, missing unzip -- it's optional)
$gallery->app->feature["rewrite"] = 1;
$gallery->app->feature["mirror"] = 0; // (missing mirrorSites -- it's optional)

/* Constants */
$gallery->app->galleryTitle = "Gallery";
$gallery->app->pnmDir = "/home/pigyncom/public_html/cgi-bin/netpbm";
$gallery->app->highlight_size = "200";
// optional zipinfo missing
// optional unzip missing
// optional use_exif missing
$gallery->app->movieThumbnail = "/home/pigyncom/public_html/gallery/images/movie.thumb.jpg";
$gallery->app->albumDir = "/home/pigyncom/public_html/albums";
$gallery->app->tmpDir = "/tmp";
$gallery->app->photoAlbumURL = "http://www.pigyn.com/gallery";
$gallery->app->albumDirURL = "http://www.pigyn.com/albums";
// optional mirrorSites missing
$gallery->app->showAlbumTree = "no";
$gallery->app->cacheExif = "no";
$gallery->app->jpegImageQuality = "95";
$gallery->app->timeLimit = "30";
$gallery->app->debug = "no";
$gallery->app->use_flock = "yes";
$gallery->app->expectedExecStatus = "0";
$gallery->app->sessionVar = "gallery_session";
$gallery->app->userDir = "/home/pigyncom/public_html/albums/.users";
$gallery->app->pnmtojpeg = "ppmtojpeg";

/* Defaults */
$gallery->app->default["bordercolor"] = "black";
$gallery->app->default["border"] = "1";
$gallery->app->default["font"] = "arial";
$gallery->app->default["cols"] = "3";
$gallery->app->default["rows"] = "3";
$gallery->app->default["thumb_size"] = "150";
$gallery->app->default["resize_size"] = "640";
$gallery->app->default["fit_to_window"] = "no";
$gallery->app->default["use_fullOnly"] = "no";
$gallery->app->default["print_photos"] = "none";
$gallery->app->default["returnto"] = "yes";
$gallery->app->default["showOwners"] = "no";
$gallery->app->default["albumsPerPage"] = "5";
$gallery->app->default["showSearchEngine"] = "yes";
$gallery->app->default["useOriginalFileNames"] = "yes";
$gallery->app->default["display_clicks"] = "yes";
$gallery->app->default["public_comments"] = "yes";

I really think that diskquota error is a red herring. I just uploaded a few .mp3s there to see if they would stream OK. They upload and I can play them.

/me looks perplexed

Thanks for taking the time.

 
TheWatcher
TheWatcher's picture

Joined: 2002-08-21
Posts: 120
Posted: Fri, 2002-08-30 05:31
Quote:
>>Will you be able to provide the diagnostic page? So we can see something else here... personally this is the first time I heard about disc quota error. I think bharat will be able to assist us here .<<

If you mean the diagnostics from phpinfo you van read from http://www.pigyn.com/phpinfo.php bit much to post here.

The error message from the install is as above posting.

If you mean some otyher diagnostic output, I'm afraid you are going to have to explain to me in words of one syllable what you need :lol:

I really think that diskquota error is a red herring. I just uploaded a few .mp3s there to see if they would stream OK. They upload and I can play them.

/me looks perplexed

Thanks for taking the time.

No, I'm referring to gallery diagnostics e.g. http://www.yourID.info/gallerypath/setup/diagnostics.php , from here you will be able to check something else.

 
Gurberly

Joined: 2002-08-24
Posts: 7
Posted: Fri, 2002-08-30 09:40
Quote:
No, I'm referring to gallery diagnostics e.g. http://www.yourID.info/gallerypath/setup/diagnostics.php , from here you will be able to check something else.

Yes I can get to there, what do you need to see/know?

Incidentally, this is the same info I refered to ealier and can be viewed if needs be at this link http://www.pigyn.com/phpinfo.php

The session test returned a session number

I can't do the the NetPBM test until Gallery has been installed.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-08-31 18:33
Quote:
I really think that diskquota error is a red herring. I just uploaded a few .mp3s there to see if they would stream OK. They upload and I can play them.
Thanks for taking the time.

It may be a red herring, but unfortunately if PHP can't create the directory then Gallery isn't going to work. Try writing a php script to make a directory and see if that works. Put this in foo.php:

<?php
mkdir("/PATH/TO/ALBUMS/.users");
?>

See if that has the same problem. If it does, then you should talk to your ISP and see if they have any clues because it's a configuration issue on your server.

-Bharat

 
Gurberly

Joined: 2002-08-24
Posts: 7
Posted: Sun, 2002-09-01 16:04

Hi chaps

Just to say thanks for looking and the suggestions. No surprises but
<?php
mkdir("/PATH/TO/ALBUMS/.users");
?>
works on one account and not the other :sad:

At least I can go the the host now with a very simple make directory script and say this works here (account A), but not here (account B)... please Mr Hosting Company, explain why?

Once again thanks. If I get any feed back from the hosts, I'll pass it on to you in case some other user has similar problems.

Thanks
G