Page 1 of 1

problem with apache as service

PostPosted: 10. December 2008 21:38
by nicolas.poulain
Hi

I tri to install Apache as a service but I can't :(

I have tried by clicking the SVC check in Xampp control panel and by starting the file apacheinstallservice.bat

The two times it seem's to be the same result :
- apache2.2 is really in the list of the MS-services
- but it can't start with the following message
Code: Select all
Installing Apache2.2 as an service
Installing the Apache 2.2 service
the apache2.2 service is succefully installed
Testing httpd.conf
Errors reported here must be corrected before the service can be started
Now we start apache2.2
le service apache2.2 démarre
le service n'a pas pu être lancé
une erreur spécifique s'est produite : 1.
vous obtiendrez une aide supplémentaire en entrant NET HELPMSG 3547.


What can I do to resolve ?

Nico

Re: problem with apache as service

PostPosted: 10. December 2008 21:51
by Wiedmann
Read the Windows eventlogs (system and application).

Re: problem with apache as service

PostPosted: 10. December 2008 22:02
by nicolas.poulain
In apache error.log nothing appear
Where are the win logs ?

Nico

PS : apache -t > all is fine and correct

Re: problem with apache as service

PostPosted: 10. December 2008 22:04
by Wiedmann

Re: problem with apache as service

PostPosted: 10. December 2008 22:18
by nicolas.poulain
Thanks ;)

The message is :
Directory X:/.... path is invalid

X:\ is a network drive !

I have the following configuration in httpd.conf (really in extra/httpd-xampp.conf)
Code: Select all
Alias /test "X:/cl_test/"
<directory "X:/cl_test">
AllowOverride AuthConfig
Order allow,deny
Allow from all
</directory>


Is it impossible to work with a network drive ?

A lot of thanks
Nico

Re: problem with apache as service

PostPosted: 10. December 2008 22:24
by Wiedmann
Is it impossible to work with a network drive ?

Yes and no... Services can't work with network drive mappings. Use the UNC paths ("//server/share/path") instead.

Re: problem with apache as service

PostPosted: 10. December 2008 22:26
by glitzi85
For explanation WHY Services can not work with mapped drives:

Network Drives are connected when logging on to the PC, using the credentials of the current user to map the drives. The services are normally started when the computer is booting, so before the user is logged on. That's the reason why it is not possible to use the drive letters.

glitzi

Re: problem with apache as service

PostPosted: 10. December 2008 22:39
by nicolas.poulain
Wiedmann wrote:
Is it impossible to work with a network drive ?

Yes and no... Services can't work with network drive mappings. Use the UNC paths ("//server/share/path") instead.


The same thing for mysql :
datadir="//TEST/dir/mysql_data"

Nico

Re: problem with apache as service

PostPosted: 10. December 2008 23:02
by nicolas.poulain
What become the absolute path when you do that ?

If I do an include("//TEST/dir/file.php") it doesn't work :(

More any good idea ;)

Nico

Re: problem with apache as service

PostPosted: 10. December 2008 23:08
by nicolas.poulain
nicolas.poulain wrote:What become the absolute path when you do that ?

If I do an include("//TEST/dir/file.php") it doesn't work :(

More any good idea ;)

Nico


Sorry work fine with that :\
Thanks for all

So CollectionLibre from http://www.collectionlibre.org can now work fine with XAMPP as servcies :D

Nico