logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: a symbol "-" make the Apache cant start up
Author
kamchi



Joined: 17 Aug 2013
Posts: 2

PostPosted: Sun 18 Aug '13 15:01    Post subject: a symbol "-" make the Apache cant start up Reply with quote

a symbol "-" make the Apache cant startup
in the httpd.conf, i changed this

<Directory "c:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

to

<Directory "c:/Apache24/htdocs">
Options -Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

if i remove the "-", Apache can startup, i dont know what is the problem, can anyone help

1. i am using WinXp SP3

2. Installed Microsoft Visual C++ 2008 SP1 Redistributable Package (x86), downloaded from the link provide by php.net download page

2. download httpd-2.4.6-win32-VC9.zip from http://www.apachelounge.com

3. download PHP 5.4.18 (VC9 x86 Thread Safe) from php.net download page

4. i didn't use php5apache2_4.dll provided by http://www.apachelounge.com, because in the php5apache2_4.dll-php-5.4-win32.zip last version is for PHP 5.4.9 only, so i use the one in the root provided by php.net

5. after that i changed some httpd.conf and php.ini settings

6. install service to WinXP

7. after that seems all fine, just when i startup the service 2 warning box "Warning: PHP startup:" will show up and some error in the error.log every time
Code:

PHP Warning:  PHP Startup:  in Unknown on line 0
[Sun Aug 18 20:41:15.671875 2013] [mpm_winnt:notice] [pid 2000:tid 380] AH00455: Apache/2.4.6 (Win32) PHP/5.4.18 configured -- resuming normal operations
[Sun Aug 18 20:41:15.687500 2013] [mpm_winnt:notice] [pid 2000:tid 380] AH00456: Apache Lounge VC9 Server built: Jul 16 2013 11:47:30
[Sun Aug 18 20:41:15.687500 2013] [core:notice] [pid 2000:tid 380] AH00094: Command line: 'C:\\usr\\Apache\\bin\\httpd.exe -d C:/usr/Apache'
[Sun Aug 18 20:41:15.750000 2013] [mpm_winnt:notice] [pid 2000:tid 380] AH00418: Parent: Created child process 1196
PHP Warning:  PHP Startup:  in Unknown on line 0
[Sun Aug 18 20:41:17.156250 2013] [mpm_winnt:notice] [pid 1196:tid 1728] AH00354: Child: Starting 64 worker threads.


so my problems is how to fix when i changed to -Indexes, cant startup the service

and the point 7.

sorry my english not very well, thx
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3058
Location: Hilversum, NL, EU

PostPosted: Sun 18 Aug '13 15:22    Post subject: Reply with quote

See the note at http://httpd.apache.org/docs/2.4/mod/core.html#options

Note
Mixing Options with a + or - with those without is not valid syntax, and will be rejected during server startup by the syntax check with an abort.



For the php start error see for example http://www.apachelounge.com/viewtopic.php?t=4749
Back to top
kamchi



Joined: 17 Aug 2013
Posts: 2

PostPosted: Sun 18 Aug '13 18:00    Post subject: all problems solved Reply with quote

thx for the info

for my old computer installed Apache 2.2.8, i was use this without any problem
Code:
Options -Indexes FollowSymLinks


anyways, from now on Apache 2.4.6, i changed to
Code:
Options -Indexes +FollowSymLinks

no problem now

and the point 7.
PHP 5.4.18 (VC9 x86 Thread Safe provided by php.net)no php_zip.dll inside
my old computer php 5.2.17, is a file php_zip.dll inside
this make me confuse, in the PHP 5.4.18, both php.ini-development and php.ini-production , also has this line, but no php_zip.dll inside the zip file by default
Code:
;extension=php_zip.dll


Thankyou for your help, all problems solved
Back to top


Reply to topic   Topic: a symbol "-" make the Apache cant start up View previous topic :: View next topic
Post new topic   Forum Index -> Apache