cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 14, 2014 06:40PM

hi there!

is it possible to install a cms in a subfolder?

for ex c:\wamp2.5\www\site\cms-install-files

i'n trying that but can't figure out how.... is there a different way to tell 'httpd-vhosts.conf' and 'host' how to see the directory?
i'm no quite sure if i make sense.... sorry!

TIA

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 14, 2014 08:12PM

Yes, and it's a good idea to create a Virtual Host for this purpose.

Here is a document to help you create one or more virtual hosts [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(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: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 14, 2014 10:47PM

RiggsFolly Wrote:
-------------------------------------------------------
> Yes, and it's a good idea to create a Virtual Host
> for this purpose.
>
> Here is a document to help you create one or more
> virtual hosts
> [forum.wampserver.com]


thanks for the info!

i've set up a couple of vh and sites following this doc. very useful and clear for everyone.

i've tried to put the cms in a subfolder (c:\wamp2.5\www\site\cms-install-files) but wamp do not see it...

i can no t figure out what i'm doing wrong!

thank you!

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 15, 2014 12:51AM

Show me your httpd-vhost.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: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 15, 2014 11:20AM

thanks, here it is the httpd-vhost.conf. the last site do not work.
just in case the host file as well.
appreciate the help!



#localhost
<VirtualHost *:80>
ServerName localhost
ServerAlias www.localhost
DocumentRoot "d:/1-wamp/www"
<Directory "d:/1-wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
#
#una
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/una"
ServerName una
<Directory "d:/1-wamp/www/una">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
#
#tio
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/tio"
ServerName tio
<Directory "d:/1-wamp/www/tio">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
#
#dos
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/dos.net/dos"
ServerName dos
<Directory "d:/1-wamp/www/dos.net/dos">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
#
#

===============
host

#
127.0.0.1 localhost
::1 localhost
#
#
#
#
#virtual hosts
#
127.0.0.1 una
::1 una
127.0.0.1 tio
::1 tio
127.0.0.1 dos
::1 dos

=========

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 15, 2014 12:21PM

1. Ok first can I check that the folder d:/1-wamp is actually the folder you installed WAMPServer into?

2. hosts file looks ok.

3. Try adding `Options Indexes FollowSymLinks` to all of your VHOSTS like this

<VirtualHost *:80>
    ServerName localhost
    ServerAlias www.localhost
    DocumentRoot "d:/1-wamp/www"
    <Directory "d:/1-wamp/www">

        Options Indexes FollowSymLinks

        AllowOverride All
        Require local
    </Directory>
</VirtualHost>


4. I assume you are trying to launch these sites using `[tio]` for example, is that right?

---------------------------------------------------------------------------------------------
(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 1 time(s). Last edit at 12/15/2014 02:33PM by RiggsFolly.

Options: ReplyQuote
Re: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 15, 2014 01:16PM

1-yes. d:\1-wamp is the folder where WAMPServer is installed.
3-will add the 'FollowSymLinks'

4- this is the site that is not working.

#dos
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/dos.net/dos"
ServerName dos
<Directory "d:/1-wamp/www/dos.net/dos">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#

thanks for the help!

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 15, 2014 02:35PM

When you say not working, what happens when you try and run it?


Does it launch localhost ?

---------------------------------------------------------------------------------------------
(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: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 15, 2014 03:40PM

sorry, i should have said...
i get the wampserver start page and at the address bar the ServerName.
it doesn't see the content of the the subfolder 'dos' <Directory "d:/1-wamp/www/dos.net/dos">. this is the subfolder that contain the cms installation files.

if i've got this right... when i launch the vh, it points at "www/dos/" but this folder doesn't exist.

perhaps if not possible to install the cms in that second subfolder "www/dos.net/dos"?

i'm new to this and i'm not making any sense.....

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 15, 2014 05:41PM

Sorry for the delay, work got in the way!


No you can make the DocumentRoot pretty well anywhere you like.

You should be entering 'http://dos' as that is the server name.

---------------------------------------------------------------------------------------------
(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 1 time(s). Last edit at 12/15/2014 05:41PM by RiggsFolly.

Options: ReplyQuote
Re: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 15, 2014 06:14PM

great, now is working!
without your help i couldn't have seen the mistakes i was making....

thank you very much!

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 15, 2014 11:52PM

What was the problem?

---------------------------------------------------------------------------------------------
(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: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 16, 2014 04:05PM

well... i think it was my lack of knowledge and familiarity with the whole thing. trying to change different parameters at the same time... without knowing much about it.

thank you for your help.

Options: ReplyQuote
Re: cms install subfolder
Posted by: RiggsFolly (---.as43234.net)
Date: December 16, 2014 04:27PM

I know it can be a little embaracing when the penny drops, and you relise it was all your fault, but its useful for others that may read this thread to know what was wrong so they dont make the same mistakes.

---------------------------------------------------------------------------------------------
(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: cms install subfolder
Posted by: tiolon (---.demon.co.uk)
Date: December 16, 2014 07:51PM

ah! sorry. i thought that that my mistake was as i said lack of knowledge and familiarity with the software and not being too methodical...

i can't pinpoint a specific mistake, but recapitulating... i started with this vh and host setting that didn't work:


#dos
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/dos.net/dos"
ServerName dos
<Directory "d:/1-wamp/www/dos.net/dos">
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
#

====== host file

127.0.0.1 localhost
::1 localhost
#
#
#virtual hosts
#
127.0.0.1 dos
::1 dos
===============

with these settings, i got the wampserver start page and in the address bar i got the ServerName.


after your suggestion i added "Options Indexes FollowSymLinks" to the vh but it didn't make any difference that i could see. i rechecked every line for typos etc. ( in between messages i was 'messing around' with different parameters)
the final working vh is as follows.

#dos
<VirtualHost *:80>
DocumentRoot "d:/1-wamp/www/dos.net/dos"
ServerName dos
<Directory "d:/1-wamp/www/dos.net/dos">
Options Indexes FollowSymLinks
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
i don't know if the above will be of any help to anyone, as i still don't know exactly where my specific mistake(s) was/were apart from messing around without knowing anything!

Thanks again for help.


==============
one thing that i notice before i started this thread is that if there is a blank space in the NameServer in the vh (retry several times to verify) the wampserver icon remain orange and wampserver didn't work.
for ex.
in the vh NameServer site test
and in the host file 127.0.0.1 site test

after correcting the nameserver and host file i had to exit wampserver and restart for the changes to take effect but i don't know why all this happens.
but this is another story...
==================

Options: ReplyQuote


Sorry, only registered users may post in this forum.