Jump to content

jacob lee's Content

There have been 20 items by jacob lee (Search limited from 20-October 17)

By content type

See this member's

Sort by                Order  

#6667 cake php install

Posted by jacob lee on 18 August 2008 - 11:52 PM in PHP

make your .ataccess files which is located in www folder like:

AllowOverride All
Options Indexes Includes FollowSymLinks
Order allow,deny
Allow from all

or you can delete it!

your configuration of www folder is in apache/conf/httpd.conf already.

#6602 Problem creating image with text

Posted by jacob lee on 09 July 2008 - 08:44 PM in PHP

As RIC said, the only thing you need is
$font = 'C:\WINDOWS\Fonts\arial.ttf';
and copying the font to your script is not need.

works fine. tested with the fresh uniformserver 3.5.

ps: if you have the png file already please delete it first and test again.

#6598 How to config CGI

Posted by jacob lee on 08 July 2008 - 08:06 PM in Perl

does test.cgi exist in "/udrive/cgi-bin" folder? the error log says you do not have the script file in "/udrive/cgi-bin" folder.

#6594 Why double "B"oard?

Posted by jacob lee on 08 July 2008 - 05:13 AM in Off-Topic

I see. I'm not english speaking. I'm learning english... thanks. curiosity solved.

#6592 Why double "B"oard?

Posted by jacob lee on 07 July 2008 - 11:48 PM in Off-Topic

I'm just wondering why double "B"oard is used :) . The Uniform Server BBoard. Is there any reason for that? :)

#6591 How to config CGI

Posted by jacob lee on 07 July 2008 - 10:07 PM in Perl

what is need is error logs when the url is http://localhost/cgi-bin/test.cgi
not http://localhost/cgi-bin/

#6584 How to config CGI

Posted by jacob lee on 05 July 2008 - 08:21 AM in Perl

internal server error shows you have a problem with your apache configuration file(httpd.conf).

the original uniform server has no problem running your code.

open your httpd.conf(/udrive/usr/local/apache2/conf/httpd.conf) and check your cgi-bin configuration.
it should much like

ScriptAlias /cgi-bin "/cgi-bin/"

# "C:/Program Files/Apache Group/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory "/cgi-bin/">
  AllowOverride All
  Options ExecCGI

BUT if you have no problem with your first page of uniform server and can shutdown your server using your admin panel page then there might be another problem. check your apache log file also.

#6582 How to get rid of that 'beep' sound?

Posted by jacob lee on 04 July 2008 - 11:27 PM in Uniform Server - Windows

I've changed pskill.exe to pv.exe a long time ago and I can't remember hearing beep sound after that.


#6581 Starting without Extra Drive

Posted by jacob lee on 04 July 2008 - 10:31 PM in Uniform Server - Windows

using %CD% we can do a lot of things.

open cmd.exe and type "echo %CD%". it will show like "C:\Documents and Settings\jacob lee"

type "echo %CD:~0,1% then it will show "C"

so we can change "set Disk=h" to:
set Disk=%CD:~0,1%

wow, I'm a Junior member!

#6552 phpMyAdmin Error

Posted by jacob lee on 01 July 2008 - 12:22 AM in Uniform Server - Windows

You are right. 100% agree. my only concern is why the error message gives double directory separator. that's it.

#6551 how to include a switch statement

Posted by jacob lee on 01 July 2008 - 12:12 AM in Programming & Web Design

RIC: the grammar using endswitch is right.

override: I think you will solve this with this code:
$i = $_GET['i'];

then if you use "include(test1.php?i=1);" in your test.php then you will see "i equals 1" as a result.

#6549 phpMyAdmin Error

Posted by jacob lee on 30 June 2008 - 11:55 PM in Uniform Server - Windows

open(/tmp/\\sess_ov4uim9hrsfg8mod07sqomt2q6, O_RDWR) failed: No such file or directory
it might be the configuration of temporary file path is wrong. /tmp/sess... or /tmp\\sess... is right but /tmp/\\sess... has double directory separator.

#6547 Uniform Server ++

Posted by jacob lee on 30 June 2008 - 11:29 PM in Uniform Server - Windows

So you made your own. I don't think it should called Uniformserver++.

I have my own windows-folders style uniformserver. still I respect the owner of uniformserver. because of that reason when I started the firbird support project I made it adopted by the original uniformserver also. Yours is quite complicated and far from simplity.

the idea of making uniformserver better is good as long as we respect the original work.

#6489 Firebird support

Posted by jacob lee on 06 June 2008 - 10:43 PM in Open Discussion

Can you please post this to the wiki?


I would appreciate it a LOT! :) Thanks.

Here you can see: http://wiki.uniforms...alling_Firebird

There will be some typos and poor grammers please correct them.

#6472 Firebird support

Posted by jacob lee on 03 June 2008 - 08:01 PM in Open Discussion

One more thing needed.

If you encounter 'too many open links(0)' error or 'Undefined service gds_db/tcp' error then
add the following line to %SystemRoot%\system32\drivers\etc\services
gds_db		   3050/tcp						   #InterBase Server

or use my php:

