Setting up-APACHE

Posted:
in Genius Bar edited January 2014
In OS X, when i click "start" udner web shairng....nothing happns?!?



it used to work, but now it doesnt happen anymore

Comments

  • Reply 1 of 4
    What do you mean "nothing happends"? Can you be more specific? <img src="confused.gif" border="0">
  • Reply 2 of 4
    torifiletorifile Posts: 4,024member
    You can start it manually from the Terminal by typing 'sudo apachectl start'. To check to make sure that you don't have an error in your apache configuration type: 'sudo apachectl configtest' Try these and see what happens. If you want to start apache on startup, you have to edit your hostconfig file.



    In the terminal, type sudo pico /etc/hostconfig. Move down to the webserver line and change it to =yes= and then ctrl-o to save, ctrl-x to exit. That should work.
  • Reply 3 of 4
    Maybe it's the mod_hfs problem from a while ago, and you just haven't encountered it yet. It's a problem that occurred after updating to 10.1. From Stepwise:



    [quote]Apache breaks upon update



    If you update (instead of re-install), it is quite likely that your Apache will not work off the bat. The situation is rather convoluted. If you haven't installed the WebSharing update, then you're probably not effected. As part of the WebSharing update Apple included the mod_hfs_Apple module which helps to prevent some of the security issues related to HFS+ case insensitivity. To enable this, there were two lines added to your /etc/httpd/httpd.conf file. However, in 10.1, Apple changed the name by which they reference the module, but not the file name. The updater doesn't change this line in your httpd.conf file. So, we'll need to do that ourselves to fix this problem.



    You need to search for the instance of apple_hfs_module and replace it with hfs_apple_module.





    [code]sudo perl -i.prefix -p -e 's/apple_hfs_module/hfs_apple_module/g' /etc/httpd/httpd.conf</pre><hr></blockquote>





    Now try and restart Apache again.<hr></blockquote>



    [ 12-08-2001: Message edited by: gorgonzola ]</p>
  • Reply 4 of 4
    nebagakidnebagakid Posts: 2,692member
    well, i think it works, it now turns on



    thank you very berry much! :cool:
Sign In or Register to comment.