[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fink-beginners
Subject:    Re: [Fink-beginners] apache [SOLVED]
From:       Noah <admin2 () enabled ! com>
Date:       2007-08-10 17:46:07
Message-ID: 46BCA45F.1010407 () enabled ! com
[Download RAW message or body]


thanks Alex!


Alexander K. Hansen wrote:
> Noah wrote:
>>
>>
>> Alexander K. Hansen wrote:
>>> Noah wrote:
>>>> more below
>>>>
>>>> Alexander K. Hansen wrote:
>>>>> Noah wrote:
>>>>>> look below
>>>>>>
>>>>>> Alexander Hansen wrote:
>>>>>>> Noah wrote:
>>>>>>>> Hi there Finksters,
>>>>>>>>
>>>>>>>> After a "Dist-Upgrade packages" I have the follow issue stopping 
>>>>>>>> the completion of the upgrade.
>>>>>>>>
>>>>>>>> Any clues how I can do that?
>>>>>>>>
>>>>>>>> Reading Package Lists...
>>>>>>>> Building Dependency Tree...
>>>>>>>> 0 packages upgraded, 0 newly installed, 0 to remove and 0  not 
>>>>>>>> upgraded.
>>>>>>>> 1 packages not fully installed or removed.
>>>>>>>> Need to get 0B of archives. After unpacking 0B will be used.
>>>>>>>> Setting up apache2-mpm-worker (2.0.59-11) ...
>>>>>>>> Syntax error on line 50 of /sw/etc/apache2/httpd.conf:
>>>>>>>> ServerRoot must be a valid directory
>>>>>>>> /sw/bin/dpkg: error processing apache2-mpm-worker (--configure):
>>>>>>>>   subprocess post-installation script returned error exit status 1
>>>>>>>> Errors were encountered while processing:
>>>>>>>>   apache2-mpm-worker
>>>>>>>> E: Sub-process /sw/bin/dpkg returned an error code (1)
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Noah
>>>>>>>>
>>>>>>>>
>>>>>>>>   
>>>>>>> Did you try what Martin suggested to you previously? (If so, no 
>>>>>>> answer showed up on the lists)
>>>>>>>
>>>>>>> http://article.gmane.org/gmane.os.macosx.fink.beginners/20011
>>>>>>
>>>>>>
>>>>>>
>>>>>> okay thanks for pointing that to me.  I didnt see that response.
>>>>>>
>>>>>> here is the output - looks like there is a missing part of the 
>>>>>> apache configuration.
>>>>>>
>>>>>> Macintosh-2:~ $ sudo /sw/sbin/apache2ctl restart
>>>>>> apache2: could not open document config file 
>>>>>> /sw/etc/apache2/apache2.d
>>>>>>
>>>>>>
>>>>> Hmmm....I don't have  /sw/etc/apache2/apache2.d at all on my system 
>>>>> (and my apache2 from Fink works).  I had some issues with 
>>>>> installing it, though, as the upgrade path from the prior version 
>>>>> seemed not to be particularly clean (and was apparently not cleaned 
>>>>> up when this got moved to stable).
>>>>>
>>>>> See what's calling for /sw/etc/apache2/apache2.d  by running "grep 
>>>>> -r apache2.d /sw/etc/apache2/*" .
>>>>
>>>>
>>>> Hi,
>>>>
>>>> is there anyway to completely reinstall the apache2 installation.  I am
>>>> finding a ton of errors and what not.
>>>>
>>>> here are the latest.
>>>>
>>>> # /sw/sbin/apache2ctl restart
>>>> [Fri Aug 10 08:23:45 2007] [warn] The Alias directive in
>>>> /sw/etc/apache2/apache2.conf at line 129 will probably never match
>>>> because it overlaps an earlier Alias.
>>>> httpd not running, trying to start
>>>> (48)Address already in use: make_sock: could not bind to address 
>>>> [::]:80
>>>> no listening sockets available, shutting down
>>>> Unable to open logs
>>>>
>>>> from the configuration file:
>>>> Macintosh-2:/Users/noahgarrettwallach root# grep "ServerRoot"
>>>> /sw/etc/apache2/httpd.conf
>>>> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
>>>> # with ServerRoot set to "/sw/var/apache2" will be interpreted by the
>>>> # ServerRoot: The top of the directory tree under which the server's
>>>> ServerRoot "/sw/var/apache2"
>>>> # This should be changed to the ServerRoot/manual/.  The alias provides
>>>> Macintosh-2:/Users/noahgarrettwallach root#
>>>>
>>>>
>>>> Macintosh-2:/Users/noahgarrettwallach root# ls -dl /sw/var/apache2/
>>>> drwxr-xr-x   3 root  admin  102 Aug 10 06:49 /sw/var/apache2/
>>>> Macintosh-2:/Users/noahgarrettwallach root# ls -l /sw/var/apache2/
>>>> total 0
>>>> drwxr-xr-x   2 root  admin  68 Aug 10 06:49 logs
>>>>
>>>>
>>> Make a backup of /sw/etc/apache2, then "fink purge" any installed 
>>> package with "apache2" in its name.  After that try removing 
>>> /sw/etc/apache2.  At that point you ought to be able to run "fink 
>>> install apache2-mpm-worker" (or whichever flavor you want).  It'll be 
>>> up to you as to how to reintegrate any of your customizations back 
>>> into the server.  One thing to note is that httpd.conf is deprecated.
>>>
>>
>>
>> I am not sure I am purging correctly - the command does not appear to 
>> find anything to purge.
>>
>> Macintosh-2:/Users/noahgarrettwallach root# fink purge apache2
>> Information about 6477 packages read in 2 seconds.
>> WARNING: this command will remove the package(s) and remove any
>>          global configure files, even if you modified them!
>>
>> Do you want to continue? [Y/n]
>> WARNING: apache2 is not installed, skipping.
>> Nothing purged
>> Macintosh-2:/Users/noahgarrettwallach root# fink purge apache2*
>> Information about 6477 packages read in 1 seconds.
>> WARNING: this command will remove the package(s) and remove any
>>          global configure files, even if you modified them!
>>
>> Do you want to continue? [Y/n]
>> Failed: no package specified for command 'purge'!
>> Macintosh-2:/Users/noahgarrettwallach root# fink purge apache2\*
>> Information about 6477 packages read in 0 seconds.
>> WARNING: this command will remove the package(s) and remove any
>>          global configure files, even if you modified them!
>>
>> Do you want to continue? [Y/n]
>> Failed: no package specified for command 'purge'!
>> Macintosh-2:/Users/noahgarrettwallach root#
>>
>>
> Try "fink list -i apache2".
> The install commands don't do wildcards.
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-beginners
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic