-
Posts
1,516 -
Joined
-
Last visited
Everything posted by Ric
-
You never explained why you want to do this. Apache obtains its time reference from the PC clock. In theory you could change the PC clock hence change Apache time. It is neither desirable nor a good idea to do this, will cause havoc with other programs. If all you want to do is change-displayed time to a user use PHP for example: Save this as test.php it effectively locates your server in a different time zone, however in reality it is referenced to your PC time. <p>Display local time</p> <?php print date("H:i") ?> <p>Display time difference + 5hours</p> <?php $diff_to_localtime=5; $new_var=date("U")+$diff_to_localtime*3600; print date("H:i", $new_var); ?> <p>Display time difference - 5hours</p> <?php $diff_to_localtime=5; $new_var=date("U")-$diff_to_localtime*3600; print date("H:i", $new_var); ?> <?php putenv("TZ=America/Chicago"); ?> <p>Display local time America/Chicago </p> <?php print date("H:i") ?> <br> <?php putenv("TZ=Australia/Melbourne"); ?> <p>Display local time Australia/Melbourne</p> <?php print date("H:i") ?> <br> If you want to do is echo their local time use a small JavaScript to pick up there local PC time. Not sure if that’s of any help All the best Ric
-
Unicon After finishing the mini-servers there have been a number of requests to combine these into a complete server. In addition numerous request how to update Uniform Server 3.5. Well we do listen; an upgraded version is now in beta, I must stress this is not Version 4 but has been provisionally named 3.6-Apollo2. Provisional information can be found on the Wiki http://wiki.uniformserver.com/index.php/3....2:_Introduction A spin off from the above is a new controller this has been converted to run Uniform Server 3.5-Apollo and can be downloaded from the Wiki. http://wiki.uniformserver.com/index.php/Unicon:_Introduction I would like to express my thanks to DannyH for beta testing the new controller on Vista and trust he does not find to may issues with 3.6 All the best Ric
-
This post cannot be displayed because it is in a password protected forum. Enter Password
-
This post cannot be displayed because it is in a password protected forum. Enter Password
-
Download the full version from: http://www.php.net/releases/ PHP Version 5.2.3 May 31 2007 Windows binary All the best Ric
-
Yep! Its not that difficult covered in this post: http://forum.uniformserver.com/index.php?showtopic=1543 All the best Ric
-
If there were a mini-server with that configuration it would be a duplication of 3.5 US 3.5 is very flexible and relatively easy to modify to run more than one instance. US 3.5 defaults: Drive W - Apache port 80 - MySQL port 3306 The following shows how to change these and give a server with the following values: Drive Z - Apache port 8080 - MySQL port 3308 1) Move server to port 8080 Start Uniform Server from Apanel click Apache Configuration link change Listen: to port 8080 click save. Stop servers. 2) Move MySQL Port from 3306 to 3308: Edit File \udrive\usr\local\mysql\bin\my-small Change two occurrences (lines 9 and 18) of 3306 to 3308 3) Edit file: \udrive\home\admin\www\phpMyAdmin\config.inc.php Change (line 38) cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port To: cfg['Servers'][$i]['port'] = '3308'; // MySQL port - leave blank for default port 4) Edit file: \udrive\home\admin\program\Close.bat Change: %Disk%:\usr\local\mysql\bin\mysqladmin.exe --character-sets-dir="/usr/local/mysql/share/charsets/" --user=root --password=root shutdown To: %Disk%:\usr\local\mysql\bin\mysqladmin.exe --character-sets-dir="/usr/local/mysql/share/charsets/" --port=3308 --user=root --password=root shutdown 5) Rename Apache file From: \udrive\usr\local\apache2\bin\Apache.exe to: \udrive\usr\local\apache2\bin\Apache_new.exe Note: Apache_new can be any name however it must be unique 6) Edit file: Stop.bat Change: udrive\home\admin\program\pskill.exe Apache.exe c To: udrive\home\admin\program\pskill.exe Apache_new.exe c 7) Edit file: Server_Start.bat Replace two occurrences (lines 13 and 28) of Apache.exe with Apache_new.exe Replace line: if "%Disk%"=="" set Disk=w With: if "%Disk%"=="" set Disk=z That’s it you can run this alongside the original US 3.5 and any mini-servers. Note: If you use phpMyBackupPro click the configuration link Change MySQL hostname* From: localhost To: localhost:3308 All the best Ric
-
The mini-servers are reduced in functionality when enabling additional features you may need to add additional modules. The above is a typical case you need to add the module: mod_autoindex.so to folder \udrive\usr\local\apache2\modules Apache loads this module using the following line: LoadModule autoindex_module modules/mod_autoindex.so Add the above to the end of section: Modules in file httpd.conf Folder: \udrive\usr\local\apache2\conf Restart the server so Apache loads the module. In your .htaacess file change this: Options Indexes To: Options Indexes Note 1: not allowed in htaccess files. Note 2: If you put .htaccess in the root folder “www” all folders bellows this will display a folder listing if no index page found. Note 3. If you place the file in folder “list” only that folder and its sub-folders are targeted. Alternative: While in httpd.conf add the following to the end of section: Access control Options Indexes remove the line “Options Indexes “ from your .htaccess file This will target only folder “list” and it’s sub-folders If you wish to target the root and all sub-folders just add the line to this section as shown: Options Indexes AllowOverride All Order allow,deny Allow from all One final note, to obtain mod_autoindex.so check out the support page All the best Ric
-
Hi Danny, I think the task is difficult unless you understand how each application works. However that said you could always use a kludge! I am assuming this is on an Intranet and security is not an issue. You create a single auto-login page and direct each user to it. Alternatively create one for each user with individual name and password. The page or pages have the following code: <html> <body onload="document.myform.submit()"> <div style="visibility:hidden"> <form name="myform" method="post" action="login.php?ccsForm=Login" name="Login"> <input type="text" name="login" value="admin" > <input type="password" name="password" value="root66" > </form> </div> </body></html> Save as newlogin.html (any name/s of your choice) save the page or pages in folder vcalendar. Note change login name (admin) and password (root66) accordingly. When the page finishes loading it runs the JavaScript “document.myform.submit()” which automatically submits the form. The div just hides the form hence for a short time user will see a blank page. It has a number of disadvantages, what happens if a user changes password? Its hard coded, if individual pages used would become difficult to maintain for a large number of users. Anyway its food for thought and may be of use. All the best Ric
-
Skype is causing the problem a default installation uses port 80. Olajide covered this some time ago solution move Skype to another port: Skype > Tools > Options > Connections Change the port to something like 85(incoming). See Wiki for alternative solutions New Users: Problems Section All the best Ric
-
Try this: CustomLog "|/usr/local/apache2/bin/rotatelogs.exe /usr/local/apache2/logs/access.%Y.%m.%d 86400" combined All the best Ric
-
I recently had an interesting experience where a friend had password protected his USB stick and forgot his password. After five attempts he was locked out and his USB stick was rendered useless. I tried several recovery programs with little success until I found this one: Undelete Plus v2.97 Managed to recover all his files. The above is currently free, not sure for how long, certainly worth popping into the old toolbox. With the one Danny recommends you now have two you can try. Remember you only need to recover the work you lost, US can be re-installed hence not an issue. Real problem if you have written any new data this may have overwritten the file or files, which will render them irrecoverable. A file may be split, if this is the case try a deep scan assuming tools have this function. You may get strange segment file names; you can always rename these. With split files you will need to patch the segments together. All the best Ric
-
There are two methods: 1) Restart your PC this removes the virtual drive. 2) If you have manually killed the processes (Apache.exe and mysqld-opt.exe) To kill the virtual drive open a command prompt (start > run type in cmd and click OK) and type the following: subst w: /d Note: If you changed the drive letter replace w: with the one you used. All the best Ric
-
Hi joejac Thanks for the feedback glad you have US up and running. On reading your post it does seem to confirm Vista has a problem with Zip files. I had a Goole around and it certainly is not an uncommon problem. I was unable to confirm if a patch is available, some posts are very recent, hence indicate probably not. Just to confirm, Uniform Server (zip’s and exe’s) do not install anything into the registry. They are just different archive methods, my preference is for self-extracting archives simply because they make overlaying files (updates) easier. Anyway I digress, I am a portable 7-Zip convert download it from PortableApps. Well worth keeping on a memory stick its power is in supported formats: Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM, MSI, WIM, Z, CPIO, RPM, DEB and NSIS Self-extracting capability for 7z format – After compression it includes an extraction utility, even with this, compared to the zip format, files are extremely small for example UniServer3_5.exe (approx 7M) UniServer3_5.zip (approx 14M). All the best Ric
-
I was wondering have you tried the exe download? It’s a self-extracting archive i.e. complete with the 7-Zip extractor it creates a folder Uniform Server and extracts all Uniform Server files to it. There is no problem with the zip file hence may be a Vista issue at least the above would allow you to confirm this. All the best Ric
-
After publishing the mini-server I decided to update the combined bug fix downloadable from the Wiki. New page added Apanel not displayed Problem: In certain situations Apanel is requested before Apache is running resulting in browser error message "Failed to connect" Solution: Before requesting the Apanel page wait for Apache to start using a delay loop Combined bug fix file now updated to Uc_bug_fix_7.exe I always recommend applying the fix to a fresh install of Uniform Server; however having a full installation of Xoops around ran it on that with no adverse effects. I do recommend you first try the fix on a copy of your server. All the best Ric
-
Go to Apanel: http://localhost/apanel/ Under Configurations (Left menu) Select PHP Configuration All the settings you require can be found on the page displayed. All the best Ric
-
I like SlimFTPd it is extremely easy to use however it lacks SSL support I recently had a requirement for a secure FTP server and tried FileZilla. To my surprise its not only easy to use but architecturally very flexible because of this investigated its portability and use as a plugin for Uniform Server. If you are interested a write-up and download can be found on the Wiki Portable FileZilla FTPd All the best Ric
-
Mini Servers Released The mini-servers are lightweight servers designed to support tutorials on the Wiki and to demonstrate the functionality of some common packages such as MediaWiki and Wordpress (See Wiki Mini Servers: Ready To Go). In total there are twenty variants, however because of duplication is effectively reduced. With the exception of “ready to go servers” each server has a service and portable counterpart. Portable servers have an enhanced control architecture that provides automatic free drive letter detection and diagnostics. All mini-servers have the capability to run alongside each other and Uniform Server. The only restriction Uniform Server must be started first and stopped last, other than that you can run all the servers at the same time should you wish. All mini-servers have been release on SourceForge. Wiki support pages have been updated accordingly. Wiki: Support Pages Download: SourceForge Mirrors On behalf of Uniform Server development team. Enjoy
-
I tried a few links, and agree with Danny. It looks like the external links slowdown your pages. In particular video links seem the worst. I am not sure if frame sets exaggerate the problem. All the best Ric
-
I think it could be worth looking at your log files for a clue! All the best Ric
-
Password recovery: Method 1 a) Close servers Open file mysql_password located in folder *\Uniform Server\udrive\home\admin\www c) Delete the old password and enter your new password. d) Start the servers. From apanel select MySQL Server Configuration the new password will be picked up if not enter your new password e) Finally click the change button and all should be OK. Note: The same password must be used in each of the above steps. If the above fails use method 2 Method 2: Reset Uniform Server to a know state. (default) or to a new password. Step 1) phpMyAdmin - Set root password To access the MySQL server phpMyAmin uses the root password this it picks up from a file. Before doing anything else edit the file to contain the new password (root) as follows. 1. Stop the servers 2. Open the file mysql_password in a text editor 3. File is located in folder: *\Uniform Server\udrive\home\admin\www 4. Delete the contents and enter new password: root (do not press enter otherwise you add a line feed) 5. Save file Step 2) MySQL - Set root password The MySQL server requires restarting with skip grant table option set, this bypasses any security allowing access to the server. A new password is set and grant tables updated. The following method uses two command windows and task manger before following each step start the servers using Server_Start.bat I will assume the server is running on drive W. Kill process: Open windows task manager by pressing ctrl, alt and del keys together. In the window that opens click on the Process tab (default) scroll up or down and locate the file mysqld-opt.exe right click on this and select End Process click Yes to confirm kill process. Restart MySQL server: The MySQL server requires restarting (from MySQL console) with skip grant table option set as follows: 1. Start a command prompt: (Start > click on Run > type cmd click OK) 2. Type following lines into the command prompt: W: cd usr\local\mysql\bin mysqld-opt --skip-grant-tables --user=root Note: Do not copy and paste you must type it in. 3. Note the flashing cursor indicating server is running. Minimise this window (do not close it). Step 3) Set Password and Update grant tables: Start a second command prompt set new password (root) and update grant tables as follows: 1. Start a command prompt: (Start > click on Run > type cmd click OK) 2. Type following lines into the command prompt: W: cd usr\local\mysql\bin mysql USE mysql; UPDATE user SET password=password("root") WHERE user="root"; flush privileges; exit 3. That's it finished. Step 4) Final steps (Kill process and restart): 1. Kill the process mysqld-opt.exe see section above, close command prompt windows. 2. Stop the servers using Stop.bat close your browser. 3. Start the servers using Server_Start.bat 4. From apanel run phpMyAdmin. Under Uniform Server check Server version: 5.0.41-community-nt Confirms the update was successful. Resetting the server to a known condition requires a large number of steps if you do make a mistake repeat all steps from the beginning. All the best Ric
-
Can you list all the steps you used to change the MySQL password? All the best Ric
-
I tried the following, it worked, and unfortunately when I restarted the PC it was back to square one. Hence I am afraid not a solution. (XP-Home SP2) 1) Install clean version of US 2) Apply bug fix 6 3) Go to plugins Services and run Run.bat installs US as service 4) Go to folder c:\UniServerX.X and run Uninstall.bat 5) Navigate to folder C:\UniServerX.X\usr\local\mysql\bin Rename file mysqld-opt.exe to mysqld-nt.exe 6) Navigate to folder C:\UniServerX.X edit Install.bat as follows: Change line : copy usr\local\mysql\bin\my-small.cnf c:\my.cnf To: copy usr\local\mysql\bin\my-small.cnf c:\my.ini Change line: c:/UniServerX.X/usr/local/mysql/bin/mysqld-opt.exe --install To: c:/UniServerX.X/usr/local/mysql/bin/mysqld-nt.exe --install MySQL 7) Still in folder C:\UniServerX.X edit Uninstall.bat as follows: Change line: usr\local\mysql\bin\mysqld-opt.exe --remove To: usr\local\mysql\bin\mysqld-nt.exe --remove Change line: del C:\my.cnf To: rem del C:\my.ini Note: This line is rem'ed out hence my.ini is not deleted its there as a reminder. It needs to remain so MySQLAdministrator can pick it up! When you uninstall US and delete it you need to manually remove this file. 8) Run Install.bat check both servers are running Run Uninstall.bat this stops and removes servies ready for the next step 9) Run MySQLAdministrator.exe DO NOT login. The button, bottom tight displays "Cancel" Press key "ctrl" the button will now display "Skip" With "Skip" displayed left mouse click on it. 10) Service Control (top left) is highlighted if not click on link. 11) To the right click of "Configure Service" tab. 12) All the boxes are greyed out, at the bottom of this page click "Install new service" 13) In the pop-up click OK (default Service name MySQL) 14) Un-check "Launch MySQL server on system start" Navigate to Config Filename (displayed in red) delete every thing in this box and add c:\my.ini (changes to black) Navigate to "Path to binary" again displayed in red. Click button to the right labeled "..." Use this to navigated to the binary C:\UniServerX.X\usr\local\mysql\bin\mysqld-nt.exe Click on "Apply Changes button" Close program File > Close 15) Navigate to C:\UniServerX.X and run Install.bat 16) Run MySQLAdministrator.exe and login At this point thought I had cracked it, after restarting PC it failed, back to square one! I think the real problem is with error checking it expects to find mysqld-nt.exe and my.ini any deviation and it aborts. I have no idea where it stores its configuration data. The above may be of use or at least give a starting point. All the best Ric
-
Hi Danny I assume the double login is referring to one for Joomla and the second is the folder protection. Joomla’s login is completely separate and hard coded. I can’t think of a way to resolve this double login. It’s probably best to live with it. All the best Ric