Page 1 of 2

Can We create alias in XAMPP?

PostPosted: 21. August 2009 08:47
by girish_327
Hello All,
I am newbie in the XAMPP Previously I am using EasyPHP for my requirement I would like use website alias instead of putting my files in the httdocs folder.

Please help me if we can create alias in XAMPP.

Thank you


Girish Baraskar
Agnis Designers
Web Designer Kolhapur

Re: Can We create alias in XAMPP?

PostPosted: 21. August 2009 09:12
by Nobbie
>Please help me if we can create alias in XAMPP.

Why not? Xampp comes with standard Apache, simply follow the Apache documentation how to create ALIAS.

Re: Can We create alias in XAMPP?

PostPosted: 21. August 2009 11:18
by girish_327
OK... I will try this..

But still I like same kind of script which is available in EasyPHP in XAMPP.

Re: Can We create alias in XAMPP?

PostPosted: 21. August 2009 11:51
by girish_327
Hello ,

I put below code into xampp/Apache/httpd.conf

Code: Select all
### Alias EasyPHP
# ========================================
#alias
Alias "/agnis" "E://Agnis_Designers/"
<Directory "E://Agnis_Designers/">
 Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
#alias
# ========================================
### Alias End
# ============================================================================


butr its not working...

Re: Can We create alias in XAMPP?

PostPosted: 21. August 2009 13:29
by Wiedmann
butr its not working...

Why not?
- error message?
- current behavior?
- desired behavior?

("E://" is always wrong and must be "E:/".)

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 13:42
by girish_327
Hello,
I used below code in httpd.conf file and tried address http://localhost/agnis/
its giving error as follows

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
8/23/2009 6:10:28 PM
Apache/2.2.12 (Win32) DAV/2 mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

Code: Select all
Alias "/agnis" "E:/Agnis_Designers/"
<Directory "E:/Agnis_Designers/">
Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


still

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 14:00
by Wiedmann
I used below code in httpd.conf file and tried address "http://localhost/agnis/"
its giving error as follows:
Access forbidden!

So the code is correctly working. It denies access from all (IPs).

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 14:55
by girish_327
Then What should I do for to avoid this error.

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 15:06
by Wiedmann
Then What should I do for to avoid this error.

So you want allow access, and not deny it?

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 15:39
by girish_327
Yes I want Allow access these files.

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 16:01
by Wiedmann
Yes I want Allow access these files.

So you should write "Allow" in the above code, and not "Deny".

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 16:13
by girish_327
Now Getting Following Error

Code: Select all
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
can't open file /xampp/tmp/server/internal.lock: No such file or directory at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 239. at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 239 MLDBM::Sync::Lock('MLDBM::Sync=HASH(0x30f2afc)', 1) called at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 231 MLDBM::Sync::ReadLock('MLDBM::Sync=HASH(0x30f2afc)') called at D:/xampp/perl/site/lib/MLDBM/Sync.pm line 79 MLDBM::Sync::AUTOLOAD('MLDBM::Sync=HASH(0x30f2afc)', 'application') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 337 Apache::ASP::State::FETCH('Apache::ASP::State=HASH(0x3d14e4c)', 'application') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 72 Apache::ASP::State::new('Apache::ASP=HASH(0x3d14d4c)', 'application', 'server') called at D:/xampp/perl/site/lib/Apache/ASP/State.pm line 324 Apache::ASP::State::TIEHASH('Apache::ASP::State', 'Apache::ASP=HASH(0x3d14d4c)', 'application', 'server') called at D:/xampp/perl/site/lib/Apache/ASP/Application.pm line 17 Apache::ASP::Application::new('Apache::ASP=HASH(0x3d14d4c)') called at D:/xampp/perl/site/lib/Apache/ASP/StateManager.pm line 70 Apache::ASP::InitState('Apache::ASP=HASH(0x3d14d4c)') called at D:/xampp/perl/site/lib/Apache/ASP.pm line 421 Apache::ASP::new('Apache::ASP', 'Apache2::RequestRec=SCALAR(0x30f266c)', 'E:/Agnis_Designers/default.asp') called at D:/xampp/perl/site/lib/Apache/ASP.pm line 184 Apache::ASP::handler('Apache2::RequestRec=SCALAR(0x30f266c)') called at -e line 0 eval {...} called at -e line 0

If you think this is a server error, please contact the webmaster.
Error 500
localhost
8/23/2009 8:42:35 PM
Apache/2.2.12 (Win32) DAV/2 mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 16:52
by Wiedmann
That's a clean XAMPP installation, without additional changes in the config files? (apart from the lines above)

Are there any files in " E:\Agnis_Designers\?

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 16:56
by girish_327
Yes....Thousands of Files in that folder.

Re: Can We create alias in XAMPP?

PostPosted: 23. August 2009 17:14
by Wiedmann
Yes....Thousands of Files in that folder.

Also any index file which is called with "http://localhost/agnis/"?

Wiedmann wrote:That's a clean XAMPP installation, without additional changes in the config files? (apart from the lines above)

:?: