Apache crash after creating XAMPP alias directory

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache crash after creating XAMPP alias directory

Postby Fanffan34 » 30. August 2014 00:54

Hello all,
Thanks in advance for your help. I'm a XAMPP, French newbie :shock: ... and I want to create my web site on Dreamweaver using XAMPP server. The purpose was to let the source files of my web site in a different location from the XAMPP files.

Creating XAMPP Alias Directories, the first thing I do is add an alias folder to my XAMPP install, running on Windows 7, and create the following folder :C:\xampp\apache\conf\alias

Next, I change my Apache configuration file httpd.conf under : C:\xampp\apache\conf\ with Notepad

Once I’ve opened httpd.conf, I add the following to the end and save it :Include "conf/alias/*"

Now Apache suppose to look in the alias folder for more configuration files. This way I can add an alias by simply adding a new configuration file to the conf/alias/ folder.



Then, I add a XAMPP alias directory . I wrote the following instructions in a file named "fel.conf” and place it in the alias folder:

Alias /fel "C:/Dreamweaver_cs5/FEL/"

<Directory "C:/Dreamweaver_cs5/FEL/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Options Indexes FollowSymLinks MultiViews
Options All
Order allow,deny
Allow from all
Require All granted

</Directory>

Alias /dev "C:\users\foo\programming\dev"



After that I restart Apache and it crashes down with this comment :

00:36:45 [Apache] Status change detected: running
00:36:46 [Apache] Status change detected: stopped
00:36:46 [Apache] Error: Apache shutdown unexpectedly.
00:36:46 [Apache] This may be due to a blocked port, missing dependencies,
00:36:46 [Apache] improper privileges, a crash, or a shutdown by another method.
00:36:46 [Apache] Press the Logs button to view error logs and check
00:36:46 [Apache] the Windows Event Viewer for more clues
00:36:46 [Apache] If you need more help, copy and post this
00:36:46 [Apache] entire log window on the forums


In addition, I have an issue with the error log. My error log file is empty !!! :cry: :cry: :cry:
So the Windows events are the following ones :

System
- Provider
[ Name] Apache Service
- EventID 3299
[ Qualifiers] 0
Level 2
Task 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2014-08-29T22:36:45.000000000Z
EventRecordID 74041
Channel Application
Computer fanffan-PC
Security

[i]- EventData
The Apache service named
reported the following error: >>>
AH00526: Syntax error on line 1 of C:/xampp/apache/conf/alias/fel.conf:


+ System
- Provider
[ Name] Apache Service
- EventID 3299
[ Qualifiers] 0
Level 2
Task 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2014-08-29T21:59:13.000000000Z
EventRecordID 74029
Channel Application
Computer fanffan-PC
Security

- EventData

The Apache service named

reported the following error: >>>
Alias takes two arguments, a fakename and a realname [/i]


Please could you help me ... !!!! :roll:

Fanffan34
Last edited by Fanffan34 on 30. August 2014 10:03, edited 2 times in total.
Many thanks.
Fanffan34
User avatar
Fanffan34
 
Posts: 5
Joined: 30. August 2014 00:06
Location: France - Paris
Operating System: Windows 7

Re: Apache crash after creating Xamp alias directory

Postby gsmith » 30. August 2014 08:57

try

Alias /fel "C:/Dreamweaver_cs5/FEL"


and this

Order allow,deny
Allow from all

was the old pre 2.4 way to do this in 2.4

Require all granted

use just the Require all granted one, not both

You also have 3 Options lines.
1: Options Indexes FollowSymLinks Includes ExecCGI
which further down gets overwritten with
2: Options Indexes FollowSymLinks MultiViews
which gets overwritten again on the very next line with
3: Options All

one Options line per <Directory></Directory>

So assuming you wanted All including MultiViews (note caveat about All & MultiViews)

Alias /fel "C:/Dreamweaver_cs5/FEL"
<Directory "C:/Dreamweaver_cs5/FEL">
Options All MultiViews
AllowOverride All
Require All granted
</Directory>
gsmith
 
Posts: 194
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win XP to 2012R2/VS 6,9,11,14

Re: Apache crash after creating XAMPP alias directory

Postby Fanffan34 » 30. August 2014 10:08

Thanks gsmith, I will try, following your advices. :)
Many thanks.
Fanffan34
User avatar
Fanffan34
 
Posts: 5
Joined: 30. August 2014 00:06
Location: France - Paris
Operating System: Windows 7

Re: Apache crash after creating XAMPP alias directory

Postby Fanffan34 » 30. August 2014 16:12

Hello gsmith,

Sorry to comeback with bad news .... I did the way you tell me but again the same issue with XAMPP !!!! it starts and crash again with same comment error comment :

17:04:51 [main] Initializing Control Panel
17:04:51 [main] Windows Version: Windows 7 Professional SP1 64-bit
17:04:51 [main] XAMPP Version: 1.8.3
17:04:51 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
17:04:51 [main] You are not running with administrator rights! This will work for
17:04:51 [main] most application stuff but whenever you do something with services
17:04:51 [main] there will be a security dialogue or things will break! So think
17:04:51 [main] about running this application with administrator rights!
17:04:51 [main] XAMPP Installation Directory: "c:\xampp\"
17:04:51 [main] Checking for prerequisites
17:04:51 [main] All prerequisites found
17:04:51 [main] Initializing Modules
17:04:51 [main] Starting Check-Timer
17:04:51 [main] Control Panel Ready
17:04:58 [Apache] Attempting to start Apache service...
17:05:08 [Apache] Status change detected: running
17:05:08 [Apache] Status change detected: stopped
17:05:08 [Apache] Error: Apache shutdown unexpectedly.
17:05:08 [Apache] This may be due to a blocked port, missing dependencies,
17:05:08 [Apache] improper privileges, a crash, or a shutdown by another method.
17:05:08 [Apache] Press the Logs button to view error logs and check
17:05:08 [Apache] the Windows Event Viewer for more clues
17:05:08 [Apache] If you need more help, copy and post this
17:05:08 [Apache] entire log window on the forums


Windows events are the same following ones :

The Apache service named reported the following error:
>>> AH00526: Syntax error on line 1 of C:/xampp/apache/conf/alias/fel.conf: .

The Apache service named reported the following error:
>>> Alias takes two arguments, a fakename and a realname .


I don't know what to do .... :cry: :?: :cry: :?:
Please HELP !!!! :roll:
Many thanks.
Fanffan34
User avatar
Fanffan34
 
Posts: 5
Joined: 30. August 2014 00:06
Location: France - Paris
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests