-
Posts
1,516 -
Joined
-
Last visited
Everything posted by Ric
-
Try the following: 1] Enable Innodb Edit file: UniServer\udrive\usr\local\mysql\my.cnf Comment this line as shown (enables Innodb): #skip-innodb 2] Enable modules in php.ini Edit file: UniServer\udrive\usr\local\php\php.ini The first line is already enabled; add the second line as shown extension=php_pdo.dll extension=php_pdo_mysql.dll 3] Enable mod_rewrite Edit file: UniServer\udrive\usr\local\apache2\conf\httpd.conf Remove the hash (#) as shown for this line: LoadModule rewrite_module modules/mod_rewrite.so 4] Add missing php extentions Download php-5.2.9-1-Win32.zip from http://php.net/ Save and extract to any folder Copy file: php-5.2.9-1-Win32\ext\php_pdo_mysql.dll To folder: UniServer\udrive\usr\local\php\extensions Copy file: php-5.2.9-1-Win32\ext\php_pdo_sqlite.dll To folder: UniServer\udrive\usr\local\php\extensions Copy file: php-5.2.9-1-Win32\libmysql.dll To folder: UniServer\udrive\usr\local\php 5] .htaccess You need to add the following +FollowSymLinks for mod_rewrite to write new urls: Edit file: UniServer\udrive\www\.htaccess Add to line as shown: Options +ExecCGI +FollowSymLinks 6] Restart the servers and install magento All the best Ric
-
Perform a dry run on a clean install of 4.1 the following steps should work: 1] Apache did not change hence you can copy over your http.config to 4.1 2] Copy over all your site folders 3] MySQL was a significant upgrade – could be a problem area! 3a] Set the MySQL password as per 4.0 (skip if you did not change it) 3b] On 4.1 set-up users and passwords as per your 4.0 (note these have nothing to do with the application names and passwords) (skip if you are the only admin for this server) 4] MySQL databases, you have two options: 4a] I don’t think table formats changed hence a quick method is to copy over all the databases you created. (Do not copy over these two folders (databases): UniServer\udrive\usr\local\mysql\data\mysql UniServer\udrive\usr\local\mysql\data\phpmyadmin ) Copy over only the folders (databases) you created. Run the servers to see if there are any problems. 4b] Should that fail delete these databases you copied over to 4.1. Now export each database from 4.0 and import them to 4.1 using phpMyAdmin. All the best Ric
-
Can Uniform Server run on windows server 2003?
Ric replied to hawkesley's topic in Uniform Server - Windows
Oops! I think when I posted must have been suffering the Dory syndrome (2003 Disney Pixar film Finding Nemo). The dll is included in both Mona versions. Can be found in apache2\bin, Apache looks in bin first and picks-up the file hence not an issue. All the best Ric -
On a Windows machine you do not need to compile anything that’s a Unix thing. 1] However you do need to obtain a full set of binaries goto http://uk.php.net/ and download php-5.2.9-1-Win32.zip extract to any folder 2] Copy file: php-5.2.9-1-Win32\ext\php_pdo_mysql.dll To folder: UniServer\udrive\usr\local\php\extensions 3] Edit php.ini Add this line : extension=php_pdo_mysql.dll (just below line: extension=php_pdo.dll) Restart the servers. To check module installed, from Apanel select phpinfo() About halfway down the page you will see the following entry: pdo_mysql (PDO Driver for MySQL, client library version). All the best Ric
-
These links show you are not using sub-domains (no www. part) Website:Forum http://awesomecommunity.net/ Forum http://awesomecommunity.net/forum/ The .htaccess file will look like this, note Options +FollowSymLinks must be placed above RewriteEngine On Enable RewriteCond and RewriteRule use your domain awesomecommunity.com as shown. # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. Options +FollowSymLinks RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) #RewriteBase / RewriteCond %{HTTP_HOST} !^awesomecommunity\.com RewriteRule (.*) http://awesomecommunity.net/forum/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap) RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] Note: There is no need to use Vhosts, use the root folder www and create a sub-folder forum (vBulletin upload folder renamed to forum) All the best Ric
-
Can Uniform Server run on windows server 2003?
Ric replied to hawkesley's topic in Uniform Server - Windows
Mona was tested on 2003 and works fine. However being a new machine its possible the problem is a missing run time library msvcr71.dll Check the Apache log file it may provide a pointer to the issue also check msvcr71.dll is on a system path. All the best Ric -
1] mode_rewrite To get this working you need to add the following line to .htaccess (in folder www): Options +FollowSymLinks The following pages may be of use: Installing WordPress and htaccess 2] Vhosts This page is worth a read: Virtual Hosting Easiest way to create a virtual host is to use Apanel Under Configurations select Admin Virtual Host This opens a new page: In the text box “Name: (ex. newhost.localhost)” enter the address of your site that’s what a user would type into a browser to access the site e.g www.fred.com In the text box “Path to DocumentRoot: (ex. c:/www/newhost)” enter the path to a folder that you want to make root for that site. The path can be relative or absolute as shown c:/www/newhost. A relative path makes it portable hence use something like /www/fred After clicking Create Vhost, a virtual host entry is create in Apache’s configuration, an entry 127.0.0.1 www.fred.com is created in the hosts file and a new folder created in www named fred (root folder) where you put the site. Note 1: Repeat for each virtual host you wish to create. Note 2: After creating all virtual hosts you must restart the servers for them to become effective. All the best Ric
-
Search the Wiki for cron you will find it covered there. These two pages will get you started with portable cron. Installing Drupal and Installing Moodle All the best Ric
-
All name password pairs are set to root root MySQL password is root Note 1: Set a new MySQL password using Apanel do NOT use phpMyAdmin otherwise you will need to read this page: Lost Password Note 2: Mona automates password recovery: Security & passwords All the best Ric
-
The following example may be of help! I am using test.bat replace it with your .exe Save the following test.bat to any folder (it does not need to be in server root) for example c:\test\test.bat It’s a simple batch file that just echos a few lines, @echo off if "%1"=="param.wpf" goto :REV echo 123 echo 456 echo 789 goto :END :REV echo 987 echo 654 echo 321 :END exit Save the following test.php to root folder www <?php $output = `c:/test/test.bat param.wpf`; echo " $output"; $output = `c:/test/test.bat`; echo " $output"; $output = `dir *.php`; echo " $output";?> Note: The $output’s are not using quotes but backticks, in other words they are running system commands. The first demonstrates passing a parameter to the batch file (executable). Second just runs the batch file with no parameters. The last one demonstrates running a standard dos command and passing a parameter (if your executable is on a system path there is no need to specify a path) This PHP page may be of use Al the best Ric
-
The file can be found in folder: C:\Windows\System32\Drivers\etc It should contain the following two entries: 127.0.0.1 localhost ::1 localhost The last line is for IPv6 Note a browser checks the “hosts” file to resolve addresses i.e localhost resolves to 127.0.0.1 if it cannot resolve this makes a request to a DNS server. All the best Ric
-
I have given this some thought, tried to simulate your results even checked the code. All to no avail hence no bright ideas, dim about five watts. All the best Ric
-
It looks as if your set-up is OK! You receive a response from the server. User root has been locked down for local access only, if you are not connected to the Internet set root privilege using phpMyAdmin to have a “Host” of any. Preferably create a new user with restricted privileges and to have a “Host” (note set this when setting name and password) of any. Set this user to have access to the database you wish to use. Check out this Wiki page (7.1 Add new user) page for details. All the best Ric
-
Hi Jeff, Thanks for the feedback. Originally I thought your scripts were failing hence the request for a small test script, obviously not the problem since it was a loading issue. What I do not understand are the missing files. I downloaded both zip and exe files from Sourceforge both contain the appropriate files in Apache bin. Have no idea why these are missing from your download. Assuming the files are missing I can explain why the server runs on your laptop and not on the desktop. When the server starts it looks in Apache bin for the files if not found looks along the Windows paths for them. Note the first ones found are used. I conclude your desktop is a clean machine while the laptop has run either another server or some software that has placed these files in the Windows path. Uniform Server does not copy any files to the Windows path (prevents any conflicts) this I use to great advantage when testing. For example I know on my Windows path there are “g” versions of these files while Mona uses “j” versions. From Apanel select phpinfo(), scan down the pages to the “curl” section, should show its enables and what version of of OpenSSL is being used for Mona it’s OpenSSL/0.9.8j Thought the above information may be of use. All the best Ric
-
They should be placed in folder UniServer\udrive\usr\local\apache2\bin I would be interested in the code that failed can you post a small test script? All the best Ric
-
Run from CD without copying database
Ric replied to metallithrax's topic in Uniform Server - Windows
I found your post interesting because I am currently working on a new plugin for Mona, will add this feature as a user option. However the following is a solution for 3.5 note you do need to write some small temp files to c drive. To prevent copying that large database these are the changes required: Assumes you are using uscd4.exe plugin 1] Prevent copying database: Edit File: udrive\plugins\uscd2\uscd\new_Server_Start.bat Delete the following lines: :Copy complete database XCOPY "%CD%\udrive\usr\local\mysql\data" %ustemp%\mysql\data\ /s /q [/code] 2] Prevent update MySQL path 1 Edit file: udrive\plugins\uscd2\uscd\cd_mode.pl Change this block of code: #===MySQL @mpg=(); # clear array push(@mpg,"../../usr/local/mysql/bin/my-small.cnf"); # filepath push(@mpg,"datadir = \"/usr/local/mysql/data/\""); # search for push(@mpg,"datadir = \"$tpath/mysql/data/\""); # replace with push(@mpg,"tmpdir = \"/tmp\""); # search for push(@mpg,"tmpdir = \"$tpath/mysql/tmp\""); # replace with update_files(@mpg); # search replace save file #=== END MySQL [/code] To: #===MySQL @mpg=(); # clear array push(@mpg,"../../usr/local/mysql/bin/my-small.cnf"); # filepath push(@mpg,"tmpdir = \"/tmp\""); # search for push(@mpg,"tmpdir = \"$tpath/mysql/tmp\""); # replace with update_files(@mpg); # search replace save file #=== END MySQL [/code] 3] Prevent update MySQL path 2 Edit file: udrive\plugins\uscd2\uscd\us_mode.pl Change this block of code: #===MySQL @mpg=(); # clear array push(@mpg,"../../usr/local/mysql/bin/my-small.cnf"); # filepath push(@mpg,"datadir = \"/usr/local/mysql/data/\""); # search for push(@mpg,"datadir = \"$tpath/mysql/data/\""); # replace with push(@mpg,"tmpdir = \"/tmp\""); # search for push(@mpg,"tmpdir = \"$tpath/mysql/tmp\""); # replace with update_files(@mpg); # search replace save file #=== END MySQL [/code] To: #===MySQL @mpg=(); # clear array push(@mpg,"../../usr/local/mysql/bin/my-small.cnf"); # filepath push(@mpg,"tmpdir = \"/tmp\""); # search for push(@mpg,"tmpdir = \"$tpath/mysql/tmp\""); # replace with update_files(@mpg); # search replace save file #=== END MySQL [/code] That’s all you need to change! All the best Ric -
1) Hard coded paths: If you are running only a single server there is no need to change the lines. However running multi-servers the first will use drive letter Z and the next drive Y and so on. If the second contained your Joomla installation it would fail because of the hard coding (requires drive z: but this server is now running on drive y: ). Removing the hard coding makes the path relative and hence drive letter independent. 2) “What do I need to do to get my live site running on Uniform Server? I FTP'd my whole "Public HTML (Root)" folder into a folder on my desktop, in case I need to copy that into my udrive/www folder.” Not really an easy question to answer there are three parts to this process, export database from live server, import this database into Mona. If needed pick-up any missing folders and files from your downloaded public root and copy to Mona. A] Live server database export: I am assuming you have access to phpMyAdmin to export Joomla database. Export: a) Login to phpMyAdmin b] Select Joomla database (menu on the left) c) Click the export tab (top of screen) – opens export page d) Under “Export” section select all, make sure "SQL" is selected e) Under “Structure” section Check Structure box – checked by default. Check “Add DROP Table” Check “Add IF NOT EXISTS” Check “Enclose table…” – checked by default Un-Check “Add CREATE PROCEDURE…” – Un-checked bydefault e) Under “Add into comments” leave the three boxes un-checked. f) Under “Data” – These are defaults and should work: Check “Data” Un-check “Complete inserts” Un-check “ Extended inserts” “Maximal length of created query” you may need to change this 50000 Un-check “Use delayed inserts” Un-check “Use ignore inserts” Check “Use hexadecimal for BLOB” From the drop-down menu select REPLACE g) Under “Save as file” Check “Save as file” Un-check “ Save on server in /etc/phpmyadmin/ directory” Un-check “Overwrite existing file(s) “ Compression select “NONE” radio button h) Click “Go” – After a time you will receive a pop-up allowing you to save file to your PC. File will be named something like name-db_date.sql this is required in the next step B] Uniform Server - Import Note: Copy your existing server to a new folder and do a test run on that. Import: a) Start Uniform Server Mona b] From Apanel’s left menu select phpMyAdmin c) Select your Joomla database d) Select “Import” tab (top middle) – Opens import page e) Click the ”Browse” button, navigate to where you saved the above file and select it f) Make sure Format of imported file “SQL” radio button is selected g) Click “Go” Check your Joomla site is accessible. C] Missing files: You need to match the content of folders from your live server and either copy or create new folders as appropriate on Mona in the Joomla folder. For example uploaded images will have been saved to your live server in Joomla’s image default folder. Note: If you have added any plugins the above can be painful. However if the versions of Joomla are identical you could try the following: Close the servers, copy the following file UniServer\udrive\www\joomla\configuration.php to a location outside of the joomla folder. Copy your live server content over the existing Mona Joomla installation and let it overwrite any files. Copy file configuration.php back to its original location and with luck everything will work. All the best Ric
-
Have alook at the Wiki: Installing Joomla on 4.0-Mona All the best Ric
-
There are a few things wrong, the following gives you a clue what you need to do: <?php require ("config.php"); // load in array (name and password values) session_start(); $userin = $_POST['user']; // get from poat $passin = $_POST['pass']; // get from post if ( !isset($userin) || !isset($passin)) // chect not set { ?> <form name="login" method="post" action="index.php"> Name: <input type="text" name="user" ><br> Pass: <input type="password" name="pass" ><br> <input type="submit" value="go"> </form> <? } else //both are set, check for correct values { // scan each array for a match using in_array function if( in_array($userin, $username) && in_array($passin, $password)) { session_register("$userin"); session_register("$passin"); echo "Congratulations $userin, you have logged in!<br> <a href=\"?logout=1\" >Logout</a>"; } else // failed to match echo "Incorrect Name or Password please <a href=?index.php?>try again</a>"; } if($logout==1) { session_unregister("$userin"); session_unregister("$passin"); } ?> All the best Ric
-
I need a https connection, how can I do this?
Ric replied to sirknight115's topic in Uniform Server - Windows
You never mentioned which version of Uniform Server you are using. The Wiki should be your first port of call for all variants. If you are using 4.0-Mona check out this page. All the best Ric -
Can Zend Optimizer work fine with Uniform Server?
Ric replied to Dixcuxx's topic in Uniform Server - Windows
Tanks Olajide just to explain! Pug is a dog, which describes my keyboard the space bar along with keys “l” and “g” require extra pressure to activate (like its slowly dying). Anyway above link and Wiki page corrected. All the best Ric -
Can Zend Optimizer work fine with Uniform Server?
Ric replied to Dixcuxx's topic in Uniform Server - Windows
Thought I would bash out a quick plugin for Mona Check out the following Wiki page for details. An old write-up (for UniServer 3.3) can be found on UniCenter. If you feel inclined to work through the steps they are similar for the latest version V3.3.3 of Zend Optimizer. Note: It’s not really a plugin hence installs to the PHP folder. All the best Ric -
The answer you are seeking is best explained by the mini-server series, they take reduction to its limit you can find information on the Wiki. Essentially the main components are designed to offer maximum flexibility catering for a very wide community this diversity along with included documentation makes for very large packages. Uniform Server’s design team strips out all but the most commonly used modules (a painful process) hence a large reduction in size. In very rare cases you may require a module that’s not included hence the reason for the support page on the Wiki. This provides information where and how to obtain any missing modules. All the best Ric
-
I have just checked this out on a clean install of Mona Enabled line (576) in UniServer\udrive\usr\local\php\php.ini as shown (removed the semi-colon): extension=php_ldap.dll Ran the servers! I was surprised, they did not fall over, just get a warning in Apache’s log file. Copied the following file: php-5.2.8-Win32\ext\php_ldap.dll To folder: UniServer\udrive\usr\local\php\extensions Restarted the servers, from Apanel selected phpinfo() About halfway down the page you will see a section for ldap, this confirms it is enabled. Does not guarantee that it is working. I have no access to a ldap server hence use an on-line service using this code: <?php $conn = ldap_connect("root.openldap.org","389") or die("Could not connect to server"); // specify LDAP server ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3); $r = ldap_bind($conn) or die("Could not bind to server"); // bind to the LDAP server specified above $result = ldap_search($conn,"dc=openldap,dc=org", "(cn=*)") or die ("Error in search query"); ldap_close($conn); print "No errors displayed connection was OK"; ?> Save it as test.php in folder: UniServer\udrive\www Restart the servers and type: http://localhost/test.php into your browser. All you should see is the line: No errors displayed connection was OK Any errors then it failed. All the best Ric
-
It looks like the following two files cannot be found: php_curl.dll php_openssl.dll Either they do not exist in folder: UniServer\udrive\usr\local\php\extensions or they have become corrupted. I noticed you are using Vista! Some Vistas have problems with .zip files try installing from the .exe file. If you did perhaps the download was corrupt try re-downloading a fresh copy. Another cause it could be picking up older versions of these two files: libeay32.dll ssleay32.dll If you have installed another server and removed it they tend to leave these in the system path %windows%\system32 directory. {Update, I have just placed two really old ones in my system path (XP home) and the servers work fine. Mona was designed to avoid these issues the same applies to libmysql.dll } Not sure if that helps. All the best Ric