Apache in OS X Leopard

As I was browsing through System Preferences, I realized that I could make my own website using Apache! I have made my web content using iWeb, saved it to the folders User/Sites and /Library/WebServer/Documents. It works great on my local network, but how do I get it onto the World Wide Web?

"After you have created your Web page you will want to upload it to the Internet so other people can see the beautiful work you have done. Unless you have signed up with an online community that offers Web pages that you can create right from their site you will need an FTP client.
FTP stands for File Transfer Protocol and that is exactly what it does. It transfers files from one computer to another, in this case from your computer to the server of the company you signed up with to host your page."
You have to have some company to host you(you don't have the goods) if you don't set up your own server as I said above. But even then, you have to use "their" services one way or another. You can get dynds(or whatever it is above for free, or the other options such as some unrecognized free site. Sometimes you have to pay. Do you have or fall under the free 60 MobileMe 60 day freebie? And did you try that that tutorial? No, I bet. And no, your page ain't going to the world just 'cause you opened 8080. In that public folder you could put another folder w/a copy of your web site and then have a friend ftp to it and see if it works. I'd only do that for a friend though. You're just doing this too hard to save a buck. The other sites like your ISP and dydns provide security.....

Similar Messages

  • Apache "Forbidden" Error after Leopard Upgrade

    Hopefully this is really simple.
    I have just upgraded from Tiger to Leopard and as part of that process Apache 2.2 was installed where before I had Apache 1.3. Interesting the upgrade turned Web Sharing OFF - nice - however that was easily overcome in System Preferences.
    However, I know next to nothing about Apache so cannot easily solve the next problem. Now whenever I try to access http://localhost/~Username Apache returns "Forbidden - You do not have permission".
    It would be much appreciated if anyone could let me know where I need to put the 'tick-in-the-box' or amend some configuration setting. Thanks in advance.

    I finally got my Leopard Apache configuration working with PHP5 and with MySQL. I also solved (finally) the forbidden errors I was seeing. Here are some of the changes I made.
    1. My read permissions on my website files and directories were configured correctly so I suspected that something inside my httpd.conf file was amiss. Inside /etc/apache2/httpd.conf, I commented out two lines in the <Directory> block. This fixed the "forbidden" messages I was seeing for my virtual hosts. See below:
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    # Order deny,allow
    # Deny from all
    </Directory>
    2. I used the system.log in Console to detect and fix httpd.conf syntax errors. If you have syntax errors in any of your httpd.conf files, apache2 under Leopard will not start.
    3. I removed the comment character from the start of the line below inside httpd.conf:
    LoadModule php5_module libexec/apache2/libphp5.so
    I am now back to where I was with Tiger.

  • Apache won't recognise changes in httpd.conf

    I was trying to move a web site from Linux to OS X Leopard and came across this strange problem with apache. Basically I have created an Alias"jdk6docs" and <Directory> in /etc/apache/httpd.conf pointing to /Users/user_name/Library/Java/docs where I have unzipped copy of java jdk 6 documentation. Then I tried to restart apache with command apachectl restart to pick up new configuration. Unfortunately it did not work. Whatever I tired I could see the "[client 127.0.0.1] File does not exist: /Library/WebServer/Documents/jdk6docs" error in the apache error log file.
    It was only when I rebooted the whole machine that it suddenly started to work so now when I do http://localhost/jdk6docs I get the documentation.
    The error indicates to me that restating apache with apachectl command simply does not work, it would appear to me that the changes in the config file are not being picked up. Only machine reboot makes a difference.
    I just wonder if I'm missing something here, I can't believe someone hasn't see it before though I did google for it but couldn't find anything.
    Please note that I used apache that comes with Leopard.
    Tom

    Thanks for your suggestion but I tired that as well without any difference. I was logged as root so I did not use the sudo command.
    Tom

  • SugarCRM stops working after Leopard upgrade

    My local copy of SugarCRM CE 4.5.1 was working in Tiger before I upgraded to Leopard last week.
    After the upgrade, SugarCRM complains with the following message:
    =====
    Warning: mysqli_connect() \[function.mysqli-connect\]: (HY000/2005): Unknown MySQL server host 'localhost:/tmp/mysql.sock' (1) in /Users/orest/Sites/ruby/ruby.sugarcrm_from-backup-20080813/include/database/Mys qliManager.php on line 419
    Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /Users/orest/Sites/ruby/ruby.sugarcrm_from-backup-20080813/include/database/Mys qliManager.php on line 444
    Could not connect to server localhost:/tmp/mysql.sock as root.Unknown MySQL server host 'localhost:/tmp/mysql.sock' (1)
    =====
    A copy of PHPMyAdmin has not had any problems during the transition from Tiger to Leopard, nor have local copies of WordPress and Drupal.
    Any advice would be appreciated. I'm new to the subtleties of Apache/PHP/MySQL on Leopard, so please be gentle.
    Thanks.

    Thanks for the swift response.
    I'm familiar with the socket location issues with MySQL on Mac OS X. My local copies of WordPress and PHPMyAdmin both work with their configurations pointing to the socket at /tmp/mysql.sock. These installations were working, along with SugarCRM, before the Leopard upgrade. Only SugarCRM has stopped working after the upgrade.
    Is there something I misunderstand about your pointer?
    - O.

  • Installing phpSuExec on Mac OS X 10.5.1 Server

    Can anyone here offer any suggestions on the best way to install PHP as CGI using suExec (phpSuExec) on Mac 10.5.1 Server?
    Can it be configured using the currently installed PHP and Apache that shipped wit Leopard Server?
    Or is a new and separate install needed?
    Also, any suggestions on the recommended flags for the configuration?

    Hi,
    There is a OS X Server Category that has several Forums listed under the OS levels
    It is found here http://discussions.apple.com/category.jspa?categoryID=96
    You may find this a more useful p;lace to Start
    You can access that link from the Front page http://discussions.apple.com/index.jspa?categoryID=1 It is sort of level with the Windows Compatible stuff (Scroll down)
    8:25 PM Friday; January 14, 2011

  • Mysql in macbook pro

    Hi ,
    Am new to macbook pro, sorry if this is a basic question.
    Am trying to see the mysql in my macbook pro. The version is 10.6.8. I don't see the mysql folder in /usr/local folder.
    Not sure what am i missing.
    -Satya

    I think I used this at the time I set up MySQL:
    http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/
    It wasn't difficult.
    Later I came across this little bit of trouble / solution:
    https://discussions.apple.com/message/12191291#12191291

  • Setting up mySQL database

    I'm trying to set up mySQL database on my mid 2009 15" macbook pro running snow leopard.
    I downloaded the dmg file and installed all three files on the dmg.
    I can't connect to the database through the terminal or through system preference panel.
    Does anyone have an idiot guide or walkthrough for setting up the database?

    I'm not sure if this is going to help you, I think I used it at the time I set up MySQL:
    http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/
    And there is also this:
    https://discussions.apple.com/message/12191291#12191291

  • Problem logging to mysql

    Mysql was working fine, but suddenly I got a message "#2002 Cannot log in to the MySQL server"
    I looked into mysql documentation and it seems to a socket error.
    Any idea how to fix it?
    Thanks in advance.

    alkhater wrote:
    I have followed http://superfancy.net/coding/php-mysql-apache-in-mac-osx-leopard/
    which was an excellent article except I got stock when I looked at /etc and could not find sql.sock
    But that site is almost two years old. Plus, it was probably old information when it was written. My Apache/PHP/MySQL work just great but I've only done a fraction of what is listed on that page. I think it was correct circa 2007 or so, but I wouldn't follow it today on a 10.6 system.
    Unfortunately, at some point about a year ago, maybe earlier, the internet stopped being a source of information and has become a source of misinformation. There is more information that is flat out wrong than there is that is correct. If you aren't a real greybeard computer geek, how can you tell?
    I recommend undoing everything you did on that page to get your computer back to its original configuration. I don't have a php.ini nor any my.cnf files. I never work with UNIX configurations from the Finder. I don't trust that Finder tools with set the permissions correctly. I always use the command line and vi. I did enable the PHP modules in the Apache config file, but that is it. There are better ways to setup virtual hosts.
    You have already jacked up your system, so you are going to have to do some extra work to get it functional again. We will be glad to help, but you are going to have to learn some additional things on your own. A good place to start is to learn your way around the Console.app program so you can review log files. In the end, you will wind up knowing more about all these tools that the average person and you will have earned that knowledge

  • Snow Leopard, PHP, MySQL, Apache and Wordpress!

    Hi there,
    It's taken me most of the day to work this out, so I thought I should post about it somewhere and here, on the Apple forum, is the ideal location.
    I'm a web developer and love the fact that my MacBook works out of the box with a Unix webserver and with little effort, I was able to set up PHP and MySQL on it. I was delighted to hear that the new Snow Leopard was shipping with the latest and greatest of both. It wasn't quite that easy when it came down to running my test sites, one of which I'm working on is a Wordpress site. Far from being daunting, the solutions to the problems I had were quite simple. The issues arose from the OS not having much exposure yet and not many people having posted their experiences on the web. It was just time consuming.
    I should mention at this point that this does require some tinkering with Terminal, but not so much as to cause damage if you do something wrong.
    First off Apache. Thankfully this is as stable as it always has been. All this requires to activate it is to visit System Preferences > Sharing and switch on Web sharing. Bish-bosh, job done.
    Next off PHP. If you open a Safari window and run your phpinfo.php file (where ever you have it saved. If you don't, they're out there, it's a tiny piece of code which you can use to find out your current php setup). You'll find that everything is superb! PHP 5.3! Excellent! Hang on, scroll down to the date and time section. Whoa! What's this big fat warning here.
    That warning my friend, has been the bane of my misery all day. Wordpress hates it. HATES IT! It causes no end of grief. So what's the multi step, multi program solution?
    Open your php.ini file and add the line:
    date.timezone=Country/City
    (do a Google search for PHP Timezones and you will get the exact settings. It's not so good that it understands every city in the world. My setting was Europe/Dublin).
    That's all. This will solve your issue of the timezone error everywhere. Stop and start Apache (System Preferences > Sharing, tick off and tick back on Web Sharing) and hey presto, error is gone.
    Wait a minute, where the **** is my php.ini file. Unfortunately this is where you have to get your hands dirty. Your php.ini file is a system file which resides in the /etc/ folder. Open a terminal window and type exactly the following:
    cd /etc/
    cp php.ini.default php.ini
    This makes the php.ini file from the default. This protects the original so if you ever need to create a new copy or if you make a mistake in the next steps, you can start again.
    Next I'm going to tell you how to edit this file. This uses a program called vi (there are GUI editors out there that will save you this heartache, so if anyone knows any, please post in response. I think TextWrangler is one).
    First you need to set the php.ini file so you can edit it. Type in exactly as follows:
    sudo chmod 777 php.ini
    Sudo is the superuser commmand. It may not be needed, but stick it in anyway. If you are asked for a password, put in your normal password (that you would be asked for say if you were installing something you downloaded).
    At the next prompt, type in:
    vi php.ini
    This will open the php.ini file. Using the up and down keys, find a blank line in the file. You will notice that alot of the lines start with ';'. These are commented lines. Once you find a blank line, press 'i' to insert text. Your screen will now say '-- INSERT --' at the bottom in red. Type the following in exactly (you will NOT be able to cut and paste):
    ; Set PHP Default Timezone
    date.timezone=Europe/Dublin
    Substitute "Europ/Dublin" with your own timezone. When you are done, press escape. Now type in the following:
    :wq!
    The colon is important (not a typo on my part) as this tells vi you are going to run a command. You should now be back at your prompt. Now you need to reset the permissions on the file. Type the following:
    sudo chmod 444 php.ini
    And that's it. That's your PHP setup and finished. If you run your phpinfo.php file now, you should see your timezone under the date and time where you were getting the error before.
    Now the MySQL. This is a bit of fun because, even though MySQL ships with the system, it's not exactly set up correctly! So once again into terminal.
    This time go to the local directory:
    cd /usr/local/
    If you type in:
    ls -al
    You'll get a directory listing. This has the MySQL folder listed as mysql-5.0.77-osx10.5-x86 (or something! I did that from memory!). This IS the MySQL folder but if you, like me, had previously set the MySQL Preference Pane in your System Preferences, then it won't be able to access this. Type the following command:
    sudo cp -R /usr/local/mysql* /usr/local/mysql
    This should copy everything into a folder called mysql. It takes a couple of seconds (first time on my machine it was a good 20 seconds) to run so be patient. Now you need to do the following:
    sudo chown mysql:mysql /usr/local/mysql
    This sets the owner and group of the mysql files to 'mysql'. If you go back to your MySQL preference pane in System Preferences, you should now be able to start it (something weird about it makes it require to close and reopen the System Preferences window before it can open the MySQL pref pane. This is normal, just click ok).
    The bit that got me here, is that I thought that my activation of the MySQL was actually a new install. I tried everything to change the root user and password for MySQL but in fact, if you had it installed on Leopard, prior to upgrading to Snow Leopard, all your users and passwords are the same. If you HAVEN'T installed it before, I recommend you read the Post Installation Customisation (section 2.3) on the manual for MySQL 5.1 on http://www.mysql.com
    So that's about it. All that remains is to test Wordpress. I have phpmyadmin installed (I've heard CocoaMySQL is very good, like iTunes for db's so I'm gonna check that out later) and was able to create the new wordpress database. I changed the settings in the wp-configure.php file to match my setup but nothing worked. I changed the host from '127.0.0.1' back to 'localhost' (a common complaint of the wordpress setup) but no joy. Then I changed the host back to '127.0.0.1' and added the port :3306 (so the full host is '127.0.0.1:3306') and bingo, the install worked, my database setup and my test site worked.
    So that's it! Many of you out there will say, why didn't you just use MAMP. I did use MAMP, but I also got the Timezone issues and it took far more tinkering and hacking to make it work. I decided that, as my lovely MacBook now running lovely Snow Leopard had the lovely newest versions of PHP and MySQL installed, I'd rather get them working than use a runaround with MAMP. I'm a happier camper for it.
    I hope this helps some of you out there. I don't personally have a blog yet, but when I do, I'll post this up there for all to access. I may even add screen shots!!! But seriously, I hope this helps you all out with your installs. It's so handy to have all this stuff straightaway with Snow Leopard, it's just a matter of getting it to work.
    All the best now,
    T

    Hmmmm... I did a clean drive install of Snow Leopard because I used to do it once a year with Windows and hadn't done it in 3 with my MBP.
    First, my httpd.conf file had the line enabling PHP commented out, so when I went to see my simple file with phpinfo(), I saw the source. Saw your post, thought it was the timezone, fixed that (which will probably make wordpress happy when I get it running), and it still didn't work. Looked at the httpd.conf file, found that PHP was disabled by default, fixed that line, restarted the server, and my phpinfo() worked like a charm.
    Also if you want to edit config files, I use TextWrangler's "open hidden files" option.
    But... I have no /usr/local directory at all. Doesn't exist on my machine. Checked the options in the base install and MySQL isn't offered as an option. Checked the optional installs and MySQL isn't there. Even letting spotlight search for hidden files, the only files with MySQL in their name were from php scripts in my web folders.
    There's some stuff about installing/compiling from source.
    http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/
    Dunno if I want to go down that road quite yet.

  • Configuring httpd-ssl.conf on Leopard and Apache 2.2.6

    Hi everybody,
    I recently migrated to Leopard from Tiger 10.4.10. On my Tiger client I had installed my own web server using mod_ssl with Apache 1.3 server. On Leopard, apache 2.2.6 and OpenSSL 0.9.7 are now installed and configurations files have changed.
    Since two weeks, I'm trying to install mod_ssl without success on my machine. Thereafter, I will show only what's relevant from two configuration files :
    First -> Httpd.conf (which is in /etc/apache2/)
    #My port 80 is blocked by my isp
    Listen 8080
    <IfDefine SSL>
    LoadModule ssl_module libexec/apache2/mod_ssl.so
    </IfDefine SSL>
    LoadModule php5_module /usr/local/php5/libphp5.so
    User www
    Group www
    </IfModule>
    <IfModule mod_ssl.c>
    Listen 8080
    Listen 8083
    </IfModule>
    DocumentRoot "/Library/WebServer/Documents"
    <IfModule dir_module>
    DirectoryIndex index.htm lndex.php index.htm default.html
    </IfModule>
    ErrorLog /private/var/log/apache2/error_log
    # Virtual hosts
    #Include /private/etc/apache2/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    Include /private/etc/apache2/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include /private/etc/apache2/extra/httpd-dav.conf
    # Various default settings
    #Include /private/etc/apache2/extra/httpd-default.conf
    # Secure (SSL/TLS) connections
    #Include /private/etc/apache2/extra/httpd-ssl.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    </IfModule>
    #Include /private/etc/apache2/other/*.conf
    # end of httpd.conf
    Second ->httpd-ssl.conf (which is in /etc/apache2/extra/)( I elided personnal information)
    <IfModule mod_ssl.c>
    listen 8080
    listen 8083
    </IfModule>
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl .crl
    SSLPassPhraseDialog builtin
    #SSLSessionCache "dbm:/private/var/run/ssl_scache"
    SSLSessionCache "shmcb:/private/var/run/ssl_scache(512000)"
    SSLSessionCacheTimeout 300
    SSLMutex "file:/private/var/run/ssl_mutex"
    <VirtualHost default:8080>
    #Just to keep things sane...
    DocumentRoot "/Library/WebServer/Documents"
    ServerName myadress.com
    ServerAdmin [email protected]
    SSLEngine off
    </VirtualHost>
    <VirtualHost default:8083>
    # General setup for the virtual host
    DocumentRoot "/Library/WebServer/Documents"
    ServerName myadress.com
    ServerAdmin [email protected]
    ErrorLog "/private/var/log/apache2/error_log"
    TransferLog "/private/var/log/apache2/access_log"
    # SSL Engine Switch:
    # Enable/Disable SSL for this virtual host.
    SSLEngine on
    # SSL Cipher Suite:
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:eNULL
    # Server Certificate:
    SSLCertificateFile "/private/etc/apache2/ssl.key/server.crt"
    #SSLCertificateFile "/private/etc/apache2/server-dsa.crt"
    # Server Private Key:
    SSLCertificateFile "/private/etc/apache2/ssl.key/server.key"
    #SSLCertificateKeyFile "/private/etc/apache2/server-dsa.key"
    # Server Certificate Chain:
    #SSLCertificateChainFile "/private/etc/apache2/server-ca.crt"
    # Certificate Authority (CA):
    #SSLCACertificatePath "/private/etc/apache2/ssl.crt"
    SSLCACertificatePath "/private/etc/apache2/ssl.key/"
    #SSLCACertificateFile "/private/etc/apache2/ssl.crt/ca-bundle.crt"
    # Certificate Revocation Lists (CRL):
    #SSLCARevocationPath "/private/etc/apache2/ssl.crl"
    #SSLCARevocationFile "/private/etc/apache2/ssl.crl/ca-bundle.crl"
    # Client Authentication (Type):
    #SSLVerifyClient require
    #SSLVerifyDepth 10
    # Access Control:
    #<Location />
    #SSLRequire ( %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
    # and %{SSLCLIENT_S_DNO} eq "Snake Oil, Ltd." \
    # and %{SSLCLIENT_S_DNOU} in {"Staff", "CA", "Dev"} \
    # and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
    # and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20 ) \
    # or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
    #</Location>
    # SSL Engine Options:
    #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
    <FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory "/Library/WebServer/CGI-Executables">
    SSLOptions +StdEnvVars
    </Directory>
    # SSL Protocol Adjustments:
    BrowserMatch ".MSIE." \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    # Per-Server Logging:
    CustomLog "/private/var/log/apache2/sslrequestlog" \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </VirtualHost>
    ### end of httpd-ssl.conf
    When I uncomment this line in httpd.conf :
    LoadModule ssl_module libexec/apache2/mod_ssl.so
    and try to send the 'apachectl start' command in terminal nothing happens. Apache seems to hang and
    no "Apache/2.2.6 (Unix) DAV/2 PHP/5.2.5 configured -- resuming normal operations" in my console log. Of course, nothing in my error_log.
    I've read somewhere else that there would be a bug in 9.7 version of modssl and that we should install 9.8 version. Could anybody confirm this ?
    Is there somebody here who succeeded installing ssl on apache 2.2.6 and Leopard 10.5.1 ?
    Thanks for helping me
    Regards

    You need the latest plugin.
    Get it from at least 6.1 SP4.
    Eric
    "Michael Congdon" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am having the exact same problem with Apache 2.0.40 on Solaris 2.7 andWebLogic
    6.1 SP 1.
    Please let me know if you get any help. I don't know of anyone who hassuccessfully
    used Apache 2.0 w/WebLogic.
    "Yanjing Liu" <[email protected]> wrote:
    I tried to use apache plug-in to forward request to a wls6.1sp1 on
    Win2000.
    >>
    So I installed Apache 2.0.40 running on Solaris 8 and simply copymod_wl.so
    from
    WL_HOME\lib\Solaris to APATHE_HOME/libexec. A few lines has been added
    to my httpd.conf,
    which are:
    LoadModule weblogic_module libexec/mod_wl.so
    <IfModule mod_weblogic.c>
    WebLogicHost myweblogicserver.com WebLogicPort 7001
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    When I verify the syntax of the httpd.conf file with the followingcommand:
    >>
    /export/home/apache2/bin/apachectl configtest
    Here are the errors I got:
    Cannot load /export/home/apache2/libexec/mod_wl_20.so into server:ld.so.1
    >>
    /export/home/apache2/bin/httpd:fatal: relocation error:file
    /export/home/apache2/libexec/mod_wl_20.so: symbol apr_pool_create:referenced
    symbol not found.
    Has anyone expereinced a similiar problem?
    Thanks,
    Yanjing

  • Proper parameters for Apache in Snow Leopard

    Since reinstalling Snow Leopard, I'm having a terrible time getting Apache to work. I have a redirect going on my web site from www.xxxxx.com to www2.xxxxx.com:8102. This redirect is not working and I think the problem exists in my httpd.conf file which I had to rebuild from scratch after the reinstallation. Here are the configuration parameters - are there any obvious errors I've made? I'm banging my head against the wall here! Thanks:
    ServerRoot "/private/etc/apache2"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 80
    Listen 8102
    The apachectl -t test is showing this:
    httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Cannot load /private/etc/apache2/libexec/apache2/modauthnfile.so into server: dlopen(/private/etc/apache2/libexec/apache2/modauthnfile.so, 10): image not found
    Jim-Coyles-iMac:apache2 jimcoyle$
    It's seeming that there is some sort of linkage missing between /private and the Apache executables. I could use some insight into this issue too.

    Thanks for your help. I'm a bit of a novice at this. Here it is:
    Jim-Coyles-iMac:apache2 jimcoyle$ ls -ale@ /private/etc/apache2/libexec/apache2/modauthnfile.so
    ls: /private/etc/apache2/libexec/apache2/modauthnfile.so: No such file or directory
    To me, this means one of three things: either I have the Server Root wrong in the httpd.conf, OR, there is some sort of linkage missing between /private/etc/apache2 and the location of the modules which, in fact, is in /usr/libexec/apache2.
    Would you happen to know what the Server Root should be set to?

  • Apache authentication & Leopard

    i have an apache site running on my G%. i had password authentication working fine under Panther and Tiger. just upgraded to Leopard and it seems not to be working. it's as though none of the httpd.conf edits (that i see are still there) are not taking effect OR something changed with Apache in Leopard -- or the like.
    the httpdd.conf customizations that have worked for quite some time are:
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    AuthName "By Invitation Only"
    AuthType Basic
    AuthUserFile /Library/WebServer/.htpasswd
    Require valid-user
    Satisfy Any
    and they are still in what i believe to be the active httpd.conf file. additionally, the .htpasswd file is also located in the right place and is intact after the upgrade.
    it's not as though the site is inaccessible. access to my site from the outside world is just swell... just no authentication before providing access.
    any ideas of why the password authentication would just not work??
    thanks!!

    That was exactly it!
    I am grateful and so glad I decided to put the question to the forums. I stared and poked at it for more than an hour. I'm not an expert by far, so I was "double checking" myself in circles at 2AM. Thanks SO much for the dot connection.
    Any idea where I can read more about the Leopard specific Apache install???
    Separately, it was funny because it still took me a while to find the issue. Even when I found my way to /etc/apache2, when i then invoked bbedit httpd.conf from within that directory, it opened up the old one -- or rather the one I was already familiar with in /etc/httpd. I eventually had to have bbedit 'open hidden' to get to the proper new one.
    Anyway, thanks for the info!
    David

  • Install mod_security 2.5 on Leopard Apache 2.2??

    What is the best way to install mod_secuirty 2.5 on Apache 2.2, Mac OS 10.5 Leopard Server??
    I have not had much luck.

    It would be useful to tell us which is the error message.
    I don't know if the disk sold by HCM is an AppleWprks Install Disk or if it is a System Instal Disk for a machine which was bundled with AppleWorks.
    If it's the second case, the message clearly states that the CD can't be used to install on your machine and then you need a bit of trickery which I described some days ago in:
    http://discussions.apple.com/thread.jspa?messageID=9218114
    When the install will be done, as you will be a lucky guy with AppleWorks 6.2.4, create a disk image of 150 Mbytes (from Disk Utility) and copy the "AppleWorks 6" folder in this image.
    So you will be able to easily open AW 6.2.4 the day you will be unable to open an old file with AW 6.2.9 (after applying the updater).
    Yvan KOENIG (from FRANCE dimanche 12 avril 2009 18:03:35)

  • Apache PW Authentication & Leopard

    i have an apache site running on my G%. i had password authentication working fine under Panther and Tiger. just upgraded to Leopard and it seems not to be working. it's as though none of the httpd.conf edits (that i see are still there) are not taking effect OR something changed with Apache in Leopard -- or the like.
    the httpdd.conf customizations that have worked for quite some time are:
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    AuthName "By Invitation Only"
    AuthType Basic
    AuthUserFile /Library/WebServer/.htpasswd
    Require valid-user
    Satisfy Any
    and they are still in what i believe to be the active httpd.conf file. additionally, the .htpasswd file is also located in the right place and is intact after the upgrade.
    it's not as though the site is inaccessible. access to my site from the outside world is just swell... just no authentication before providing access.
    any ideas of why the password authentication would just not work??
    thanks!!

    That was exactly it!
    I am grateful and so glad I decided to put the question to the forums. I stared and poked at it for more than an hour. I'm not an expert by far, so I was "double checking" myself in circles at 2AM. Thanks SO much for the dot connection.
    Any idea where I can read more about the Leopard specific Apache install???
    Separately, it was funny because it still took me a while to find the issue. Even when I found my way to /etc/apache2, when i then invoked bbedit httpd.conf from within that directory, it opened up the old one -- or rather the one I was already familiar with in /etc/httpd. I eventually had to have bbedit 'open hidden' to get to the proper new one.
    Anyway, thanks for the info!
    David

  • How to re-install Apache on Leopard?

    I got interested in playing around with PHP / Apache on my MBP. Went into "sharing" in SysPrefs and enabled Web Sharing, but it doesn't work. eg: type http:/localhost, or http://localhost/~myusername in the browser address bar gives a "Can't establish a connection to the server" error.
    From what I understand, the built-in Apache web server should work out of the box. Typing 'sudo apachectl start' in Terminal gives me "org.apache.httpd: Already Loaded".
    Is there a log file somewhere that I can look at to determine what the problem is? Or, failing that, is there some way to re-install Apache from my OSX Installation disk?

    roach999 wrote:
    I got interested in playing around with PHP / Apache on my MBP. Went into "sharing" in SysPrefs and enabled Web Sharing, but it doesn't work. eg: type http:/localhost, or http://localhost/~myusername in the browser address bar gives a "Can't establish a connection to the server" error.
    From what I understand, the built-in Apache web server should work out of the box. Typing 'sudo apachectl start' in Terminal gives me "org.apache.httpd: Already Loaded".
    Is there a log file somewhere that I can look at to determine what the problem is? Or, failing that, is there some way to re-install Apache from my OSX Installation disk?
    Your best bet is to user your TM or other backup to reinstall your OS to a time just prior to your modifying the OS. Simply reinstalling Apache may not fix anything.
    You might try using Pacifist to extract Apache from the Leopard DVD, but Apache is so tightly wrapped into the system that this might not work.

Maybe you are looking for

  • How do I add settings to multiple source?

    Hi Everyone. I have about 10 sources that I bring over from Final Cut Pro into one project. I select all my sequences and export to compressor. When they import into compressor, they are all still highlighted and if I add a setting compressor will ap

  • How do I fix constant restarts on macbook pro?

    My Macbook Pro randomly asks to be restarted.  Very annoying when I'm working in a program.  Any ideas on how to fix it?  It's less a month old.

  • No startup after force quit during 10.5.6 installation

    During installation of the 10.5.6 update I had to force quit the installation as the installation froze due to the an error message - can't remember what it was but was something to do with application memory? Was doing update from downloaded file on

  • Please help with videos not being displayed

    I bought two videos at videohive. All i have to do is put my photos at the placeholders and render the videos. I did with three other videos and all went fine. but these two that i bought today are being displayed like this: http://www.andybrain.com/

  • IDM 7.1 does not support MySQL repository database?

    In the IDM 7.1 release notes it states a note under the requirements Identity Manager supports the following repository database servers... NOTE Identity Manager supports MySQL in a development environment only. MySQL is not supported in a production