Installation problems

Fixed and closed topics
Locked
reszel
User
Posts: 4
Joined: Tue Nov 11, 2008 7:56 pm

Installation problems

Post by reszel »

Hi!
I'm trying to login to my site (installed in a subfolder: /jukebox) and the following message appears:
Warning: require_once(/home/www/MySite.se/jukebox/include/config.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/MySite.se/jukebox/include/initialize.inc.php on line 65

My question is: do I have to install in the root of my domain?
If not, can I change PHP code for home directory, (and how), to remedy the above warning.

PS. My domains are located under /home/www like this:
/home/www/MySite.se
/home/www/MySite.dk
and so on.

PPS. Here is the code from initialize.inc.php:
// +------------------------------------------------------------------------+
// | Get home directory |
// +------------------------------------------------------------------------+
$directory = dirname(__FILE__);
$directory = realpath($directory . '/..');
$cfg['home_dir'] = str_replace('\\', '/', $directory) . '/';
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Installation problems

Post by wbartels »

reszel wrote: My question is: do I have to install in the root of my domain?
No

Does the following file (case sensitive on linux) exist?

Code: Select all

/home/www/MySite.se/jukebox/include/config.inc.php
reszel
User
Posts: 4
Joined: Tue Nov 11, 2008 7:56 pm

Re: Installation problems

Post by reszel »

Yes, it does. Sorry I forget to tell you that the second ERROR message looks like this:
Fatal error: require_once() [function.require]: Failed opening required '/home/www/MySite.se/jukebox/include/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/MySite.se/jukebox/include/initialize.inc.php on line 65
PS. MySite is a dummy for my real site.
reszel
User
Posts: 4
Joined: Tue Nov 11, 2008 7:56 pm

Re: Installation problems

Post by reszel »

phpinfo on this server is here: http://www.onkologen.dk/phpinfo.php
and it's the latest version of netJukebox:
$cfg['netjukebox_version'] = '5.07f';
reszel
User
Posts: 4
Joined: Tue Nov 11, 2008 7:56 pm

Re: Installation problems

Post by reszel »

Very strange! My site is up an running!(http://zxc.se/jukebox/) Maybe there was a problem with my hosting?
Sorry for taking your time :-(
Locked