Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: March 30, 2015 04:03PM

I've got WAMPSERVER installed on Windows 7 ultimate edition 64 bit OS, in the folder C:\SERVER\

Now, as it is, WAMP has automatically set itself to load web pages from \SERVER\www\ which is cool and all.
Problem is, my harddrive isn't that large, while my D drive is 2 TB and has a shitload of shows, movies, etc that I've ran through video converters to translate into MP4 format for easy viewing. Specifically, they're stored in D:\MEDIA\

I'm new to this (obviously), and this is likely a question that's been asked numerous times, but I don't know the exact phrasing to search for, so rather than risking finding disturbing porn of god knows what in my google search results, I figured I would ask this question here. (sorry for any annoyance this may cause anybody)

My question: Is there any possible way to get WAMPSERVER to recognize D:\MEDIA\ and categorize its listing as /localhost/MEDIA/ when pulled up in my browser?

Thanks for your time.

EDIT: second question, sorry, I just noticed that any computer trying to access 192.168.1.3/ gets an error 403 access denied message. How do I grant machines on my LAN access too? Sorry about this. I'm 100% new to this entire thing.



Edited 1 time(s). Last edit at 03/30/2015 04:34PM by LORDSANTAENGLISH.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: RiggsFolly (---.as43234.net)
Date: March 30, 2015 04:23PM

Hi

Yes it is possible to put your website code in a completely different folder to the WAMPServer install see this post which talks about Virtual Hosts [forum.wampserver.com]

It is also possible to install WAMPServer onto yur D: drive, just uninstall the existing version, then delete all the C:\wamp folder

Then reinstall it when it asks if its ok to install on C:\wamp change it to D:\wamp.


DONT get tempted to just copy the C:\wamp to D:\wamp, that wont work.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: March 30, 2015 04:38PM

Thank you for your reply, I'll make sure to look around for those threads.
As for WAMP on D drive, it's an external HDD, I'd rather not do that. Windows doesn't like it when I disconnect the drive if there's programs running on it, and sometimes disconnects are accidental.
As for moving/copying WAMP, thanks for the warning, I figured it wouldn't work because when I tried looking at the conf file, there was a bunch of references to the C drive's location of the install.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: RiggsFolly (---.as43234.net)
Date: March 30, 2015 04:49PM

Good point, installing on a removable drive is not a good idea as you thought.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: March 31, 2015 09:46AM

Thread found: [forum.wampserver.com]

IT WAS USELESS. Sorry.

Here is what it is saying I can do: I can turn D:\MEDIA\ into something like //MEDIA/ and if I edit my windows system HOSTS file, which I DARE NOT TOUCH, I can have /MEDIA also load as blah blah blah.

Here is WHAT I WANT TO DO: I have D:\MEDIA\
I have //localhost/ and wish to virtually add the D drive's MEDIA folder to WAMP as //localhost/MEDIA/
Not as its own server or whatever crap.
Not some crap that requires I go messing with sensitive system32 subfolder files I don't dare go near.
I simply want it to be categorized virtually as a sub-folder by WAMP when a browser calls it up.

Is there some way this can be done simply, purely within WAMP by messing with CONF files only?

Also, could someone please also answer the edit I added to the first post here? I'm trying to find a way to make my server accessable via other computers on the LAN, and I did try googling this, however the most informative tutorial I could find was USELESS, because when I went to the points in my CONF file the kid went to, I realized commands like "deny from all" had somehow been removed?! WHY WOULD SOMEONE COMPLICATE THE CONF FILES SO BADLY?
Anyway, I need a solution for that too, sorry.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: RiggsFolly (---.as43234.net)
Date: March 31, 2015 11:16AM

Morning,

I am sorry the perfectly good solution appears to you to be excrement.

But I feel I should remind you that, by installing WAMPServer or any version of a web server and a database server, you have tacitly agreed to become the System Administrator, The web server Administrator, The database Administrator and The website Administrator.

This means that at some stage you are going to have to put your fears behind you and when confronted by new information that you dont understand, do some research to reverse your lack of knowledge.


The Hosts file
Not such a scarey file when you find out what it does and why!




Quote

Also, could someone please also answer the edit I added to the first post here? I'm trying to find a way to make my server accessable via other computers on the LAN, and I did try googling this, however the most informative tutorial I could find was USELESS, because when I went to the points in my CONF file the kid went to, I realized commands like "deny from all" had somehow been removed?! WHY WOULD SOMEONE COMPLICATE THE CONF FILES SO BADLY?
Anyway, I need a solution for that too, sorry.

Most WAMPServer related tutorials on the web are a little old and also in most cases, crap, to use your terminology, and were created when Apache 2.2 was the latest version of Apache, I assume that the one you found was using Apache 2.2 whereas WAMPServer 2.5 comes with Apache 2.4.

In Apache 2.4 they (thats the Apache team, not the WAMPServer team) changed the instructions that control access to Apache from the Allow to the Require syntax

From
Order Deny,Allow
    Deny from all
    Allow from localhost ::1 127.0.0.1

To
Require local

