Jump to content
The Uniform Server Community
kethd

3.5: apanel won't start under Win98SE

Recommended Posts

First-timer can't get started.

Using Uniform Server 3.5-Apollo and Firefox 2.0.0.11 under Win98SE.

APANEL fails at launch -- displays in browser:

 

 

Warning: include(W:/home/home/admin/www/includes/lang/en.php) [function.include]: failed to open stream: No such file or directory in W:\home\admin\www\index.php on line 13

 

Warning: include() [function.include]: Failed opening 'W:/home/home/admin/www/includes/lang/en.php' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear;/home/admin/www/plugins/pear/PEAR') in W:\home\admin\www\index.php on line 13

 

Warning: file_get_contents(W:/home/home/admin/www/includes/.lang) [function.file-get-contents]: failed to open stream: No such file or directory in W:\home\admin\www\index.php on line 15

 

Warning: Cannot modify header information - headers already sent by (output started at W:\home\admin\www\index.php:13) in W:\home\admin\www\index.php on line 17

 

What is wrong? How to fix? Is anyone running 3.5 under Win98SE with success?

 

At first, had this basic error: Out of environment space

Fixed that by adding this line to CONFIG.SYS: SHELL=C:\COMMAND.COM /E:4096 /P

 

Seems certain that the 3.5 software uncompressed OK. Took same files to the library on USB stick, launched under XP, apanel opened fine.

 

I thought this would be the easiest way to try out PHP, but now I wonder... Thank You for any help/advice!

Share this post


Link to post
Share on other sites

I think you may need to increase the environment space even more to say:

SHELL=C:\COMMAND.COM /E:8192 /P

 

Try that first. :(

 

The real problem the environment variable %Disk% is not being picked up n the following:

File: config.inc.php

Located in folder: *\Uniform Server\udrive\home\admin\www\includes

 

Open this file and locate these lines:

 

$drive = $_ENV['Disk'] . ":";

if($drive == ":"){

$path = realpath(dirname($_SERVER['config.inc.php']));

$pathArray = explode("\\",$path);

$drive="$pathArray[0]/$pathArray[1]";

}

$usr = "$drive/usr";

 

There is an error in the code that is normally never seen however because the variable is not being passed in you situation this error is highlighted. Anyway you have two options:

 

Either:

 

1) Change this line: $drive="$pathArray[0]/$pathArray[1]";

To: $drive="$pathArray[0]";

2) Alternatively add the line shown in bold:

 

$drive = $_ENV['Disk'] . ":";

if($drive == ":"){

$path = realpath(dirname($_SERVER['config.inc.php']));

$pathArray = explode("\\",$path);

$drive="$pathArray[0]/$pathArray[1]";

}

$drive=”W:”;

$usr = "$drive/usr";

 

If you look at the paths where the errors occour you will notice there is a double home

W:/home/home/admin/www/includes/lang/en.php clearly that does not exist hence..

:)

All the best

Ric B)

Share this post


Link to post
Share on other sites

Well quick dirty fixes always come back to haunt. This is no exception I think the combined bug fix see Wiki will resolve this:

 

http://wiki.uniformserver.com/index.php/Bu..._config_inc_php

 

All the best

Ric :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...