// Installs gds_db port to services file

$system_root = getenv('SystemRoot');

$service_file = $system_root.'system32'.DIRECTORY_SEPARATOR.'drivers'.DIRECTORY_SEPARATOR.'etc'.DIRECTORY_SEPARATOR.'services';

$lines = file($service_file);

foreach ($lines as $line) {
	if (strpos($line, 'gds_db') !== false) {
		exit('gds_db port is already installed.');

$fp = fopen($service_file, 'a');

fwrite($fp, "\r\ngds_db		   3050/tcp						   #InterBase Server");


echo "gds_db port is successfully installed.";


actually I changed my code to check gds_db port whenever I start the server and install gds_db if it is not installed.

#6383 SlimFTPd (V3.181)

Posted by jacob lee on 13 April 2008 - 11:04 PM in Plug-Ins Support

Now I think it might be a wrong warning. I tested original slimftpd.exe version 3.181 it got the same warning. the other files are not version 3.181. the uc_slimftpd provides version 3.1.6. I'm sorry.

#6379 SlimFTPd (V3.181)

Posted by jacob lee on 12 April 2008 - 09:37 AM in Plug-Ins Support

Now the server is quickened!

Any updated and mainstream virus scanner shows it HAS NO virus.
Avira AntiVir,

So: Update your virus definition files, and in case you use any HEURISTIC features, dont set them on ULTRA / HIGH or alike. btw, if you dont trust it, replace the programm files in it with the original from http://sf.net/projec...?group_id=53691
(any1 willing can do a md5 hash compare. i asure you, that heuristics is a common problem for virus detection.)

my voiceflux was also listed on the infacted files list. after i send it to avg, avira - the problem is gone :-) well anyhow.
use it or dont. i just thought id share, since i am working on AVC and try to turn everything into an AVC compatible plugin, as AVC will probably included, if i got the captain right. ;-)

Sorry to bother you too but still I got the same warnning after I download and unzipped it: Trojan.Genlot.ALM
the file is \usr\local\SlimFTPd\SlimFTPd.exe

the antivirus program that I use is a korean program which uses bitDefender version 9 engine which is regarded as one of top class engines.

I don't know if this is wrong warning or not but whenever I try to download slimftpd and use it from anywhere except the link I've got no problem.

#6356 SlimFTPd (V3.181)

Posted by jacob lee on 31 March 2008 - 11:40 PM in Plug-Ins Support

you might check out http://bananaacid.de.vu/?slimftpd (extract to w: and change pw. done)

it is a little more tweaking and integration. no big deal yet. will include an admin-panel config page later. uses AVC and has a better directory structure.

if you dont care about version checking (AVC) and want to have it in a basic folder, stick to the one posted here. (is simpler)

The zip file has troian virus in it.

#6335 Firebird support

Posted by jacob lee on 23 March 2008 - 05:52 PM in Open Discussion

Right! I forgot to mention that!. and if any of you install any previous firebird as a service already, then shutdown the firebird server and delete gds32.dll in system32 and copy the new fbclient.dll to php folder and copy it again as a name "gds32.dll" for compatibility.

thanks for mention that!.

#6332 Firebird support

Posted by jacob lee on 23 March 2008 - 07:37 AM in Open Discussion

Recently I just had success on installing Firebird on the uniform server. If you want to use firebird as your database engine this article might give you a method if you don't know how to.

1. download firebird server uninstall version and uncompress the zip to the uniform server\udrive\usr\local and change the newly created folder name to firebird.

2. set folder where you save firebird database files. I set up like this: \udrive\var\firebird

3. open start_server.bat and find a line like:
start \usr\local\mysql\bin\mysqld-opt.exe --defaults-file=/usr/local/mysql/bin/my-small.cnf

4. under that line write down:
start \usr\local\firebird\bin\fbserver.exe -a
(it means we run firebird as an application not a service)

5. save the file.

6. check whether you have php_interbase.dll in your php extension folder. if not you have to get it from php.net. if you want to use pdo then you need php_pdo_firebird.dll also.

7. open php.ini and find extension option and add: extension=php_interbase.dll
if you want to use pdo then add also: extension=php_pdo_firebird.dll

8. add to php.ini:
ibase.allow_persistent PHP_INI_SYSTEM
ibase.max_persistent PHP_INI_SYSTEM
ibase.max_links PHP_INI_SYSTEM
ibase.default_db PHP_INI_SYSTEM
ibase.default_user PHP_INI_ALL
ibase.default_password PHP_INI_ALL
ibase.default_charset PHP_INI_ALL
ibase.timestampformat PHP_INI_ALL
ibase.dateformat PHP_INI_ALL
ibase.timeformat PHP_INI_ALL

9. "Strings in Firebird are delimited by a pair of single quote (apostrophe) symbols", so if you want convenience change the value of "magic_quotes_sybase" to "On"

10. save php.ini

11. open stop_server.bat and find the line:
udrive\home\admin\program\pskill.exe Apache.exe c

12. add under that line:
udrive\home\admin\program\pskill.exe fbserver.exe c
(there is no way except we shutdown the server by using the tray icon. so we use pskill to kill the process by force.)