Some documentation on the changes between Apache 2.2 and 2.4!

Take a look at my signature, there are links to all the manuals you may need to become familiar with in order to wrangle Apache, MySQL and PHP.


Tell Apache to allow access from any ip on your local network
and create an Alias so you can access data outside the current domain folder structure
Edit the httpd.conf file

Locate this line # onlineoffline tag - don't remove and make the following changes

The first will allow your site to be accessed from the local network the second will create an Alias within the localhost domain called media which can be used from within your PHP scripts.

#   onlineoffline tag - don't remove
    Require local
    Require ip 192.168.1
</Directory>

Alias /media "d:/media"
<Directory "d:/media">
    Require local
    Require ip 192.168.1
</Directory>


You should now be able to access resources in the D:/MEDIA folder from PHP and HTML as for example

<img src="/media/a_picture.jpg"/>

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 03/31/2015 11:18AM by RiggsFolly.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: March 31, 2015 07:05PM

okay, followed instructions, did the following:
edited the conf file to include "my-vhosts.conf"
in "\bin\apache\apache2.4.9\conf\extra" created file "my-vhosts.conf" by copying the other vhosts conf file.
edited out the BS that the instructions told me to get rid of (that sample crap). I got a bit nervous about messing with the original vhosts conf file, so yeah, I kinda messed with this step, but it should load the same anyway.
Then I added the server to it (/www/) to be mirrored as per the command of the other conf file that's calling on this one, because for god knows what reason, now that's required.
also added a bunch of LAN IPs that can access this.

next, added this line of code to the vhosts file:
<VirtualHost *:80>
DocumentRoot "d:/MEDIA"
ServerName videos
<Directory "d:/MEDIA">
AllowOverride All
Require local
Require ip 192.168.1.1
Require ip 192.168.1.2
Require ip 192.168.1.3
Require ip 192.168.1.4
Require ip 192.168.1.5
Require ip 192.168.1.6
Require ip 192.168.1.7
Require ip 192.168.1.8
Require ip 192.168.1.9
Require ip 192.168.1.10
</Directory>
</VirtualHost>

edited hosts to include "videos" to be referred over to 127.0.0.1
did the dnscache thing, did the restart services thing.
did everything I could think of.

Absolutely freaking nothing.
I notice the majority of these instructions assume that I'm trying to get a subfolder in \wamp\www\ up and running. But I'm trying to get another harddrive up and running.
Why is it so difficult to impossible to simply get this drive's folder to work?
I'm at my wits end.

I renamed the index.php file in /www/ so I can see the folder index, and all that editing didn't add /media/ to it.
Is there something this tutorial file is lacking? Has ANYONE had success with exactly what I'm attempting? (if so, HOW)

WAMP's light is green, but I'm not getting the desired effect. I'm about ready to cry here, I really need this to work.

On a brighter note, adding all those requires IP commands did work to make the index loadable from other computers, thanks for that.


edit: it should be noted, I also listened to this part of the tutorial, and it didn't work either:

How do I turn this other 'My Virtual Hosts' menu on?
This may be a little premature but I suppose now is as good a time as any to tell you that.

- Make a backup of the \wamp\wampmanager.tpl file, just in case you make a mistake, its a very important file.
- Edit the \wamp\wampmanager.tpl
- Find this parameter ';WAMPPROJECTSUBMENU', its in the '[Menu.Left]' section.
- Add this new parameter ';WAMPVHOSTSUBMENU' either before or after the ';WAMPPROJECTSUBMENU' parameter.
- Save the file.
- Now left click the wampmanager icon, and select 'Refresh'. If this does not add the menu, 'exit' and restart wampmanager.

no vhosts, not even after closing out the program and reopening it. yet now, //videos/ gives me a 403 error instead of chrome WTFing at me or taking me to google. So I know that SOMETHING happened, but not the desired effect. Not the desired effect at all.

If this information helps, it's at the bottom of the page index: Apache/2.4.9 (Win64) PHP/5.5.12 Server at 127.0.0.1 Port 80



Edited 1 time(s). Last edit at 03/31/2015 07:19PM by LORDSANTAENGLISH.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: RiggsFolly (---.as43234.net)
Date: April 01, 2015 01:58AM

Santa,

Would you mind putting a reign on your Bad Attitude and bad language. Nobody here is obliged to help you.
Remember the vast sums of money $0.00 £0.00 €0.00 you paid for this software and similar amount you are paying for the support you would like from the volunteers that haunt this site.

I appreciate it is frustrating working with compex software you have made no effort to learn how to use, but there is only one person that can do anything about that, and its not us.

So now it seems you have taken 2 different answer and mangled them together, so I am not quite sure where you are.


Can you post your `my-vhosts.conf` and ensure that you are actually including that file in your `https.conf` and not the `httpd-vhosts.conf` default file.

Also remove the `Alias` etc from the httpd.conf file as this now should, for tidyness if nothing else be placed in the `my-vhosts.conf` file.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: April 01, 2015 10:18AM

Bad language and bad attitude?

