Advertisement:

Author Topic: Installation problem  (Read 8257 times)

proone

  • Newbie
  • *
  • Posts: 6
Installation problem
« on: April 11, 2010, 12:03:14 am »
Hi. I`m having some problems installing OSClass. I upload the script to my hosting, rename config-example.php to config.php and make it writable (CHMOD 777), make oc-content/uploads writable (CHMOD 777) and click PROCEED WITH THE INSTALLATION.
At the next page, I enter my db name, db username, db password, hostname and prefix (which are correct - tested them), and click SUBMIT.

After this, I get a blank page with the url hostname/oc-installer/index.php
I attached a snapshot of it to this post.

Why does this happen.
By the way, I`m installing it on a subdomain, but I don`t think that this is a problem.

My hosting is a VPS running CentOS with the latest cPanel install.

Max P

  • Newbie
  • *
  • Posts: 19
Re: Installation problem
« Reply #1 on: April 12, 2010, 07:11:41 pm »
Hi proone,

Do you have somewhere in cPanel log files? That would be very helpful...

proone

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #2 on: April 13, 2010, 01:31:35 pm »
Which log? cPanel has a lot of them.

proone

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #3 on: April 13, 2010, 01:42:57 pm »
My subdomain log and alos my domain log, from "access-logs" in my ftp`s home directory are empty. So no problems there.
I also checked most of cPanel`s own logs (access_log, build_locale_databases_log, cpdavd_error_log, error_log, license_log, login_log, panic_log, safeapacherestart_log, stats_log and tailwatchd_log) and the only entry to the subdomain I'm trying to install OSClass in these files is in error_log, for some addon domains that I`ve forgot to delete.
Where else should I look ?

proone

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #4 on: April 13, 2010, 02:08:54 pm »
Ok, so after some more searching, I`ve found this in Apaches`s suexec_log

Code: [Select]
PPHP Warning:  Invalid argument supplied for foreach() in /home/djlove/public_html/ad/oc-installer/step2.php on line 34
PHP Fatal error:  Call to undefined function osc_dbConnect() in /home/djlove/public_html/ad/oc-installer/step2_logic.php on line 10

step2.php`s line 34 says:
Code: [Select]
<?php foreach($categories as $c): ?>
<option value="<?php echo $c['pk_i_id']; ?>" selected="selected"><?php echo $c['s_name']; ?></option>
<?php endforeach; ?>

and step2_logic.php`s line 10 (starting from line 9) says:
Code: [Select]
try {
osc_dbConnect($dbHost, $dbUser, $dbPassword, 'mysql');
osc_dbExec('DROP DATABASE IF EXISTS ' . $dbName);
osc_dbExec('CREATE DATABASE ' . $dbName);
osc_dbClose();
} catch (Exception $e) {
// It was just a try and it can be ignored
}

Max P

  • Newbie
  • *
  • Posts: 19
Re: Installation problem
« Reply #5 on: April 13, 2010, 05:01:33 pm »
weird... can you tell me please which OSClass version are trying to install?

prescottw

  • Newbie
  • *
  • Posts: 2
Re: Installation problem
« Reply #6 on: April 13, 2010, 10:04:38 pm »
Had same issues exactly.  Tried to install several attempts. Am very optimistic though still.

-prescottw

proone

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #7 on: April 13, 2010, 11:58:13 pm »
Trying to install the lastest version, 1.0 gamma.

Max P

  • Newbie
  • *
  • Posts: 19
Re: Installation problem
« Reply #8 on: April 14, 2010, 12:23:05 pm »
Ok, so after some more searching, I`ve found this in Apaches`s suexec_log

Code: [Select]
PPHP Warning:  Invalid argument supplied for foreach() in /home/djlove/public_html/ad/oc-installer/step2.php on line 34
PHP Fatal error:  Call to undefined function osc_dbConnect() in /home/djlove/public_html/ad/oc-installer/step2_logic.php on line 10

step2.php`s line 34 says:

I'm not sure why it's happening, because I'm not able to reproduce this error with gamma release. My obvious guess is that osc_dbConnect is trying to connect to mysql db and check if there is a 'mysql' database inside it, which is not very good because not every user has access to all databases... To make sure, can you please connect to your MySQL and see if there is a mysql database inside it? You can check with following command: show databases;

Im only guessing right now because from the message on top it looks like it can not load osclass/db.php file, alhtough it would show different error... weird.


proone

  • Newbie
  • *
  • Posts: 6
Re: Installation problem
« Reply #9 on: April 14, 2010, 06:25:43 pm »
I replaced "mysql" with $dbName, so it can acces my entry from the installer, but no luck. After that, I actually wrote my db name directly, so it wouldn`t matter what I wrote in the installer. No luck, again.
I deleted all the files and downloaded the beta version.
Had the same issue. What am I doing wrong?

As I said, my hosting is a VPS, WHM/cPanel based.
Installed more than 100 scripts on it since I have it and all worked perfectly, no erros with apache/php/mysql.

admin

  • OSClass Administrator
  • Administrator
  • Newbie
  • *****
  • Posts: 11
Re: Installation problem
« Reply #10 on: April 20, 2010, 04:33:51 pm »
Hi! Can you please try the delta version released yesterday? That error is probably solved.
Thank you,

prescottw

  • Newbie
  • *
  • Posts: 2
Re: Installation problem
« Reply #11 on: April 22, 2010, 11:28:24 pm »
Same challenges for me. Though noticeable changes to the install page... Still does not install db or submit to anything but a blank page. I am still optimistic.
-prescottw

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Installation problem
« Reply #12 on: August 03, 2010, 07:05:43 pm »
@3isi: Can you try to replace 'localhost' to '127.0.0.1'. Sometimes not recognize localhost.