How to install php5 on clean 10.4 Server install?

Can anyone walk me though the steps of installing php5 (entropy version) on a clean install of 10.4 Server updated via software update to 10.4.x?
I'm clearly doing something wrong as the last three attempts php5 says it installs and then apache fails to start up.
As this isn't my area of expertise I'm at a loss as to what exactly I'm doing wrong.
Thanks

did you check /etc/httpd/httpd.conf to make sure the entropy php commands were appended to the end of the conf file?

Similar Messages

  • How many times can you clean install leopard on the same computer?

    How many times can you clean install leopard on the same computer? Will the leopard dvd run out of installations and not let you install anymore?

    Hi colman Prez;
    Now that the funny comments have been made, I have a serious question and that why are you worry about reinstalling Leopard with an Erase & Install which is what I take that you mean when you say clean install. In actually fact there is no such thing in OS X as a clean install.
    I am curious because in all the years I have used OS X, I have yet to do an Erase & Install yet.
    I know with Windows that they suggest reformatting and reinstalling at the drop of a hat but that isn't true with OS X.
    Allan

  • How can I do a clean install of Mountain Lion?

    I have an older MacBook Pro that I'm selling. I upgraded to Mounbtain Lion, but there was not an option to do a clean install (wiping everything clean and starting fresh). I want to do this to make sure all of my data is removed before I sell it. How can I do a clean install of Mountain Lion in order to accomplish this? In the past, from DVDs, it was easy. Thanks!

    Budrew wrote:
    Sure, but I would imagine that it will be common for people to sell their Macs with upgraded OSs.
    That was only OK when you bought the Upgrade DVD and included both the original system discs and the disc you used to upgrade the OS.
    Since Apple has now gone to the Download only model of OS X you now always need to install the Original OS or an Upgraded version that you have the DVD disc for.
    If a Mac came with Leopard and you upgraded to Snow Leopard and then to Lion or Mt Lion you must remove Lion or Mt Lion and reinstall either Leopard or Snow Leopard and include all the discs for that system, Originals and the Upgrde Snow Leopard DVD.
    If your system came Snow Leopard and you installed Lion or Mt Lion thenn again you remoeve Lion or Mt Lion and reinstall Snow Leopard and include the original discs that came with the system
    If your system came with Lion and you upgraded to Mt Lion then you remove Mt Lion and reinstall Lion.
    The reason for all of that is because with the Download only OS all upgrades are TIED to YOUR Apple ID, not to the computer. So the new owner can not reinstall Lion or Mt Lion, whichever you upgraded to, without using your Apple ID.

  • How can I do a clean install after doing an update using a volume purchase license?

    My question is this:  We purchased 20 licenses of Lion through the Volume Purchase program.  2 of the users installed it first doing an upgrade - now they have decided they want to do a clean install.  How can they do a clean install - I can't give them the installer cd we created because I have been informed by Apple Sales that it will use another license from our quantity of 20 - but they offered no other solution.
    We would rather not waste another license just to do a clean install.
    Thanks!

    Install or Reinstall Lion from Scratch
    If possible backup your files to an external drive or second internal drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.
    This method relies on the Internet Recovery system. This is the standard procedure when you don't have an installer or Lion came pre-installed.

  • How do I do a clean install of Mountain Lion?

    I already have Mac OS X Mountain Lion on my MacBook Pro A1126, but how can I do a clean install on it? Do I have to buy a installation disc or from Mac App Store?
    Thanks in advance!

    I differentiate between a 'clean' installation and a 'fresh' installation by this meaning: a 'clean' installation means that you're going to erase the boot drive and 'cleanly' install everything, including OS X anew, whereas, for me, a 'fresh' installation means only that you're NOT going to erase the entire drive, but only install a 'fresh' version of OS X.
    So which do you wish to do?
    Either way, you should just be able to boot into your Recovery partition (hold down the command and R keys whilst booting) and then either install a 'fresh' version of OS X, or erase the contents of the drive, using Disk Utility, and do a 'clean' install of OS X.
    Mountain Lion does not come on a disc - you should have purchased it via the App Store and you may need your Apple ID to install again from the Recovery partition.
    Does that help?

  • How do I perform a clean install of ios8 on my iPhone 5

    I would like to perform a clean install, meaning not putting ios8 on top of ios7.
    Is there an advantage to doing this? When I installed Mavericks on my MBP I had the Genius Bar do it and it was like a new Mac,
    So, my thoughts are that a clean install, starting as if it were a new phone would be the same.
    Is this true?
    How would I do that after backing up through the latest iTunes.
    Would I need to set up pop mail accounts from scratch or would that come back in the restore backups
    As you can see, I am unsure as to the best way to make my iPhone 5 run trouble free with ios8
    Advice and instructions are welcome
    jojoguitar

    Okay....so Apple does have a guide related to Mass deployment which includes a rough way to do a clean OS X Server clean install. You need to use a NetBoot Lion Server as a boot, but it works.
    http://support.apple.com/kb/HT4746
    Use these steps to create a NetRestore image of an un-configured Lion Server:
    Install OS X Lion, and then Lion Server. This server will be used to create the NetRestore image.
    On the server, install the app named "Install Mac OS X Lion" from the Mac App Store (a network connection is required for this process).
    Install the Server Admin Tools from http://support.apple.com/downloads/ on the server.
    Open the "Install Mac OS X Lion" application, and install to an empty volume. This volume can be a spare partition or external hard drive. Be sure to click the Customize button and to select the Lion Server software.
    Once installation is complete, the server will restart from the newly installed volume.  Instead of completing the setup assistant, press Command-Q to quit the assistant.
    Select the option to shut the server down.
    Restart the server and hold the Option key.
    When the Startup Manager appears, select the volume which you've already configured Lion Server on.
    Open System Image Utility and create a NetRestore image from the newly installed (and still un-configured) volume. If you'd prefer to image the volume after it has already been configured, you can proceed with the setup assistant before booting back to the original installation created in step 1.

  • How do I do a Clean install of Tiger and Classic?

    My G4 came with Jaguar. OS 9 was part of the complete installation, that you could install or choose not to install. My computer has been having a lot of issues lately and I think that a clean install would be a good idea, especially, since I used an upgrade to install Panther and then installed Tiger on top of Panther. I want to install classic and Tiger. How do I do this properly? Thanks

    I plan to back up my personal files and any
    downloaded software I have.
    Amazing that. You've told us that numerous times, but
    you've failed to provide us with information on
    HOW you're going to do this. That is, please
    explain WHAT you're using for the backup and
    WHERE you're planning on using to store the
    backup.
    All Power Macs come with the capability of burning CD's today. Mine can also burn DVD's, so backing up MY files is NOT a problem. I just can't clone my whole drive. Now, I'm not sure how this is pertinent in answering my question about how to properly do a clean install of Tiger and be able to install Classic. My son however, just told me he thinks that all I need to do is to clean-install Tiger. Then, insert the installation CD with classic on it that came with my computer. Find the invisible file, which is a disk image and drag the contents of the disk image to my computer. If anyone can tell me if this is correct, I would appreciate it.

  • How do I do a clean install from Lion download

    how do I do a clean install from Lion download ?
    My old tower will only stretch to Lion which I have had to download and installed it following the instructions.
    My local Applestore genius has told me to do a clean install but I don't have or can't find a copy of the Lion osX to use.
    Applegadge

    Welcome to the Apple Support Communities
    If you are already using OS X Lion, use OS X Recovery to reinstall OS X and erase the disk. See > http://support.apple.com/kb/HT4718
    Follow these steps:
    1. Make a backup of the data you don't want to lose after erasing the hard disk.
    2. Start your computer holding Command and R keys to start in OS X Recovery, and open Disk Utility.
    3. Choose "Macintosh HD" or the OS X partition in the sidebar, go to the Erase tab and erase the disk.
    4. Close Disk Utility and reinstall OS X

  • How do I perform a clean install of Lion Server?

    There seem to be many sites documenting how to pull out the ESD image and burn a bootable copy of Lion.
    What I'd like to know is how do I perform a clean installation of Lion Server?
    Is it possible to just install Lion and then open the App Store and install from Purchase without being charged again?

    Okay....so Apple does have a guide related to Mass deployment which includes a rough way to do a clean OS X Server clean install. You need to use a NetBoot Lion Server as a boot, but it works.
    http://support.apple.com/kb/HT4746
    Use these steps to create a NetRestore image of an un-configured Lion Server:
    Install OS X Lion, and then Lion Server. This server will be used to create the NetRestore image.
    On the server, install the app named "Install Mac OS X Lion" from the Mac App Store (a network connection is required for this process).
    Install the Server Admin Tools from http://support.apple.com/downloads/ on the server.
    Open the "Install Mac OS X Lion" application, and install to an empty volume. This volume can be a spare partition or external hard drive. Be sure to click the Customize button and to select the Lion Server software.
    Once installation is complete, the server will restart from the newly installed volume.  Instead of completing the setup assistant, press Command-Q to quit the assistant.
    Select the option to shut the server down.
    Restart the server and hold the Option key.
    When the Startup Manager appears, select the volume which you've already configured Lion Server on.
    Open System Image Utility and create a NetRestore image from the newly installed (and still un-configured) volume. If you'd prefer to image the volume after it has already been configured, you can proceed with the setup assistant before booting back to the original installation created in step 1.

  • How do I do a clean install of iTunes ?

    how do I do a clean install of iTunes ?
    One of the guys at apple support suggested I do this after I upgraded itunes - now it shuts itself down after 2 seconds !!!
    When is apple going to fix this ?

    Is there something Apple needs to fix? While you and a handful of other people are having problems there are  millions of others who do not come here and post simply because they are not having problems.  Given the complexity of computers there is likely some small file that is not being installed properly or there is something else you have installed that is conflicting with other software, or your computer file management is having problems and something is not where it should be.
    First, I would check if it is really a problem with the application. You do not provide details on what is happening so it is hard to help.  Try starting itunes in Safe Mode:
    iTunes Safe Mode - http://hints.macworld.com/article.php?story=20090915214613484
    iTunes: Troubleshooting issues with third-party iTunes plug-ins - http://support.apple.com/kb/TS3430 - hold down the Option and Command keys (on Mac OS X) or holding down the Shift and Control keys (on Windows) while opening iTunes
    If that doesn't help (short-term), restart normally but hold down the option key and make a new, blank library.  If itunes starts that way then you have a corrupt library file and it will need to be rebuilt (more information later if that is indeed the issue).
    If you're determined to reinstall itunes, I don't know if this works with Lion since I believe they really tied itunes into the operating system rather than leaving it as an independent application, but try dragging the iTunes application in your Application folder to the trash, then empty the trash.  Back up your computer before installing any new software.  If the update does something you don't like this is the only way to revert.
    Verify your hard drive with Disk Utility's First Aid.  If it reports problems then that has to be dealt with before you do anything else.
    Use Disk Utility to repair permissions.
    Download the update from Apple.  Some of us don't use Software Update to actually update, just so we know the installer file is safe and sound on our computers for use.
    Install the update.
    Repair permissions again.
    Restart your computer.
    There are also preferences files that could be the issue. Those are hidden from you in Lion and again, it's a separate post on how to deal with those.

  • I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    Download again, move the existing file out of the applications folder first.

  • How do you do a  Clean install lion

    How do you do a clean install of lion? My iMac is 8 yr old and has gotten sluggish. At one point it was suggested that I might want to do a clean install but no one ever told me how to do that since we don't have a disk!

    Assuming you already have Lion installed, boot into Recovery Mode (Command-R). From there you can reinstall Lion. Note, however, that a clean install means you first erase the drive you want to do the clean install on, and unless you have a complete backup of everything that's currently on it, you'll lose it all; the clean install will leave you with a fresh operating system but nothing else. To get it all back, make that external clone, then when the clean install is finished on the internal, Setup Assitant will run and you can point it at the external clone to get all your stuff back.

  • How To Install A (Almost) Working Lion Server With Profile Management/SSL/OD/Mail/iCal/Address Book/VNC/Web/etc.

    I recently installed a fresh version of Lion Server after attempting to fix a broken upgrade. With some help from others, I've managed to get all the new features working and have kept notes, having found that many or most of the necessary installation steps for both the OS and its services are almost entirely undocumented. When you get them working, they work great, but the entire process is very fragile, with simple setup steps causing breaks or even malicious behaviors. In case this is useful to others, here are my notes.
    Start with an erased, virgin, single guid partitioned drive. Not an upgrade. Not simply a repartitioned drive. Erased. Clean. Anything else can and probably will break the Lion Server install, as I discovered myself more than once. Before erasing my drive, I already had Lion and made a Lion install DVD from instructions widely available on the web. I suppose you could also boot into the Lion recovery partition and use disk utility to erase the OS X partition then install a new partition, but I cut a DVD. The bottom line is to erase any old OS partitions. And of course to have multiple, independent backups: I use both Time Machine with a modified StdExclusions.plist and Carbon Copy Cloner.
    Also, if you will be running your own personal cloud, you will want to know your domain name ahead of time, as this will be propagated everywhere throughout server, and changing anything related to SSL on Lion Server is a nightmare that I haven't figured out. If you don't yet have a domain name, go drop ten dollars at namecheap.com or wherever and reserve one before you start. Soemday someone will document how to change this stuff without breaking Lion Server, but we're not there yet. I'll assume the top-level domain name "domain.com" here.
    Given good backups, a Lion Install DVD (or Recovery Partition), and a domain name, here are the steps, apparently all of which must be more-or-less strictly followed in this order.
    DVD>Disk Utility>Erase Disk  [or Recovery Partition>Disk Utility>Erase Partition]
    DVD>Install Lion
    Reboot, hopefully Lion install kicks in
    Update, update, update Lion (NOT Lion Server yet) until no more updates
    System Preferences>Network>Static IP on the LAN (say 10.0.1.2) and Computer name ("server" is a good standbye)
    Terminal>$ sudo scutil --set HostName server.domain.com
    App Store>Install Lion Server and run through the Setup
    Download install Server Admin Tools, then update, update, update until no more updates
    Server Admin>DNS>Zones [IF THIS WASN'T AUTOMAGICALLY CREATED (mine wasn't): Add zone domain.com with Nameserver "server.domain.com." (that's a FQDN terminated with a period) and a Mail Exchanger (MX record) "server.domain.com." with priority 10. Add Record>Add Machine (A record) server.domain.com pointing to the server's static IP. You can add fancier DNS aliases and a simpler MX record below after you get through the crucial steps.]
    System Prefs>Network>Advanced>Set your DNS server to 127.0.0.1
    A few DNS set-up steps and these most important steps:
    A. Check that the Unix command "hostname" returns the correct hostname and you can see this hostname in Server.app>Hardware>Network
    B. Check that DNS works: the unix commands "host server.domain.com" and "host 10.0.1.2" (assuming that that's your static IP) should point to each other. Do not proceed until DNS works.
    C. Get Apple Push Notification Services CA via Server.app>Hardware>Settings><Click toggle, Edit... get a new cert ...>
    D. Server.app>Profile Manager>Configure... [Magic script should create OD Master, signed SSL cert]
    E. Server.app>Hardware>Settings>SSL Certificate> [Check to make sure it's set to the one just created]
    F. Using Server.app, turn on the web, then Server.app>Profile Manager> [Click on hyperlink to get to web page, e.g. server.domain.com/profilemanager] Upper RHS pull-down, install Trust Profile
    G. Keychain Access>System>Certificates [Find the automatically generated cert "Domain", the one that is a "Root certificate authority", Highlight and Export as .cer, email to all iOS devices, and click on the authority on the device. It should be entered as a trusted CA on all iOS devices. While you're at it, highlight and Export... as a .cer the certificate "IntermediateCA_SERVER.DOMAIN.COM_1", which is listed an an "Intermediate CA" -- you will use this to establish secure SSL connections with remote browsers hitting your server.]
    H. iOS on LAN: browse to server.domain.com/mydevices> [click on LHS Install trust cert, then RHS Enroll device.
    I. Test from web browser server.domain.com/mydevices: Lock Device to test
    J. ??? Profit
    12. Server Admin>DNS>Zones> Add convenient DNS alias records if necessary, e.g., mail.domain.com, smtp.domain.com, www.domain.com. If you want to refer to your box using the convenient shorthand "domain.com", you must enter the A record (NOT alias) "domain.com." FQDN pointing to the server's fixed IP. You can also enter the convenient short MX record "domain.com." with priority 11. This will all work on the LAN -- all these settings must be mirrored on the outside internet using the service from which you registered domain.com.
    You are now ready to begin turning on your services. Here are a few important details and gotchas setting up cloud services.
    Firewall
    Server Admin>Firewall>Services> Open up all ports needed by whichever services you want to run and set up your router (assuming that your server sits behind a router) to port forward these ports to your router's LAN IP. This is most a straightforward exercise in grepping for the correct ports on this page, but there are several jaw-droppingly undocumented omissions of crucial ports for Push Services and Device Enrollment. If you want to enroll your iOS devices, make sure port 1640 is open. If you want Push Notifications to work (you do), then ports 2195, 2196, 5218, and 5223 must be open. The Unix commands "lsof -i :5218" and "nmap -p 5218 server.domain.com" (nmap available from Macports after installing Xcode from the App Store) help show which ports are open.
    SSH
    Do this with strong security. Server.app to turn on remote logins (open port 22), but edit /etc/sshd_config to turn off root and password logins.
    PermitRootLogin no
    PasswordAuthentication no
    ChallengeResponseAuthentication no
    I'm note sure if toggling the Allow remote logins will load this config file or, run "sudo launchctl unload -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist ; sudo launchctl load -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist" to restart the server's ssh daemon.
    Then use ssh-keygen on remote client to generate public/private keys that can be used to remotely login to the server.
    client$ ssh-keygen -t rsa -b 2048 -C client_name
    [Securely copy ~/.ssh/id_rsa.pub from client to server.]
    server$ cat id_rsa.pub > ~/.ssh/known_hosts
    I also like DenyHosts, which emails detected ssh attacks to [email protected]. It's amazing how many ssh attacks there are on any open port 22. Not really an added security feature if you've turned off password logins, but good to monitor. Here's a Lion Server diff for the config file /usr/share/denyhosts:
    $ diff denyhosts.cfg-dist denyhosts.cfg
    12c12
    < SECURE_LOG = /var/log/secure
    > #SECURE_LOG = /var/log/secure
    22a23
    > SECURE_LOG = /var/log/secure.log
    34c35
    < HOSTS_DENY = /etc/hosts.deny
    > #HOSTS_DENY = /etc/hosts.deny
    40a42,44
    > #
    > # Mac OS X Lion Server
    > HOSTS_DENY = /private/etc/hosts.deny
    195c199
    < LOCK_FILE = /var/lock/subsys/denyhosts
    > #LOCK_FILE = /var/lock/subsys/denyhosts
    202a207,208
    > LOCK_FILE = /var/denyhosts/denyhosts.pid
    > #
    219c225
    < ADMIN_EMAIL =
    > ADMIN_EMAIL = [email protected]
    286c292
    < #SYSLOG_REPORT=YES
    > SYSLOG_REPORT=YES
    Network Accounts
    User Server.app to create your network accounts; do not use Workgroup Manager. If you use Workgroup Manager, as I did, then your accounts will not have email addresses specified and iCal Server WILL NOT COMPLETELY WORK. Well, at least collaboration through network accounts will be handled clunkily through email, not automatically as they should. If you create a network account using Workgroup Manager, then edit that account using Server.app to specify the email to which iCal invitations may be sent. Server.app doesn't say anything about this, but that's one thing that email address entry is used for. This still isn't quite solid on Lion Server, as my Open Directory logs on a freshly installed Lion Server are filled with errors that read:
    2011-12-12 15:05:52.425 EST - Module: SystemCache - Misconfiguration detected in hash 'Kerberos':
         User 'uname' (/LDAPv3/127.0.0.1) - ID 1031 - UUID 98B4DF30-09CF-42F1-6C31-9D55FE4A0812 - SID S-0-8-83-8930552043-0845248631-7065481045-9092
    Oh well.
    Email
    Email aliases are handled with the file /private/etc/postfix/aliases. Do something like this
    root:           myname
    admin:          myname
    sysadmin:       myname
    certadmin:      myname
    webmaster:      myname
    my_alternate:   myname
    Then run "sudo newaliases". If your ISP is Comcast or some other large provider, you probably must proxy your outgoing mail through their SMTP servers to avoid being blocked as a spammer (a lot of SMTP servers will block email from Comcast/whatever IP addresses that isn't sent by Comcast). Use Server.app>Mail to enter your account information. Even then, the Lion Server default setup may fail using this proxy. I had to do this with the file /private/etc/postfix/main.cf:
    cd /etc/postfix
    sudo cp ./main.cf ./main.cf.no_smtp_sasl_security_options
    sudo echo 'smtp_sasl_security_options = noanonymous' >> ./main.cf
    sudo serveradmin stop mail
    sudo serveradmin start mail
    Finally, make sure that you're running a blacklisting srevice yourself! Server Admin>Mail>Filter> Use spamhaus.org as a blacklister. Finally, set up mail to use strong Kerberos/MD5 settings under on Server Admin>Mail>Advanced. Turn off password and clear logins. The settings should be set to "Use" your SSL cert, NOT "Require". "Require" consistently breaks things for me.
    If you already installed the server's Trust Certificate as described above (and opened up the correct ports), email to your account should be pushed out to all clients.
    iCal Server
    Server.app>Calendar>Turn ON and Allow Email Invitations, Edit... . Whatever you do, do NOT enter your own email account information in this GUI. You must enter the account information for local user com.apple.calendarserver, and the password for this account, which is stored in the System keychain: Keychain Access>System> Item com.apple.servermgr_calendar. Double-click and Show Password, copy and paste into Server.app dialog. This is all described in depth here. If you enter your own account information here (DO NOT!), the iCal Server will delete all Emails in your Inbox just as soon as it reads them, exactly like it works for user com.apple.calendarserver. Believe me, you don't want to discover this "feature", which I expect will be more tightly controlled in some future update.
    Web
    The functionality of Server.app's Web management is pretty limited and awful, but a few changes to the file /etc/apache2/httpd.conf will give you a pretty capable and flexible web server, just one that you must manage by hand. Here's a diff for httpd.conf:
    $ diff httpd.conf.default httpd.conf
    95c95
    < #LoadModule ssl_module libexec/apache2/mod_ssl.so
    > LoadModule ssl_module libexec/apache2/mod_ssl.so
    111c111
    < #LoadModule php5_module libexec/apache2/libphp5.so
    > LoadModule php5_module libexec/apache2/libphp5.so
    139,140c139,140
    < #LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    < #LoadModule encoding_module libexec/apache2/mod_encoding.so
    > LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    > LoadModule encoding_module libexec/apache2/mod_encoding.so
    146c146
    < #LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    > LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    177c177
    < ServerAdmin [email protected]
    > ServerAdmin [email protected]
    186c186
    < #ServerName www.example.com:80
    > ServerName domain.com:443
    677a678,680
    > # Server-specific configuration
    > # sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart
    > Include /etc/apache2/mydomain/*.conf
    I did "sudo mkdir /etc/apache2/mydomain" and add specific config files for various web pages to host. For example, here's a config file that will host the entire contents of an EyeTV DVR, all password controlled with htdigest ("htdigest ~uname/.htdigest EyeTV uname"). Browsing to https://server.domain.com/eyetv points to /Users/uname/Sites/EyeTV, in which there's an index.php script that can read and display the EyeTV archive at https://server.domain.com/eyetv_archive. If you want Apache username accounts with twiddles as in https://server.domain.com/~uname, specify "UserDir Sites" in the configuration file.
    Alias /eyetv /Users/uname/Sites/EyeTV
    <Directory "/Users/uname/Sites/EyeTV">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    Alias /eyetv_archive "/Volumes/Macintosh HD2/Documents/EyeTV Archive"
    <Directory "/Volumes/Macintosh HD2/Documents/EyeTV Archive">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    I think you can turn Web off/on in Server.app to relaunch apached, or simply "sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart".
    Securely copy to all desired remote clients the file IntermediateCA_SERVER.DOMAIN.COM_1.cer, which you exported from System Keychain above. Add this certificate to your remote keychain and trust it, allowing secure connections between remote clients and your server. Also on remote clients: Firefox>Advanced>Encryption>View Certificates>Authorities>Import...> Import this certificate into your browser. Now there should be a secure connection to https://server.domain.com without any SSL warnings.
    One caveat is that there should be a nice way to establish secure SSL to https://domain.com and https://www.domain.com, but the automagically created SSL certificate only knows about server.domain.com. I attempted to follow this advice when I originally created the cert and add these additional domains (under "Subject Alternate Name Extension"), but the cert creation UI failed when I did this, so I just gave up. I hope that by the time these certs expire, someone posts some documentation on how to manage and change Lion Server SSL scripts AFTER the server has been promoted to an Open Directory Master. In the meantime, it would be much appreciated if anyone can post either how to add these additional domain names to the existing cert, or generate and/or sign a cert with a self-created Keychain Access root certificate authority. In my experience, any attempt to mess with the SSL certs automatically generated just breaks Lion Server.
    Finally, if you don't want a little Apple logo as your web page icon, create your own 16×16 PNG and copy it to the file /Library/Server/Web/Data/Sites/Default/favicon.ico. And request that all web-crawling robots go away with the file /Library/Server/Web/Data/Sites/Default/robots.txt:
    User-agent: *
    Disallow: /
    Misc
    VNC easily works with iOS devices -- use a good passphrase. Edit /System/Library/LaunchDaemons/org.postgresql.postgres.plist and set "listen_addresses=127.0.0.1" to allow PostgreSQL connections over localhost. I've also downloaded snort/base/swatch to build an intrusion detection system, and used Macports's squid+privoxy to build a privacy-enhanced ad-blocking proxy server.

    Privacy Enhancing Filtering Proxy and SSH Tunnel
    Lion Server comes with its own web proxy, but chaining Squid and Privoxy together provides a capable and effective web proxy that can block ads and malicious scripts, and conceal information used to track you around the web. I've posted a simple way to build and use a privacy enhancing web proxy here. While you're at it, configure your OS and browsers to block Adobe Flash cookies and block Flash access to your camera, microphone, and peer networks. Read this WSJ article series to understand how this impacts your privacy. If you configure it to allow use for anyone on your LAN, be sure to open up ports 3128, 8118, and 8123 on your firewall.
    If you've set up ssh and/or VPN as above, you can securely tunnel in to your proxy from anywhere. The syntax for ssh tunnels is a little obscure, so I wrote a little ssh tunnel script with a simpler flexible syntax. This script also allows secure tunnels to other services like VNC (port 5900). If you save this to a file ./ssht (and chmod a+x ./ssht), example syntax to establish an ssh tunnel through localhost:8080 (or, e.g., localhost:5901 for secure VNC Screen Sharing connects) looks like:
    $ ./ssht 8080:[email protected]:3128
    $ ./ssht 8080:alice@:
    $ ./ssht 8080:
    $ ./ssht 8018::8123
    $ ./ssht 5901::5900  [Use the address localhost:5901 for secure VNC connects using OS X's Screen Sharing or Chicken of the VNC (sudo port install cotvnc)]
    $ vi ./ssht
    #!/bin/sh
    # SSH tunnel to squid/whatever proxy: ssht [-p ssh_port] [localhost_port:][user_name@][ip_address][:remotehost][:remote_port]
    USERNAME_DEFAULT=username
    HOSTNAME_DEFAULT=domain.com
    SSHPORT_DEFAULT=22
    # SSH port forwarding specs, e.g. 8080:localhost:3128
    LOCALHOSTPORT_DEFAULT=8080      # Default is http proxy 8080
    REMOTEHOST_DEFAULT=localhost    # Default is localhost
    REMOTEPORT_DEFAULT=3128         # Default is Squid port
    # Parse ssh port and tunnel details if specified
    SSHPORT=$SSHPORT_DEFAULT
    TUNNEL_DETAILS=$LOCALHOSTPORT_DEFAULT:$USERNAME_DEFAULT@$HOSTNAME_DEFAULT:$REMOT EHOST_DEFAULT:$REMOTEPORT_DEFAULT
    while [ "$1" != "" ]
    do
      case $1
      in
        -p) shift;                  # -p option
            SSHPORT=$1;
            shift;;
         *) TUNNEL_DETAILS=$1;      # 1st argument option
            shift;;
      esac
    done
    # Get local and remote ports, username, and hostname from the command line argument: localhost_port:user_name@ip_address:remote_host:remote_port
    shopt -s extglob                        # needed for +(pattern) syntax; man sh
    LOCALHOSTPORT=$LOCALHOSTPORT_DEFAULT
    USERNAME=$USERNAME_DEFAULT
    HOSTNAME=$HOSTNAME_DEFAULT
    REMOTEHOST=$REMOTEHOST_DEFAULT
    REMOTEPORT=$REMOTEPORT_DEFAULT
    # LOCALHOSTPORT
    CDR=${TUNNEL_DETAILS#+([0-9]):}         # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        LOCALHOSTPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEPORT
    CDR=${TUNNEL_DETAILS%:+([0-9])}         # delete shortest trailing :+([0-9])
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEHOST
    CDR=${TUNNEL_DETAILS%:*}                # delete shortest trailing :*
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEHOST=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # USERNAME
    CDR=${TUNNEL_DETAILS#*@}                # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%@}                            # delete @
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        USERNAME=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # HOSTNAME
    HOSTNAME=$TUNNEL_DETAILS
    if [ "$HOSTNAME" == "" ]                # no hostname given
    then
        HOSTNAME=$HOSTNAME_DEFAULT
    fi
    ssh -p $SSHPORT -L $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT -l $USERNAME $HOSTNAME -f -C -q -N \
        && echo "SSH tunnel established via $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT\n\tto $USERNAME@$HOSTNAME:$SSHPORT." \
        || echo "SSH tunnel FAIL."

  • How to install windows 7 on Old Macbook Pro 15'inch 2.3 Core 2 Duo

    How to install windows 7 on Old Macbook Pro 15'inch 2.3 Core 2 Duo:
    I want to known how to install windows 7 on Old Macbook 15'inch 2.3 Core 2 Duo by using usb
    I try many time, but after restart bootcamp partition, apple show blinking folder error
    I think this firmware not support to install windows by usb
    NOTE:
    I Cannot install Apple New OSX Mountain Lion, Mavericks etc in this MAC
    If I cannot install windows 7 on this MAC, so tell me what I will do with this MAC  ? 

    I agree with the optical drive, mine acted strange, and i thought people were crazy and my drive was shot, but a simple cleaning disc worked miracles.
    But- are you trying to reboot with both the USB install and the DVD install both plugged in?  that would definitely cause confusion.
    Do this, reboot with NOTHING plugged in.  Once you hear the Mac chime, immediately press and hold option.
    You should only see the Mac HD, and Recovery Partition.
    THEN plug in your external DVD, and wait a min or two, you should see a disc icon appear next to the recovery partition that says something like windows.  If that doesnt appear after a min or two, unplug it and put the USB stick and do the same thing.  I had to do it this way on my mid 09 MBP.
    Let me know if this works to start the install.  If not we may have to start over with Bootcamp Assistant

  • How can I do a clean uninstall of packages built from source?

    I want to remove older versions of Ruby (but not the one packaged with Snow Leopard) from my development machine. I have a couple versions that were built from source that are unused now. How can I do a clean uninstall of those types of packages? I don't think there is any "make" command that will uninstall, so other than just deleting the folders that I think contains the older versions, I'm not sure how else to do it. Any ideas?

    mickey13, if its Makefile doesn’t have a target for uninstalling, then the next best thing would be to run *make -n install 2>&1 > /tmp/install* to get a list of what it does at installation time, and then edit the /tmp/install file to remove the files that it copied over on installation (or to undo the edits that it made to previously existing files).

Maybe you are looking for