13. download the ibWebAdmin from sourceforge.net and unzip to ..\udrive\home\admin\www

14. open ibWebAdmin\inc\configuration.inc.php and change some values like:

define('BINPATH', '/usr/local/firebird/bin/');
define('SECURITY_DB', '/usr/local/firebird/security2.fdb');
define('TMPPATH', '/tmp/');

define('DEFAULT_PATH',	'/var/firebird/');
=> for here we created \var\firebird folder!

define('DEFAULT_HOST',	'localhost');

define('DEFAULT_CACHE',   8192);
=> for better caching

define('DEFAULT_SERVER',  'FB_2.0');

$ALLOWED_DIRS = array('/var/firebird/',
define('BACKUP_DIR', '/var/firebird/backup/');
=> for this I created \var\firebird\backup folder!

14. save configuration.inc.php

15. open ..\udrive\usr\local\firebird\firebird.conf and change some values like:

RootDirectory = \usr\local\firebird

DatabaseAccess = Restrict W:\usr\local\firebird;W:\var\firebird;W:\var\firebird\backup

TempDirectories = /tmp

DefaultDbCachePages = 8192

(be careful when you define the DatabaseAccess, it should have the drive letter "W:", otherwise the firebird gives you error.)

16. save firebird.conf

17. open ..\udrive\home\admin\www\includes\tool.inc and find line:
<a target="_phpmyadmin" onclick="h(this);" href="<?=$apanel?>/phpMyAdmin/"><?=$US['nav-pma']?></a>

18. add next :
<a target="_ibwebadmin" onclick="h(this);" href="<?=$apanel?>/ibWebAdmin/"><?=$US['nav-ibwa']?></a>

19. open ..\udrive\home\admin\www\includes\server.inc and find line:
<a target="content" onclick="h(this);" href="<?=$apanel?>/cgi-bin/includes/lang/<?=file_get_contents("includes/.lang");?>/smysql.cgi"><?=$US['nav-smysql']?></a>

20. add next :
<a target="content" onclick="h(this);" href="<?=$apanel?>/cgi-bin/includes/lang/<?=file_get_contents("includes/.lang");?>/rfirebird.cgi"><?=$US['nav-rfirebird']?></a>
<a target="content" onclick="h(this);" href="<?=$apanel?>/cgi-bin/includes/lang/<?=file_get_contents("includes/.lang");?>/sfirebird.cgi"><?=$US['nav-sfirebird']?></a>

21. open ..\udrive\home\admin\www\cgi-bin\includes\lang\en\sserver.cgi and find:
system "/home/admin/program/uniserv.exe \"\\usr\\local\\mysql\\bin\\mysqladmin.exe --user=root --password=$password shutdown\"";
22. add next:
$res = system "\\home\\admin\\program\\pskill.exe", "fbserver.exe";

if ($res == 0){
	  system "/home/admin/program/pskill.exe fbserver.exe c";

23. save sserver.cgi

24. make rfirebird.cgi file in the same folder and the contents are:


require header;
require secure;

print "
<div id=\"main\">
<h2> Start Firebird</h2>
<h3>Starting Firebird</h3>

if ($run) {
	  if ($ENV{'QUERY_STRING'}eq"F"){
		print "Firebird server was forced to start.";
		print "<br />";

	  else {
		print <<ENDDD;
		Firebird server already running.
		<br />
		But if you think that it is mistake click on this <a href="$ENV{SCRIPT_NAME}?F">link</a>
		<br />

else {
	  print <<ENDDD;
	  Firebird server started.
	  require footer;

require footer;


sub check_Firebird(){
 	$res = system "\\home\\admin\\program\\pskill.exe", "fbserver.exe";
 	if ($res == 0){$run=1} 
	else {$run=0}

sub start_Firebird(){
 	exec "/usr/local/firebird/bin/fbserver.exe -a";

25. make sfirebird.cgi file in the same folder and the contents are:


require header;
require secure;

print "
<div id=\"main\">
<h2> Stop Firebird</h2>
<h3>Stopping Firebird</h3>

if ($run) {
	  print "Firebird server stopped.<br>";

else {
	  if ($ENV{'QUERY_STRING'}eq"F"){
		print "Firebird server was forced to stop.";
		print "<br>";

	  else {
		print <<ENDDD;
		Firebird server was not running.
		<br />
		But if you think that it is a mistake click on this <a href="$ENV{SCRIPT_NAME}?F">link</a>
		<br />

print <<ENDDD;

require footer;


sub check_Firebird(){
 	$res = system "\\home\\admin\\program\\pskill.exe", "fbserver.exe";
 	if ($res == 0){$run=1} 
	else {$run=0}
sub stop_Firebird(){
	  system "/home/admin/program/pskill.exe fbserver.exe c";

26. open \udrive\home\admin\www\includes\lang\en.php add in the code:
'nav-rfirebird' => 'Run Firebird',
	'nav-sfirebird' => 'Stop Firebird',

	'nav-ibwa' => 'ibWebAdmin',
Still you need to learn how to use firebird becuase it is quite different from mysql.