Jump to content
The Uniform Server Community

gratzo

Member
  • Posts

    30
  • Joined

  • Last visited

Everything posted by gratzo

  1. I just got the server to run on my Windows 10, 64 bit system, and it took a little bit of fooling around. When I clicked on the UniController, it gave the errors that port 80 was already in use. Every time you start your machine, Windows 10 will likely start IIS, which I believe opens port 80, so, you either have to turn off IIS, or change the port in Uniform Server. (but of course, if you can't get to the controller to change the port, you're stuck). IIS, the World Wide Web Publishing Service is more than likely the culprit. Here's what I did - - go to: Control Panel > Administrative Tools > Services > scroll to the bottom and right click on World Wide Web Publishing Service > select Properties - click Stop - in Startup type: select Manual - click Apply and then OK - make sure that the UniController is also not running (if it is, you can stop it in this same window). - click on the UniController again (right click, open as Administrator), and it should open the controller correctly this time - change the port to anything but 80 and you should be OK. Let me know if this works. (you may want to change your profile to Windows 10, as W7 has different menu's/etc)
  2. Ric - thanks - that tool is a great help! I figured it out. Here's what happened: 1. set up virtual host (test2) for a test folder that WordPress was loaded on - all good 2. went to GoDaddy and created the subdomain and appropriate A(host) record to point the subdomain to my server/IP address - all good 3. went into the local wordpress "options" page to set up the proper "Blog address URL" and "WordPress address URL" - this is what creates the appropriate rewrites in the .htaccess files - [if you don't do that, all of your links will be broken, for example - since WP was originally installed on "localhost/test2", all navigation within WP would try to get you to http://localhost/test2/page1/etc - obviously this would not work outside of the network] 4. all was working fine from the Internet, but when trying to go to some other local folders and localhost - got 403 Forbidden errors. - the cause - WordPress had written into the root .htaccess file a WordPress URL rewrite to deny any traffic not going to WordPress - which essentially locked out all other folders. So, I went into the root .htaccess file, cleared the rewrite - and all is back to normal.
  3. That's the weird part - I disabled virtual hosts in the config file, and there are no .htaccess files in some of the folders, as some are only plain html or php files. (no scripting or complex things going on) Should there be .htaccess files in all folders? (reason I ask is, my copied server which is working does not have .htaccess files in them, and the pages render happily) Next, can you show an example of what you mean by "add it to each virtual host" - I'm not understanding if this is something I do in the config file or in a .htaccess file in each folder. Bottom line, I can't seem to figure out why 2 nearly identical servers are behaving so differently - I must have altered something along the way!
  4. Ric - that worked! Thanks a ton! But now after doing this change, something strange just started - I have 7 test folders on the server, test1, test2, etc. - 4 of them are WordPress installs, and a couple are random web pages, photo albums, etc. What just started happening was I get a 403 Forbidden error on all folders that do NOT have an .htaccess file in them. This is plain weird! I had copied completely the server a while back, saved it on my desktop - so I thought, hmmm, when I started fooling around in my host file (Windows\system32\drivers\etc\host), I must have made a change that the server didn't like - not true. I fired up the copied server, after shutting down the first, and all folders open without the 403 error. Went over to the Apache error log file, and there are all of the FollowSymLinks messages - thing is, I can't even access "localhost" on this server anymore. Only folders that have the .htaccess files in them - I broke something in the process, and have been tearing out my hair trying to go backwards and figure this one out. Have you ever seen this happen?
  5. Trying to figure out if I'm doing anything wrong, or if this is the way that US works locally, and also from outside of the network. I have US v3.3 running on a local machine just fine - with several test folders: www/test1 www/test2 www/test3 etc. The subdomain and domains are set up with GoDaddy, and I'm using the Total DNS tool to point the subdomain that I created to my static IP. I'm using real/live domain names, so the examples below are for demonstration purposes only! I have virtual host activated, and have assigned the variables with the following: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /www/ ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /www/test1 ServerName my-subdomain.my-domain.com </VirtualHost> When I browse to "my-subdomain.my-domain.com" from a machine OFF of my network (I happened to use my work laptop that is VPN'd, so it appears as it's from another part of the world), everything is served great. All goodness comes to an end if I try to browse to the same site from my browser that the UniformServer is residing on. (same machine) What is weird is that if I open FireFox, browse to the same URL ("my-subdomain.my-domain.com"), it gets me to my router, and won't pass through to the server - the router (I assume) creates a redirect and tries to open the admin page for 192.168.1.1 (my router). I get served my router admin page!! Remember, I know that the router is actually passing http traffic as I can get to the US from "outside" my network.... I have Verizon DSL, for some unknown reason I've had the same IP address for 6 months so I'm treating it as static (even though it's dynamic), and they supply the DSL router/modem/switch in an all in one unit. (I had a Cisco/Linksys before that had a little bit better control over port mapping, etc). So, in other words, if I try to browse "locally", from any of the machines to the actual URL ("my-subdomain.my-domain.com"), I get my router admin page served. If I browse from "outside of the network", everything is served fine. I can locally browse the US's machine IP "192.168.1.106/test1" from any machine on the network, and get the site. Is this just a function of how domain names are served locally when using virtual hosts? Am I doing something wrong, or trying to do something that I shouldn't actually be doing? Your virtual host/subdomain/router expertise greatly appreciated!
  6. Hello Olajide, just downloaded the most recent release US 3.3 (while trying to guide a friend on an install over the phone). I mirrored the setup in order to see what was happening on his end, and I got my server to start (in about 15 seconds from the download), but his gave a user/password needed. I looked through the admin panel, and there are 3 lines in the Security Checklist. The first one reads: Change the username:password for the Admin Panel by editing '/htaccess/home... Should that read '/htpasswd?? (instead of htaccess) I thought of creating my own password, so I went over to the config file at \home\admin\www\.htaccess and un-commented the 4 lines, which are: AuthName "Uniform Server - Admin Panel 1.0 Alpha" AuthType BAsic AuthUserFile /htpasswd/home/admin/www/.htpasswd Require valid-user Went to shutdown the server and got the username/password prompt. So, since I hadn't changed the default user/password, I figured that admin/userver would work - but no dice. Did I uncomment the wrong lines, or do I need to change something else in the .htaccess file in order to have a new username/password?
  7. Just to clarify, to add site2, site3, site4, etc. I would copy the above format and enter the username/password variables and have individual access to the different users? If that's the case, I'm thinking that the "Mount /files D:\files" is what broke it! Glad you're back up - was getting nervous that the UniformServer vanished!
  8. I currently have 5 "sites" hosted on the Uniform Server and am using the Apache virtual host mod. They are set up as W:/www/site1, W:/www/site 2, etc. At the moment, I'm able to (via slim ftp) FTP into the Uniform Server, and see all of the folders, per the default config in SlimFTP. The default code is: <User "myusername"> password "mypassword" Mount / W:/ Allow / All Mount /files D:\files </User> What I tried to add (in a whole new section of the config file), was: <User "mysite1username"> password "mysite1password" Mount / W:/www/site1 Allow / All Mount /files D:\files </User> That's what "broke" the server, or then refused the connection. What I'm trying to do is allow access via FTP to only the "site" folders themselves - and the above code didn't seem to do it. Maybe this is not a possibility, but looking for direction. So... 1. is it possible to add another user account and limit it to just the new "site" folders? 2. since I'm running the vhost module, does this have any effect on what the URL would be? I tried copying the exact format that's in SlimFTP for another user, and got a "connection actively refused" while trying to connect. I commented out the new user section and got right back in, so I know it was something in the way I wrote the additional user info. Your help greatly appreciated!
  9. OK, after stumbling upon a 2002 post about Apache Server, here's what I found, and it's pretty similar to your instructions. For each virtual host, I had to create another set of instruction - (for kicks, I tried putting it all in one "Virtualhost" command, but it didn't work): This is the code that I put into the config file for the virtual host <VirtualHost *> DocumentRoot /www/site1 ServerName mydomain.com </VirtualHost> <VirtualHost *> DocumentRoot /www/site1 ServerAlias www.mydomain.com Redirect permanent / http://mydomain.com </VirtualHost> So you don't have to look back and forth at the former code, 1. I removed the "www" in the "ServerName" line 2. Added the new "VirtualHost" section 3. created "ServerAlias" with www.mydomain.com 4. created the "Redirect permanent" line that points it to the new URL w/o the "www" Nothing needed to be done to the .htaccess file, in fact, I took it out to make sure there was not effect. Bottom line, this can be done via the Apache virtual domain and a simple bit of code in the config file. I hope this isn't just a fluke that it's working for me!
  10. trying to figure out why I'm reaching the "root" folder of my Uniform Server when I don't type in the "www" in front of the URL. Works fine when I type "www.mydomain.com", but when I type in "mydomain.com", it resolves to the root folder, and not the virtual host set up. Here is the detail behind this: Uniform Server v3.2 vhost module installed and running dynamic IP via dns.afraid.org For the dynamic DNS entries, I have entered both of these to forward to the Uniform Server: "mydomain.com" "www.mydomain.com" I know that part is working, because when you enter the URL's, both addresses hit the server, only one hits the virtual host, the other hits the root. The virtual host entries in the config file are set to the following: NameVirtualHost * <VirtualHost *> Document Root /www/ ServerName localhost </VirtualHost> <VirtualHost *> Document Root /www/site1 ServerName www.mydomain.com </VirtualHost> I'm trying to do a rewrite with .htaccess to allow anyone to see the site on the virtual host with and without the "www". This is the code that I wrote into the .htaccess file, which obviously is NOT working correctly...and where I think I need the help Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC] RewriteRule ^(.*)$ http://mydomain.com/$1 [R=301,L] I know in theory this should work, I just have something twisted in either the .htaccess file, or in the virtual host (httpd) Apache config file. Again, bottom line is (and I hope I'm not overcomplicating something that may be very simple) I'm just trying to resolve to the same place with and without "www" on my uniform server, with the virtual host running.
  11. Thanks - I'll give it a go and report back in this thread if it's a success. - g
  12. Ok, I think I'm getting it now. I was hoping to be able to point to my current SMTP server, which is my ISP's - but it appears I need my own SMTP server installed with UniformServer. You gave a quick tutorial back in April - I'll look at that (I think you mentioned installing the hmail server) ...bottom line, I need to install a mail server...Is this correct? On the other hand...since php has a sendmail function in it (somewhere...I think), couldn't I just re-insert that into the php files (again somewhere) and activate it? (You suggested doing this with the EXIF file, hoping to do the same with sendmail) I could be way off base, but it seems like the Uniform Server has many of the features of all of the combined programs stripped out to keep it light and nimble (no dust) - this is one option that would help complete my overall server. thanks!
  13. It seems that there should be some place that the username/password should go to enable an SMTP message. That's what I'm not seeing. I entered the SMTP server address of my ISP, "smtp.sbcglobal.net", since that's really the only variable that is in the php config file. All of my current mail goes out through outlook/SMTP via my ISP, off of a shared server - and it seems like some sort of authentication values need to be put in...somewhere??? Has anyone gotten the sendmail function to work with SMTP...and if so, how?
  14. Ok, now that I've found the SMTP = localhost and smtp_port = 25, can you show me a quick example of what values I should enter? On the php.net SMTP/sendmail page it shows the default values but nothing else. (such as how to activate it or any sample code). Wondering if I need to install another file to allow SMTP. I have my own SMTP values from my ISP, just not sure where in the config file I should enter them.
  15. I have a small photoblog that will send a short text or html e-mail when a comment is posted. It's similar to the e-mails that are sent when you enable the email notification in a post on this forum. Trying to enable the sendmail function - I've searched the forum for a specific answer, but was unable to get the specifics to enable the sendmail function. I did locate info on setting up SMTP mail, but my need is more simplistic. I located the "sendmail_from = me@localhost.com" and the ";sendmail_path =" in the php configuration file, but not sure what to set the parameter to. Also searched on the www.php.net site, and noticed that the file path is typically usr\lib\sendmail, or something similar - not finding a sendmail file within UniformServer's php file... Would like to enable this function for 2 reasons - 1, to know when a comment is made (duh), and second, to curb any possible comment spam, should that ever be a problem. Currently using US v3.2a on Win2000 Professional, virtual domain hosting enabled/installed. Thanks in advance for all of your support and timely answers! g
  16. gratzo

    how to enable EXIF

    Thanks! Something strange, however...I was probably using a photo that had been modified by photoshop, and "save-for-web", which I believe strips the exif data. I tried a couple of different photos, and the exif data shows up, without doing the above modification. (so now I'm stumped, thinking that I needed to enable EXIF...but it's reading it, so I didn't need to enable it...weird!) Thanks anyway...will be posting another quick question regarding sendmail in a moment.
  17. gratzo

    how to enable EXIF

    I've searched the forum and only could find one reference to EXIF data, and the Uniform Server. A topic started in February, but not ever closed that I can tell. Currently running Windows 2000Pro, US v3.2a, and would like to capture the EXIF data - notice that this is not enabled in PHP. Is there a way to enable it? I realize that the UniformServer is kept at a minimum size with only the basics as the default install - hoping that there is a way to enable it without having to completely re-install US. Thanks in advance!
  18. I studied every example in the Apache virtual hos examples page, and I finally got it working using the code in one of the tutorials that are referenced from the forum. Here's the part that was missing: <VirtualHost *:80> DocumentRoot /www/ ServerName localhost <VirtualHost> After I entered that, I was able to do the following: 1. from the box the server is on - type http://site1 - and get the index of site1 2. from another box on the LAN - type http://192.168.1.100/site1 - and get index of site1. 3. from the box the server is on - type http://localhost - and get the index of the www folder (just as if you didn't have the mod_vhost module running) The tutorial can be found at AppTools.com - virutal host tutorial. Without that last little bit of code - typing http://localhost fails. Again, when I get this all figured out, I'd like to write a tutorial for anyone that may be trying to do what I am, which is, have a test environment within my LAN, using an old (former Win95 converted to Win2000 - but use whatever is lying around the office) computer (as my server), ftp access to that server (just as if I were uploading to a commercial hosting provider, then go "Live" with the site utilizing a dynamic dns service. I have the domain names already, just working on this last piece, and how to get the rest of the world to see these small "mini" sites through my router. I understand port forwarding is in order, as well as setting up one of the dynamic dns clients - my next task! Thanks for all of your advise so far...just wish you weren't the only one responding to all (well, most of) my questions - hoping that someone with some experience doing this can step in so you don't get burned out answering everyone's questions.
  19. I'm trying a much simpler form of virtual host, and wondering if anyone with some experience can guide me - as I may be trying something that can't be done with the UniformServer v3.2. The overall goal of what I'm trying to achieve is this: 1. create multiple "sites" or domains on one server, we'll call them "site1, site2, site3" 2. be able to access the folders, "site1", "site2", "site3" from the Internet. 3. be able to access the 3 sites from other systems on the LAN, and ftp to them So far, here's the success I've had w/the mod_vhost_alias.so, and the steps I took to get there: 1. create 3 folders within the "www" folder, each with a simple index.php file for testing. 2. modify the httpd.config file with the following code: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /www/site1 ServerName site1 </VirtualHost> <VirtualHost *:80> DocumentRoot /www/site2 ServerName site2 </VirtualHost> <VirtualHost *:80> DocumentRoot /www/site3 ServerName site3 </VirtualHost> 3. modified C:\Windows\System32\drivers\etc\HOSTS file with the following mods, so the system is not looking out on the Internet for the URL's. 127.0.0.1 site1 127.0.0.1 site2 4. Finally, when I enter http://site1, I get served the site1 folder index.php file, same success as if I enter http://site2, etc. That part works fine. Here's where I must be doing something wrong - when I go over to another system on the LAN and try to access the server box, I get an apache error "URL not found on this server". The server at this moment is on machine 192.168.1.100 (Windows XP). The URL I'm typing in is "http://192.168.1.100/site1" - I've tried several variations, even entered the 127.0.0.1 site1 settings in the HOST file, and still getting a URL not found error. I've enabled .htaccess in the "site1" and "site2" folders, and then completely removed them thinking that that may be the problem. Still no access. Is this something that can be done? Apologies for the long post - sure seems like this is something that many people are doing now - so here are the 2 questions: 1. what different should be put in the httpd.config file to accomplish this 2. what exactly is the URL that should be typed to get to the "site1" from another box? When I'm done with this, I'm writing a tutorial!! (if I can get it to work... g
  20. I am attempting to host 3 very small sites (5 static pages each) on the UniformServer v3.2a, on a Windows2000-Pro box. The USv3.2a is up and running, and behind a router - has a dynamic IP of 192.168.1.105. (3 other XP boxes are running at the moment, 100, 101, 102). Internet access is via DSL, dynamic IP. I have uploaded and installed in the modules the mod_vhost_alias.so file, also uncommented the load module portion relative to the mod_vhost in the httpd.config file. I would like to create 3 folders as virtual hosts, something like w:/www/site1 w:/www/site2 w:/www/site3 For example purposes, the domain name is "my-domain-for-siteX.com" From reading at the very bottom of the httpd:config file, I would uncomment and type in the following: <VirtualHost *> ServerAdmin webmaster@site1.my-domain-for-site1.com DocumentRoot /www/site1 ServerName site1.my-name-for-site1.com ErrorLog logs/site1.my-domain-for-site1.com-error_log CustomLog logs/site1.my-domain-for-site1.com-access_log common </VirtualHost> <VirtualHost *> ServerAdmin webmaster@site2.my-domain-for-site2.com DocumentRoot /www/site2 ServerName site2.my-name-for-site2.com ErrorLog logs/site2.my-domain-for-site1.com-error_log CustomLog logs/site2.my-domain-for-site2.com-access_log common </VirtualHost> <VirtualHost *> ServerAdmin webmaster@site3.my-domain-for-site3.com DocumentRoot /www/site3 ServerName site3.my-name-for-site3.com ErrorLog logs/site3.my-domain-for-site3.com-error_log CustomLog logs/site3.my-domain-for-site3.com-access_log common </VirtualHost> I'm hoping this is correct - if not, can you guide me with the corrections. Also, is there anything that needs changing in the .htaccess file? thanks, g
  21. Thanks - got it! It's interesting that the post with the file attached doesn't come up in the search...weird!! I have a few more questions, as the posts that are relative to the mod_vhost are a bit fragmented (some are in reference to subdomain, others discuss the vhost.php script). Let me know if I should start new threads, this one is getting long in the tooth - topics I'd like to know are: 1. can you ftp into folders on the server (within the LAN)?? - if so, what would it take to connect to the www folder (I have edited the .htaccess file to allow the IP of the machine I'm trying to ftp "from". I've tried 192.168.1.105/ and the connection is refused (you can browse into this folder, which is the WWW folder and get the "index.php" file - just can't seem to get connected via ftp) 2. is there a way to set folder permissions (CHMOD) - I suppose once you can ftp into it, you can set the permissions (would like to do this for setting up a password folder) 3. and finally, with mod_vhost_alias.so placed into the modules folder, and enabled in the httpd.config file, I have a feeling that I need to write a few lines of code specific to the new folder name. Again, wondering if this should be a new topic in the forum. Thank you again, you have been most helpful, and what started as something that I wanted to use to test the look of a .php file is turning into something a whole lot better!! When I get this all ironed out, I'd like to write a step-by-step tutorial on how to do this!
  22. Sounds straightforward, I've "un-commented" the line in the httpd.conf file - only challenge is, I can't find the mod_vhost_alias.so file anywhere here or on the Apache module site. Any way to attach it to this thread? (I have a feeling it's written out in a few lines of code somewhere here on the forum, but I don't want to assume anything)
  23. I read every thread in the forum, and I can't tell if the vhost.php file is all that's needed (and where it goes within the folders), or if you need to download mod_vhost_alias.so and use the files together. I was on the Apache module site for an hour looking for the mod_vhost_alias.so file and could not find it. In all of the posts regarding vhost, there is no clear answer as to how or exactly what to install and where, as most of the questions are being answered for specific items within each persons install. Just wondering if there is a small step-by-step instruction anywhere. Is this something I should start a new thread on? (I think I'm wearing out my welcome on the Win95 topic!!)
  24. I finally gave up on Win95 - got Win2000Pro running on the same machine, installed US3.2a, and was up and running. I thought of posting a new topic, which may be the best on this one, but was searching all over the Apache site for the mod_vhost .so file. If you could point me in that direction, much appreciated. My final goal is to have a few small static sites on the one server. If there is a tutorial on step-by-step on how to do that, again, much appreciated. thanks again, g
  25. Olajide, OK...I have officially given up on trying this on '95. I installed 2000Pro on the same box, and UniformServer is up and running. In case anyone wants to attempt a '95 install...uh...here's some of the things I went through and the time involved, so you can decide!! (I probably should have given up a few days ago, but I was determined to try it) 1. downloaded USv3.1 (about 30 seconds) 2. downloaded the appropriate MS patches for '95 (about 30 minutes to find them all) 3. read the US forum to find out why I couldn't connect (about 2 hours) 4. read a bunch of TCP/IP and Apache error docs (about 2 hours) 5. try about 20 different configs of network connections (about 2 hours) 6. bang my head against the wall (about 48 hours) 7. wipe out Windows95 and install 2000 (about 1 hour) 8. install US v3.2a, hit start.bat, up and running, about 60 seconds So here's my official thanks for all of the help. Hope I haven't worn out any forum karma. I do have another question, but will post in a new topic. (the question will be about - can you use this server as a small webserver available to the internet, and if so, can you have multiple domains. Don't seem to see much documentation on it - perhaps you could point me to anyone that's done it or a tutorial) thanks again, g
×
×
  • Create New...