I only said things like BS and crap, which I would think would be cleaned up versions of what they could have been, or are these words also unacceptable? (I'm genuinely curious, not being sarcastic, as it may sound).
I also mentioned the whole IP address thing working, and thanked them for that advice. I've been getting upset, but not angry in the least, and I didn't think I was projecting a bad attitude at all.
Sorry if I was.

Also, yes, I am keeping that in mind, which is why I am thanking people for their help in advance, as well as apologizing for if my questions are frequently asked. Because you are ABSOLUTELY CORRECT, I've paid $0.00 for the program, as well as the technical assistance, so I am very much grateful for the attempted help by these kind people.

"I appreciate it is frustrating working with compex software you have made no effort to learn how to use, but there is only one person that can do anything about that, and its not us."

THIS, on the other hand, is coming off as rude and assumptive. I've specifically said that I was completely new to this, and that I am doing my best to learn it and use it. I also mentioned that I tried googling one of my problems (even though it risks me finding disturbing porn of things,though I didn't mention that at the time, because it would have been rude), because I didn't want to further inconvenience people here.

I'm very sorry if I've come off as rude or bad mannered, I'm simply frustrated is all.

--------------------------------------------------------------------------------------------

Now, to address any confusion, and sorry for confusing you, here's what I did:

1: I edited httpd.conf, I copied the vhosts conf file call command.
2: I edited the copy of the command to remove the line of code that comments it out (#), and edited the NAME of the vhosts it's looking for to "my-vhosts.conf".
3: Copied the vhosts file to a file of that exact filename. I then edited that.
4: Crop the sample code crud out, per the instructions. Inserted the following:
<VirtualHost *:80>
DocumentRoot "c:/SERVER/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/SERVER/www">
AllowOverride All
Require local
Require ip 192.168.1.1
Require ip 192.168.1.2
Require ip 192.168.1.3
Require ip 192.168.1.4
Require ip 192.168.1.5
Require ip 192.168.1.6
Require ip 192.168.1.7
Require ip 192.168.1.8
Require ip 192.168.1.9
Require ip 192.168.1.10
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "d:/MEDIA"
ServerName videos
<Directory "d:/MEDIA">
AllowOverride All
Require local
Require ip 192.168.1.1
Require ip 192.168.1.2
Require ip 192.168.1.3
Require ip 192.168.1.4
Require ip 192.168.1.5
Require ip 192.168.1.6
Require ip 192.168.1.7
Require ip 192.168.1.8
Require ip 192.168.1.9
Require ip 192.168.1.10
</Directory>
</VirtualHost>
5: messed with the wampmanager.tpl file to insert a command for listing my vhosts.
6: did the net service commands, restart service commands,etc that would be required to activate the changes.

Either the tutorial is missing a part that's critical to getting this all to work, or I'm somehow not seeing it. I'll grant that the fault could be entirely mine, since I'm still fairly new to all this. On the plus side, the index is readable by other computers on the network now, and the WAMP light is green.

I have also cropped out the line of code "ServerAlias localhost" since this is the only "alias" related thing I could find that I added to the code. I then restarted service again. Icon still green, index page can still be called up, but nothing appears to have changed. Thanks for telling me about the superflous line of code there.

Also thanks again for the help. Sorry for the further confusion and problem persisting.

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: RiggsFolly (---.as43234.net)
Date: April 01, 2015 01:52PM

OK,

It seems to me that we should have a Team Viewer session. With that I can connect to your PC, see whats what and make any changes needed to get this up and running with you. Its easier than all this to and fro with posts.

If thats acceptable to you, I am in UK so GMT timezone, can you suggest a time we can connect. I am 9:00 - 16:00 and then sometimes late into the evening.

If you want to do this, install TeamViewer, or there is a "just an .exe option". Run it and then send me a Private Message (Link on the Go to: menu above the new post section ) with the TV - ID & PASSWORD
Once you have sent the ID & PWD, leave it running as each time you restart the password will change. If you need to restart TV, then you will have to send another PWD.

Dont put the password in a normal post, for obvious reasons

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Greetings! Question about multiple HDDs.
Posted by: LORDSANTAENGLISH (---.prvdri.fios.verizon.net)
Date: April 05, 2015 11:08PM

I figured it out myself, but thank you.
Here's the problem:
I wanted to be able to use something like JW web player, HTML files, and video files from another harddrive, listed as /media/
I was taken in circles, but this is nobody's fault in the end.

I poked around the WAMP menus.
APACHE - ALIAS DIRECTORIES
this immediately piqued my interest. NONE of these subfolders were in www.
It turns out that the alias command was what I needed all along, and that there's even a built in command prompt that's easy to figure out and use that will actually create an alias conf file for you, then reboot services automatically for you too afterwards so it's immediately activated. I simply entered the subfolder listing I wanted to be called up, and told it where the harddrive and folder was (using forward slashes instead of backslashes, since it told me to in the example), and voila.

I thank you all immensely for your help, I'm very grateful, and I'm sorry for the confusion and for taking up everyone's time.

Options: ReplyQuote


Sorry, only registered users may post in this forum.