-
Posts
1,516 -
Joined
-
Last visited
Everything posted by Ric
-
I don’t think it’s indicative of Uniform Server just wondering if this is a Dell or Vista feature! All the best Ric
-
Some time ago Stefano had a small problem with ModRewrite http://forum.uniformserver.com/index.php?showtopic=1367 more precisely a regex problem. After this I had several requests for how to run ModRewrite on Uniform Server. It’s taken a while, I have written a tutorial and added it to the end of the new user section: # New Users Home # Quick Install # Quick HTML # Quick HTML Templates # Quick MySQL # Quick PERL - CGI # Quick PERL - PM (Perl Module) Problems # Quick PERL - CLI # Quick PHP - CGI (Dual mode CLI) # Quick PHP - CLI (Dual mode CLI) # Quick Python - CGI # hosts File # Mod Rewrite - Tutorial - Download examples Not sure if that was the best place to put it. However it is complete with working examples (running mod rewrite from htaccess and vhost). Included is an example that stresses the need to use server relative links when using clean URLs. This is a simple single page web site using PHP (not a database in site). While testing some of the examples my dyslexic keyboard (malfunctioning space bar) introduced several errors in httpd config, killing Apache stone dead. This resulted in a new page on UniCenter “debugging” (how to check config syntax) here you will find a batch file that saves you typing console (DOS) commands. Links to the appropriate pages: Mod Rewrite: http://center.uniformserver.com/new_users_...od_rewrite.html Mod Rewrite processing sequence: http://center.uniformserver.com/new_users_...tion.html#block Debugging: http://center.uniformserver.com/debugging/debug_1.html All the best Ric
-
Olajideolaolorun covered this some time ago! Either you have installed a separate MySQL server or perhaps the file LIBMYSQL.DLL has become corrupted. All the best Ric
-
I have a partial solution, works in IE but not Firefox Login in to Wordpress admin. Click options > General Scroll down the page until you will find the following lines: (blog will probably be wordpress unless you used a different folder) WordPress address (URL): http://localhost/blog Blog address (URL): http://localhost/blog Use the IP address you found (see my last post) and replace the localhost to give: WordPress address (URL): http://192.168.1.6/blog Blog address (URL): http://192.168.1.6/blog To access wordpress type the following into your browser address bar (that’s any pc including the pc where wordpress is installed): http:// 192.168.1.6/blog/ (note: replace blog with wordpress or whatever folder name you use) Firefox for whatever reason reverts back to localhost. I have no idea why this happens. Does anyone have any thoughts on this? All the best Ric
-
Thanks for the feedback. I checked out the link you provided and found the article was written for US version 3.1 there have been major changes between the versions, 3.5-Apollo make the whole set-up easier. If you followed the instructions for changing MySQL password from that article you probably have killed the database. No major problem, I would recommend deleting what you have, extract a fresh copy of 3.5 and follow these instructions to change the password: http://center.uniformserver.com/home_webse...e/security.html Enjoy All the best Ric
-
One interesting thing I noticed in your post was this link: http://localhost/a/ That’s related to an older version of US that I am not familiar with! Have you downloaded the new version of US (3.5-Apollo), see you are using XP hence you should have no problem. Have you checked this page: http://center.uniformserver.com/us_35/us35_intro_1.html Worth looking at; Oops just checked that link it is backwards compatible. As a reference point download the new version and give that a bash. If your download was version 3.5-Apollo then come back and give me a bash. All the best Ric
-
I was wondering if you have put UniServer on-line! Open the file .htaccess in folder www and make sure these lines are commented as shown: # This file provides security to the server limiting access to the localhost only. # Comment to deactivate. #Order Deny,Allow #Deny from all #Allow from 127.0.0.1 I forgot to mention you do need to use the IP address of the machine that your server is running on. To find your IP address: Open a command prompt: start>run type in cmd In the window that pops-up type: ipconfig You will see something that looks like this: Ethernet adapter Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.1.6 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 Use the ip address found as follows: On the other machines to access your webserver type http://192.168.1.6/ If you changed the port number to say 8080 you would type http://192.168.1.6:8080/ All the best Ric
-
The logs were interesting and confusing: 1) Unable to access w:/home/admin/www/includes/python.inc --- wrong location have you installed python 2) w:/home/admin/www/includes/java.inc --- wrong location --- is java installed I noticed this in your first post “reverts back to localhost” are you using CMS (Content management systems) or something similar. The reason I ask is because you may need to reload the program and use your real domain name! However this is interesting “Now the site has been tested through localhost and everything is fine” which suggests the software works, I was wondering if the problem is only a server name problem! It easy to check use a vhost as follows: Edit Apache config file (httpd.conf) add the following at the end of the file. Replace my_site.gotdns.com with the domain you registered. NameVirtualHost * ServerName my_site.gotdns.com DocumentRoot /www Give it a try and see what happens, does anyone have any ideas or thoughts on this? All the best Ric
-
Ace All the best Ric
-
That’s what I like to see .... You hacked US around and tailored it to work for you. It’s that flexibility and why I like US. As for making PDO_MYSQL a default that’s for the design team to consider! Design criteria I have no idea what constitutes bloat! Recently I was asked how to remove MySQL, I suppose that’s bloat if you do not use it. However it’s essential to the majority of users. Where does PDO_MYSQL fit? I have no idea. I am a user and have popped a number of things on “Uniform Server 4.0, The Next Chapter” if you want to make changes its worth adding your views to this. Yep “May I suggest you guys include PDO_MYSQL by default installed or at least avai in the extension to be turned on” yes go for it. All the best Ric
-
Do .be domains count as domains for Vhosts?
Ric replied to simardbrad's topic in Uniform Server - Windows
When you register a domain name most domain providers will offer you the choice to use either their name servers or to register your own. Take a look at this page for an example: http://www.howtoforge.com/ispconfig_dns_godaddy Do a Goole for: own name servers you will find loads of examples. Note: Not all domain providers allow you to set-up your own name servers hence you will need to shop around. Check to see if there is an extra charge for not using their default name servers. Some provide this service for free others do not. Also check the small print to see if you actually own the domain name after registering. All the best Ric -
I have seen this several times before and believe it to be a race condition. Depending what’s running on your machine apanel is requested before the servers are running. If the server’s are not running the browsers cannot find the page wait a while and click refresh page. If that is not the problem try restarting your PC (Always best to start from a known working point) and try again. Should that fail to remedy the problem take a look at the following page it may be of some help: http://center.uniformserver.com/home_webse...l_problems.html The following may also be of use! At the top of this page: http://center.uniformserver.com/us_35_oily...script.html#top You will find this file project_uc_server_control_2.exe download and extract, it contains a test start-up script named uc_server_control_2.exe run this to start the servers. It contains some diagnostics that can be viewed when certain problems are encountered. I tried to resolve the race condition however occasionally I noticed even with this it still occurs. Ho well! All the best Ric
-
Quick and dirty I have also included the disk space you would save: 1) Delete folder mysql located in *\Uniform Server\udrive\usr\local --35.9M 2) Edit Server_Start.bat comment out the line as shown: ::start \usr\local\mysql\bin\mysqld-opt.exe --defaults-file=/usr/local/mysql/bin/my-small.cnf Alternatively just delete the line. 3) Edit Disk Start.vbs delete the following lines: s=mid(s,1,1) t=MsgBox("Start the MySQL Database Server?", vbYesNo + vbQuestion, "Database Support") If intDoIt = vbNo Then m="" Else m=" mysql" End If Note: UniController.exe may not work! (Use the above to start the server) That’s basically it, do not use any links in apanel that relate to mysql. These two folders are no longer required delete them both if you wish to save more disk space. Delete folder phpMyAdmin located in *\Uniform Server\udrive\home\admin\www -- 5.07 MB Delete foolder phpMyBackupPro located in *\Uniform Server\udrive\home\admin\www --560 KB I say the above is dirty because if you want to remove all traces of mysql you need to edit the files related to apanel. All the best Ric
-
Is this like a single page web site where one page pulls in snippets of data (part pages) to create the served page? Ric
-
It looks as if your server is running correctly! If you are using only a single domain (not running any vhosts) the main server will server pages from folder www by default. Hence there is no need to change the config file. What you do not mention is the type of site you are using, is it a dynamic or static site? I am not sure what you mean by this: “part of my page is missing (the part produce by text editor)” The above may appear stupid questions however I get the impression it may be a link problem without more information difficult to point you in the right direction. It may be worth looking in the log files (error.log and access.log) to see if they can shed a light on the problem. The log files are located in folder: *\Uniform Server\udrive\usr\local\apache2\logs All the best Ric
-
With your site copied to folder www start the server and type the following into your browser: http://localhost or http://localhost/ The details can be found on this page at the end of section 2: http://center.uniformserver.com/home_webse...l_guide_35.html Have fun Ric
-
I like examples to bash around. I think the solution you are looking for is to use an alias. This will prevent the problem Olajide stated, “that’s the way to do it but then that means you have disabled W:/www” with an alias the main server root (www) will remain functional and the servers portable. You need to use a directory alias that has the following general format: Alias url_path full_path_to_folder You must place this in httpd.conf (folder *Uniform Server\udrive\usr\local\apache2\conf) for security you cannot use the root .htaccess file in folder www. Working example: I have Uniform Server installed in folder: G:\0_1\Uniform Server I have UniCenter install in folder: H:\a_test\unicenter_mpg_1 To access UniCenter I type the following into the browser address bar: http://localhost/fred/ For the above scenario the configuration file looks like this: Alias /fred/ "H:/a_test/unicenter_mpg_1/" <Directory "H:/a_test/unicenter_mpg_1"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> You can place it either at the end of httpd.conf or locate this section: Alias /apanel "/home/admin/www/" Options Indexes Includes AllowOverride All Order allow,deny Allow from all and place it under that. Note: Remember to restart the servers for changes to take place. ============================================== Back to the original post: Server is located in folder: c:/webserver A site contained in folder: d:/projects/foo To access type into browser address bar: http://localhost/foo/ For this scenario the configuration file looks like this: Alias /foo/ "d:/projects/foo/" <Directory "d:/projects/foo"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> Please note: Alias: d:/projects/foo/ ---- That last forward slash must be included. Directory: d:/projects/foo ---- There is no last forward slash. You can use as many aliases as you like just create a new block of alias code. This may seem obvious because you are using absolute paths what is aisled is not portable however the main server remains portable. All the best Ric
-
Optimising is a complex area it’s not just a matter of allocating maximum memory for a particular application because this will impact on other application including the OS. There is a lot of information on the Internet Google “optimize mysql memory size” take a look at these pages: http://emergent.urbanpug.com/?p=61 and http://www.hannonhill.com/kb/install/optim...erformance.html These were taken at random, they highlight one significant point memory usage is dependant on the type of database you are using. Take a look at the on-line MySQL manual; it has a search facility where you can search for max_allowed_packet, makes interesting reading: http://dev.mysql.com/doc/refman/5.0/en/ser...-variables.html What I am trying to say optimisation is not a yes no type answer it is dependant on a whole host of other things including the type of material you are serving to the end user. All the best Ric
-
For ftp access to Uniform Server you need to add the SlimFTP plugin. Full details are given here: http://center.uniformserver.com/slimftp/slimftp_1_intro.html I originally wrote it for 3.3 hence when reading the write-up replace the following as appropriate: 3.3 to 3.5-Apollo folder “diskw” to folder “udrive” The SlimFTP plugin is a self-contained FTP server and very easy to set-up. All the best Ric
-
I have no problem with “oops” been down that path many times myself. Its nice to see what resolved the problem may help others if they experience a similar problem so thanks for the feedback. All the best Ric
-
I apologise for the delay, OK for some reason I missed your follow up question! Anyway by now you will have discovered that you do need to uncomment that line. What may be of interest if you have several domains that map to a single ip address that in turn maps to a single root folder you only need one virtual host! For example: NameVirtualHost * <VirtualHost *> ServerName fred.com ServerAlias www.fred.com ServerAlias example1.com www.example1.com ServerAlias example2.net www.example2.net ServerAlias info.biz www.info.biz more.info.biz # etc. DocumentRoot c:/UniServerX.X/www/example </VirtualHost> The above domains fred.com, example1.com, example2.net and info.biz all map to the same site that is contained in the root folder c:/UniServerX.X/www/example as do their sub-domains www and more. All the best Ric
-
Thanks for the feedback, it explains why the 404 error which puzzled me. I understand the frustration; glad you have something up and running. At the end of the day they are only tools now you can concentrate on the real work. All the best Ric
-
I have taken a look at the files you need they are php_openssl.dll, libeay32.dll and ssleay32.dll you must use php_openssl.dll version 5.2.3.3 libeay32.dll and ssleay32.dll must match each other and be the latest versions otherwise you will receive an ordinal 3879 error. I have done the legwork for you see attachment ssl_php.exe save to any folder; double click on the file to extract files. Copy the files to the folders as shown below: php_openssl.dll to folder *\Uniform Server\udrive\usr\local\php\extensions libeay32.dll to folder *\Uniform Server\udrive\usr\local\php ssleay32.dll to folder *\Uniform Server\udrive\usr\local\php Enable extension: Open php.ini located in folder *\Uniform Server\udrive\usr\local\php Locate the line: ;extension=php_openssl.dll Change to extension=php_openssl.dll Save and start the servers with luck your script should work. Note: I believe PHP first looks in it’s own folder to pick up the openssl files hence no need to place them in the system path! Yahoo is not the only one that requires a secure connection the above may also be applicable to these. I do not have this type of account hence that’s as far as I can test. I hope the above is of some help. All the best Ric ssl_php.exe
-
A quick test, I placed this code at the top of a php page: <?php // starts the session session_start(); // sets variable in the session $_SESSION['fred']='test'; ?> No problems when run on XP Home, I was wondering if it’s a Vista issue. Like you I have no idea where that strange path /home/s/serve/tmp/ comes from. Ric
-
You need to enable SSL support in PHP, I have never done this hence cannot provide a step-by-step guide. However the following is a very rough guide. 1) You need to download a full copy of PHP this allows you to pick-up the file php_openssl.dll place this in folder *\Uniform Server\udrive\usr\local\php\extensions 2) Enable this extension in php.ini located in folder *\Uniform Server\udrive\usr\local\php by changing this line ;extension=php_openssl.dll To extension=php_openssl.dll 3) Check out this page http://us.php.net/openssl to add open ssl All the best Ric