Upgrade to Leopard mostly smooth, but has small glitch

Bill Hernandez ms at mac-specialist.com
Fri Mar 7 12:31:34 PST 2008


I just installed Leopard on iMacG5 and everything went off very well.

However when I restarted and looked at all the usual preferences, I  
launched the terminal and tried :

[2008.07.03](02:06PM) -> [username] ~ $ ps aux | grep httpd
username   305   0.0  0.0   599740    388 s001  S+    2:07PM   0:00.00  
grep httpd

     --> which showed that Apache was not running, so I tried :

2008.07.03](01:59PM) -> [username] ~ $ sudo launchctl load -w /Library/ 
LaunchDaemons/org.macports.apache2.plist
Password:

launchctl: Dubious ownership on file (skipping): /Library/ 
LaunchDaemons/org.macports.apache2.plist
nothing found to load

     --> And that didn't work so well, so I tried :

[2008.07.03](02:07PM) -> [username] ~ $ sudo /opt/local/apache2/bin/ 
apachectl -k start
Password:
/opt/local/apache2/bin/apachectl: line 70: ulimit: open files: cannot  
modify limit: Invalid argument

     --> which showed an error on line 70 of apachectl
     --> but it tried to see if it launched anyway, and it did as it  
shows below

[2008.07.03](02:07PM) -> [username] ~ $ ps aux | grep httpd
username   320   0.0  0.1    97264   1204   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
username   319   0.0  0.1    97264   1204   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
username   318   0.0  0.1    97264   1204   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
username   317   0.0  0.1    97264   1204   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
username   316   0.0  0.1    97264   1204   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
root       315   0.0  0.0    97164    888   ??  S     2:07PM    
0:00.00 /opt/local/apache2/bin/httpd -k start
root       312   0.0  0.3    97264   7232   ??  Ss    2:07PM    
0:00.34 /opt/local/apache2/bin/httpd -k start
username   322   0.0  0.0   599740    384 s001  R+    2:08PM   0:00.00  
grep httpd

[2008.07.03](02:08PM) -> [username] ~ $

Any ideas why I got :

( 1 ) launchctl: Dubious ownership on file (skipping): /Library/ 
LaunchDaemons/org.macports.apache2.plist
        nothing found to load

( 2 ) /opt/local/apache2/bin/apachectl: line 70: ulimit: open files:  
cannot modify limit: Invalid argument

     --> Here's what I found :

[2008.07.03](02:08PM) -> [username] ~ $ open -a ~/Applications/ 
BBEdit.app /opt/local/apache2/bin/apachectl

# LINE 59
# Set this variable to a command that increases the maximum
# number of file descriptors allowed per child process. This is
# critical for configurations that use many file descriptors,
# such as mass vhosting, or a multithreaded server.
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
# --------------------                              --------------------
# ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||

# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
     $ULIMIT_MAX_FILES
fi
# LINE 72

Bill Hernandez
Plano, Texas





More information about the macports-users mailing list