Downgrade PHP

Hey guys,
So i'm sure i'm over looking something but I am mirroring a server I built with a production server and in order to do so I had to down grade from php 5.3 (default on centos 6) to php 5.2.  However after doing so I realized that root is not able to execute php and mysql.
[doug@myserver ~]$ php -v
PHP 5.2.17 (cli) (built: Jul 18 2014 16:27:17)
Copyright (c) 1997-2010 The PHP Group
So I know the php update worked also is what phpinfo shows, however from root I can't use this.
[root@myserver doug]# php -v
bash: php: command not found
I get the same when trying to use mysql which I find even more odd.
[root@myserver doug]# mysql -u root -p
bash: mysql: command not found
Any suggestions I have been googling like crazy but I can't seem to find a definite answer :-\

Ok Acutally doing some research I have found the problem, but i'm not entirely sure how to fix it.  So php -v doesn't work from root because of the root file path. For instance.
[root@myserver /]# whereis php
php: /etc/php.ini /etc/php.d /etc/php.ini-d3bak /usr/local/bin/php /usr/local/lib/php
[root@myserver /]# /usr/local/bin/php -v
PHP 5.2.17 (cli) (built: Jul 18 2014 16:27:17)
so the file path must have changed when I installed php 5.2 from source.

Similar Messages

  • Downgrade php 5.3 to 5.2

    Hello
    Who can I downgrade php 5.3 to 5.2? I am a newbie att archlinux and overall newbie on linux?
    /M

    Blizz4rd wrote:
    Sorry to ressurect this old thread but the php52 package doesn't exist anymore, is there a way to get it back ?
    Thanks in advance
    http://arm.konnichi.com/search/index.ph … ommunity=1

  • PHP 5.3 screwed it all!

    Hi!
    I'd like to know how could I downgrade PHP and all of its relatives packages?
    I already read http://wiki.archlinux.org/index.php/Downgrade_packages and I found a 5.2.9 version of PHP but now php-apache so there's a lot of missing parts.
    Is there anybody who ran into the same troubles?
    Thanks a lot!
    PS: I can't change the non-working code since it's web apps such as wordpress and roundcube.

    tompouceuh wrote:
    tompouceuh wrote:
    Pierre wrote:Disable the deprecated warning in php.ini. They are just warning which ask you to update your code becaused t wont work with future versions of PHP.
    How the heck can I do this? Thanks!
    I did this and I'm still having those messages:
    Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 392 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/MDB2.php on line 2614 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 563 Deprecated: Assigning the return value of new by reference is deprecated in /srv/http/utils/roundcube/program/lib/PEAR.php on line 566 DSN (write):  NOT OK(MDB2 Error: connect failed)
    Check it out:
    http://pousli.net/mail/
    Damn it!
    There was functions in the code forcing to show them... So trouble "fixed".

  • Path Mapping popup issue

    If anyone else has an issue with the "Path Mapping" popup appearing when debugging a Flex and PHP application on your local Zend Server, here is the solution.
    When you first install Flash Builder 4.5 for PHP, it will remind you to download and install Zend Server CE.
    Once you have done that, the next time you start Flash Builder, you get this.
    Unfortunately, Flash Builder for PHP did not configure Path Mapping for Zend Server CE correctly.  When I create a combined Flex and PHP project, and go to debug it, I got this:
    The popup appears like 100 times for various php classes in the framework. I would select the bottom option of "Get content from the server for the following path:"  I would have to go through 5 minutes of clicking these popups before finally getting my application to launch.
    The problem turned out to be the Path Mapping.  If you go to Preferences --> PHP --> PHP Servers, you will see that the Local Zend Server has been added as the default.  Select it and click the Edit button. Then select the Path Mapping tab.
    The entry for Zend Framework will point to a wrong server path.
    The "Path on Server" is set to /usr/local/zend/ZendServer/share/ZendFramework/library
    It should be set to /usr/local/zend/share/ZendFramework/library
    Once I changed it, the popups no longer appeared.

    Jamie
    I just managed to install and setup Builder 4.5 for PHP with Zend Debugger.
    It was quite a headache to enable Zend Debugger on WAMP server. I have been forced to downgrade PHP to ver 5.2.11 (and subsequently to downgrade Apache version to 2.0.63) to make it work. Anyways, not a good start but I thought, ok, finally some progress. At the moment I am faced with same issue as reported in that post however I am not sure how to setup path mapping(s) so I wont be presented with 30-50 popups when trying to debug my PHP classes.
    I tried to check the status of reported bug you have mentioned but link seems to be broken.
    Example of first popup I am presented with:
    Path Mapping - Select Local Resource
    Select the local resource that matches the following server path:
    ...Adobe Flash Builder 4.5\.metadata\.plugins\org.zend.php.framework.resource\resources\ZendFramework-1\library\ Zend\Loader.php
    Get content from the server to the following path:
    C:\Users\Michael\Adobe Flash Builder 4.5\.metadata\.plugins\org.zend.php.framework.resource\resources\ZendFramework-1\library\ Zend\Loader.php
    Once I will confirm that popup I am presented with another 30-50 of these. After all is confirmed I am finally able to debug my code.
    Can anyone please advise how to setup this mapping?
    PS. I can create a separate mapping for each php file that is mentioned but surely there should be better way than defining 30-50 separate mappings...
    Regards
    Michael
    Nevermind, I have decided to create mapping for all 30-50 files. It works fine now. Good thing its a global setting and does not have to be set for each project separately;)
    Message was edited by: Michael Orzechowski

  • PHP fails after mysql upgrade/downgrade [SOLVED]

    After upgrading mysql a whole load of things got fugly.
    My mod_python stop working with the databases and I had to downgrade to the previous version but now I have a new problem.
    In PHP (another of the laguages I use for business) no longer wants to read the downgraded file and insists in reading the newest version of the shared files so it produces these error:
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20060613/mysql.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    Apr 14 21:26:50 dragonfly httpd: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20060613/mysqli.so' - libmysqlclient.so.16: cannot open shared object file: No such file or directory in Unknown on line 0
    I have spent the entire day dealing with this to no avail. By now I'm pissed and frustrated,  so I decided to post; perhaps I'm missing something really simple.
    Any help will be appreciated.
    R.
    Last edited by ralvez (2009-04-15 21:45:48)

    When MySQL upgraded to version 5.1 I had to do the following:
    (Note, you may want to try step 4 FIRST, but in my case I had to reset my root password for some reason.)
    1) Stop the MySQL Daemon:
    /etc/rc.d/mysqld stop
    2) Restart MySQL in SAFE MODE and RESET the Root Password:
    mysqld_safe --skip-grant-tables &
    then do
    mysql -u root mysql
    UPDATE user SET password=PASSWORD('MYPWORD') WHERE User='root';
    FLUSH PRIVILEGES;
    exit
    3) Then stop the safe Daemon and restart MySQL normally:
    /etc/rc.d/mysqld restart
    4) Then I had to run mysql_upgrade:
    mysql_upgrade -u root -pMYPASSWORD
    I think mine screwed up because I used MySQL GUI Tools which is still at version 5.0. I don't know FOR SURE, but that is my opinion.
    I also had a problem initially where the "mysql.servers" table was missing. I have no idea why, but it took me a couple of hours to get everything working again. I feel your pain. But if you're brace you might try upgrading to 5.1 again and see if these instructions work for you. I had to do this on TWO machines, and it worked on both of them.
    I'm also open to hear from anyone else that could explain what went on.

  • Cant get PHP and GD to work, after uprade (and then downgrade)

    Recently performed a system upgrade.  Worked well, thanks to the entire Arch community.
    Then I had to downgrade my PHP, from a 5.3 to 5.2 version.  Had to do this because I run Drupal, and Drupal 6.x does not yet support 5.3.  But that's another topic.
    Now, I find PHP unable to use the GD graphics extensions, which used to work.  I have the gd.so line uncommented in my php.ini, and I see the gd.so file in the place where php looks for extensions, the suspiciously-named, /usr/lib/php/20060613/ (looks like a date from 3 years ago!)
    So what extra steps do I have to take to get my old PHP version running as well as it once did?
    Thanks for any help.  I realize this is not exactly an arch-specific issue.  But since I'm using Arch and people here are super-smart, I thought I'd ask.
    -Dave

    Dave Cohen wrote:I solved by not downgrading.  Instead, install community/php52.
    genius, I'm back in business, many thanks

  • I need php5-json or downgrade to old php 5.3

    I have problems with drush (for drupal) with the newest version of php. In the comment below it seems like I need php5-json library. How can I get it? I can't find it in arch packages.
    https://github.com/drush-ops/drush/commit/2142129
    Another option would be to downgrade to php 5.4 or even 5.3, but I can't find old packages. How and where can I get those?
    Last edited by Ventil1 (2014-03-18 12:20:15)

    Hey, thank you for your reply karol. I am using https://aur.archlinux.org/packages/drush/. See the drush error messages below:
    WD rules: The reaction rule Commerce order message: order [error]
    notification e-mail (rules_commerce_order_message_order_notification)
    fails the integrity check and cannot be executed. Error: Data
    selector entity-created:message-commerce-order for parameter data is
    invalid.
    Installation complete. User name: admin User password: admin [ok]
    Markdown Editor for BUEditor successfully installed. Go to [status]
    Administration > Configuration > BUEditor to set up
    "Role-editor assignments" to select the roles that may use it.
    A PHP code text format has been created. [status]
    Printer-friendly Page settings are available under Administration [status]
    > Configuration > User interface > Printer, email and PDF
    versions
    Timepicker plugin has been downloaded to sites/all/libraries [success]
    patching file profiles/newsite/modules/contrib/commerce_authnet/commerce_authnet.module
    patching file profiles/newsite/modules/contrib/commerce_addressbook/commerce_addressbook.module
    Make new site in the current directory? (y/n): y
    Beginning to build ../libraries/emogrifier.make. [ok]
    emogrifier cloned from https://github.com/jjriv/emogrifier. [ok]
    The following extensions will be enabled: devel, diff, context_ui, simpletest
    Do you really want to continue? (y/n): y
    Invalid argument supplied for foreach() bootstrap.inc:1529 [warning]
    strtr(): The second argument is not an array bootstrap.inc:1546 [warning]
    DRUSH_GET_CLASS_ERROR [error]
    context_ui was enabled successfully. [ok]
    PHP Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Drush command terminated abnormally due to an unrecoverable error. [error]
    Error: Call to a member function getModulePerms() on a non-object in
    /usr/lib/drush/commands/pm/pm.drush.inc, line 1015
    The following extensions will be enabled: newsite_wellness_menus
    Do you really want to continue? (y/n): y
    Invalid argument supplied for foreach() bootstrap.inc:1529 [warning]
    strtr(): The second argument is not an array bootstrap.inc:1546 [warning]
    DRUSH_GET_CLASS_ERROR [error]
    newsite_wellness_menus was enabled successfully. [ok]
    PHP Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Drush command terminated abnormally due to an unrecoverable error. [error]
    Error: Call to a member function getModulePerms() on a non-object in
    /usr/lib/drush/commands/pm/pm.drush.inc, line 1015
    Reverted newsite_blocks.fe_block_settings. [ok]
    Reverted newsite_taxonomies.field_base. [ok]
    Reverted newsite_taxonomies.uuid_term. [ok]
    dompdf_0-6-0_beta3.tar.gz has been downloaded and extracted in [success]
    /home/marko/public_html/newsite/newsite/public/sites/all/libraries
    The following extensions will be enabled: print_pdf
    Do you really want to continue? (y/n): y
    Invalid argument supplied for foreach() bootstrap.inc:1529 [warning]
    strtr(): The second argument is not an array bootstrap.inc:1546 [warning]
    DRUSH_GET_CLASS_ERROR [error]
    print_pdf was enabled successfully. [ok]
    PHP Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Fatal error: Call to a member function getModulePerms() on a non-object in /usr/lib/drush/commands/pm/pm.drush.inc on line 1015
    Drush command terminated abnormally due to an unrecoverable error. [error]
    Error: Call to a member function getModulePerms() on a non-object in
    /usr/lib/drush/commands/pm/pm.drush.inc, line 1015
    'all' cache was cleared. [success]
    All statically defined migrations have been (re)registered. [success]
    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'rc6.users'[error]
    doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.profile_values' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_orders' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_order_comments' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_order_comments' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_order_admin_comments' doesn't exist
    SQLSTATE[42S02]: Base table or view not found: 1146 Table [error]
    'rc6.uc_order_admin_comments' doesn't exist

  • Help downgrade a php script generated by FB back to the old Mysql way

    hey all
    i am a Flex developer who has written server side stuff with php scripts that were auto-generated by Flash Builder. These scripts use the Mysqli extention, which is not avilable on my shared hosting server. These scripts implement simple CRUD functions to a MySql database. Anyone who has used the data wizard will recognize these scripts.
    Just before i pay more bucks and move to a VPS server in order to enable Mysqli, is there anyone out there who can help me translate this script BACK to the old mysql way?
    much appriciated, Saar
    <?php
    class ClientService {
        var $username = "******";
        var $password = "******";
        var $server = "localhost";
        var $port = "3306";
        var $databasename = "rtdbcbx_saar";
        var $tablename = "clients";
        var $connection;
         * The constructor initializes the connection to database. Everytime a request is
         * received by Zend AMF, an instance of the service class is created and then the
         * requested method is invoked.
        public function __construct() {
            $this->connection = mysqli_connect(
                                    $this->server, 
                                    $this->username, 
                                    $this->password,
                                    $this->databasename,
                                    $this->port
            $this->throwExceptionOnError($this->connection);
         * Returns all the rows from the table.
         * Add authroization or any logical checks for secure access to your data
         * @return array
        public function getAllClient() {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rows;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function getClientByID($itemID) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where ClientID=?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            if(mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              return $row;
            } else {
              return null;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function createClient($item) {
            $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (First, Last, Phone, Email, Chain, Branch, Kiosk, SubmitDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssss', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'));
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            $autoid = mysqli_stmt_insert_id($stmt);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $autoid;
         * Updates the passed item in the table.
         * Add authorization or any logical checks for secure access to your data
         * @param stdClass $item
         * @return void
        public function updateClient($item) {
            $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET First=?, Last=?, Phone=?, Email=?, Chain=?, Branch=?, Kiosk=?, SubmitDate=? WHERE ClientID=?");     
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssssi', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'), $item->ClientID);     
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Deletes the item corresponding to the passed primary key value from
         * the table.
         * Add authorization or any logical checks for secure access to your data
         * @return void
        public function deleteClient($itemID) {
            $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE ClientID = ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Returns the number of rows in the table.
         * Add authorization or any logical checks for secure access to your data
        public function count() {
            $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $rec_count);
            $this->throwExceptionOnError();
            mysqli_stmt_fetch($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rec_count;
         * Returns $numItems rows starting from the $startIndex row from the
         * table.
         * Add authorization or any logical checks for secure access to your data
         * @return array
        public function getClient_paged($startIndex, $numItems) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $rows;
         * Utility function to throw an exception if an error occurs
         * while running a mysql command.
        private function throwExceptionOnError($link = null) {
            if($link == null) {
                $link = $this->connection;
            if(mysqli_error($link)) {
                $msg = mysqli_errno($link) . ": " . mysqli_error($link);
                throw new Exception('MySQL Error - '. $msg);
    ?>

    hello derekmosdell, in case this question isn't related to volume of media content in firefox in particular, we probably won't be able to answer that. please refer to apple's support resources or discussion fora instead.
    thank you for your understanding!

  • PHP refuses to be rendered

    Hi,
    I've used the default PHP installation on OSX with no problems in the past (after uncommenting the 2 lines in httpd and enabling Personal Web Sharing), but after a recent reinstallation of the operating system (having re-updated all software) PHP refuses to render. HTML files render fine, but when I load up a PHP file, its source is displayed instead of being properly rendered. I like to think I know what I'm doing, but I'm befuddled :/
    Any help would be much appreciated.
    Here's my httpd.conf, if it helps:
    <pre>
    ## httpd.conf -- Apache HTTP server configuration file
    # Based upon the NCSA server configuration files originally by Rob McCool.
    # This is the main Apache server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:<a class="jive-link-external-small" href="http://">http://httpd.apache.org/docs/> for detailed information about
    # the directives.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # After this file is processed, the server will look for and process
    # /private/etc/httpd/srm.conf and then /private/etc/httpd/access.conf
    # unless you have overridden these with ResourceConfig and/or
    # AccessConfig directives here.
    # The configuration directives are grouped into three basic sections:
    # 1. Directives that control the operation of the Apache server process as a
    # whole (the 'global environment').
    # 2. Directives that define the parameters of the 'main' or 'default' server,
    # which responds to requests that aren't handled by a virtual host.
    # These directives also provide default values for the settings
    # of all virtual hosts.
    # 3. Settings for virtual hosts, which allow Web requests to be sent to
    # different IP addresses or hostnames and have them handled by the
    # same Apache server process.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do not begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "/usr/local/apache" will be interpreted by the
    # server as "/usr/local/apache/logs/foo.log".
    ### Section 1: Global Environment
    # The directives in this section affect the overall operation of Apache,
    # such as the number of concurrent requests it can handle or where it
    # can find its configuration files.
    # ServerType is either inetd, or standalone. Inetd mode is only supported on
    # Unix platforms.
    ServerType standalone
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # NOTE! If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the LockFile documentation
    # (available at <URL:<a class="jive-link-external-small" href="http://">http://www.apache.org/docs/mod/core.html#lockfile>);
    # you will save yourself a lot of trouble.
    ServerRoot "/usr"
    # The LockFile directive sets the path to the lockfile used when Apache
    # is compiled with either USEFCNTL_SERIALIZEDACCEPT or
    # USEFLOCK_SERIALIZEDACCEPT. This directive should normally be left at
    # its default value. The main reason for changing it is if the logs
    # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
    # DISK. The PID of the main server process is automatically appended to
    # the filename.
    #LockFile "/private/var/run/httpd.lock"
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    PidFile "/private/var/run/httpd.pid"
    # ScoreBoardFile: File used to store internal server process information.
    # Not all architectures require this. But if yours does (you'll know because
    # this file will be created when you run Apache) then you must ensure that
    # no two invocations of Apache share the same scoreboard file.
    ScoreBoardFile "/private/var/run/httpd.scoreboard"
    # In the standard configuration, the server will process httpd.conf (this
    # file, specified by the -f command line option), srm.conf, and access.conf
    # in that order. The latter two files are now distributed empty, as it is
    # recommended that all directives be kept in a single file for simplicity.
    # The commented-out values below are the built-in defaults. You can have the
    # server ignore these files altogether by using "/dev/null" (for Unix) or
    # "nul" (for Win32) for the arguments to the directives.
    #ResourceConfig /private/etc/httpd/srm.conf
    #AccessConfig /private/etc/httpd/access.conf
    # Timeout: The number of seconds before receives and sends time out.
    Timeout 300
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    KeepAlive On
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    MaxKeepAliveRequests 100
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    KeepAliveTimeout 15
    # Server-pool size regulation. Rather than making you guess how many
    # server processes you need, Apache dynamically adapts to the load it
    # sees --- that is, it tries to maintain enough server processes to
    # handle the current load, plus a few spare servers to handle transient
    # load spikes (e.g., multiple simultaneous requests from a single
    # Netscape browser).
    # It does this by periodically checking how many servers are waiting
    # for a request. If there are fewer than MinSpareServers, it creates
    # a new spare. If there are more than MaxSpareServers, some of the
    # spares die off. The default values are probably OK for most sites.
    MinSpareServers 5
    MaxSpareServers 10
    # Number of servers to start initially --- should be a reasonable ballpark
    # figure.
    StartServers 5
    # Limit on total number of servers running, i.e., limit on the number
    # of clients who can simultaneously connect --- if this limit is ever
    # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
    # It is intended mainly as a brake to keep a runaway server from taking
    # the system with it as it spirals down...
    MaxClients 150
    # MaxRequestsPerChild: the number of requests each child process is
    # allowed to process before the child dies. The child will exit so
    # as to avoid problems after prolonged use when Apache (and maybe the
    # libraries it uses) leak memory or other resources. On most systems, this
    # isn't really needed, but a few (such as Solaris) do have notable leaks
    # in the libraries. For these platforms, set to something like 10000
    # or so; a setting of 0 means unlimited.
    # NOTE: This value does not include keepalive requests after the initial
    # request per connection. For example, if a child process handles
    # an initial request and 10 subsequent "keptalive" requests, it
    # would only count as 1 request towards this limit.
    MaxRequestsPerChild 0
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #Listen 3000
    #Listen 12.34.56.78:80
    # BindAddress: You can support virtual hosts with this option. This directive
    # is used to tell the server which IP address to listen to. It can either
    # contain "*", an IP address, or a fully qualified Internet domain name.
    # See also the <VirtualHost> and Listen directives.
    #BindAddress *
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available before they are used.
    # Please read the file http://httpd.apache.org/docs/dso.html for more
    # details about the DSO mechanism and run `httpd -l' for the list of already
    # built-in (statically linked and thus always available) modules in your httpd
    # binary.
    # Note: The order in which modules are loaded is important. Don't change
    # the order below without expert advice.
    # Example:
    # LoadModule foo_module libexec/mod_foo.so
    #LoadModule vhostaliasmodule libexec/httpd/modvhostalias.so
    #LoadModule env_module libexec/httpd/mod_env.so
    LoadModule configlogmodule libexec/httpd/modlogconfig.so
    #LoadModule mimemagicmodule libexec/httpd/modmimemagic.so
    LoadModule mime_module libexec/httpd/mod_mime.so
    LoadModule negotiation_module libexec/httpd/mod_negotiation.so
    #LoadModule status_module libexec/httpd/mod_status.so
    #LoadModule info_module libexec/httpd/mod_info.so
    LoadModule includes_module libexec/httpd/mod_include.so
    LoadModule autoindex_module libexec/httpd/mod_autoindex.so
    LoadModule dir_module libexec/httpd/mod_dir.so
    LoadModule cgi_module libexec/httpd/mod_cgi.so
    LoadModule asis_module libexec/httpd/mod_asis.so
    LoadModule imap_module libexec/httpd/mod_imap.so
    LoadModule action_module libexec/httpd/mod_actions.so
    #LoadModule speling_module libexec/httpd/mod_speling.so
    LoadModule userdir_module libexec/httpd/mod_userdir.so
    LoadModule alias_module libexec/httpd/mod_alias.so
    LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    LoadModule access_module libexec/httpd/mod_access.so
    LoadModule auth_module libexec/httpd/mod_auth.so
    #LoadModule anonauthmodule libexec/httpd/modauthanon.so
    #LoadModule dbmauthmodule libexec/httpd/modauthdbm.so
    #LoadModule digest_module libexec/httpd/mod_digest.so
    #LoadModule proxy_module libexec/httpd/libproxy.so
    #LoadModule cernmetamodule libexec/httpd/modcernmeta.so
    #LoadModule expires_module libexec/httpd/mod_expires.so
    #LoadModule headers_module libexec/httpd/mod_headers.so
    #LoadModule usertrack_module libexec/httpd/mod_usertrack.so
    LoadModule logforensicmodule libexec/httpd/modlogforensic.so
    #LoadModule uniqueidmodule libexec/httpd/moduniqueid.so
    LoadModule setenvif_module libexec/httpd/mod_setenvif.so
    #LoadModule dav_module libexec/httpd/libdav.so
    #LoadModule ssl_module libexec/httpd/libssl.so
    #LoadModule perl_module libexec/httpd/libperl.so
    LoadModule php4_module libexec/httpd/libphp4.so
    LoadModule hfsapplemodule libexec/httpd/modhfsapple.so
    # Reconstruction of the complete module list from all available modules
    # (static and shared ones) to achieve correct module execution order.
    # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
    ClearModuleList
    #AddModule modvhostalias.c
    #AddModule mod_env.c
    AddModule modlogconfig.c
    #AddModule modmimemagic.c
    AddModule mod_mime.c
    AddModule mod_negotiation.c
    #AddModule mod_status.c
    #AddModule mod_info.c
    AddModule mod_include.c
    AddModule mod_autoindex.c
    AddModule mod_dir.c
    AddModule mod_cgi.c
    AddModule mod_asis.c
    AddModule mod_imap.c
    AddModule mod_actions.c
    #AddModule mod_speling.c
    AddModule mod_userdir.c
    AddModule mod_alias.c
    AddModule mod_rewrite.c
    AddModule mod_access.c
    AddModule mod_auth.c
    #AddModule modauthanon.c
    #AddModule modauthdbm.c
    #AddModule mod_digest.c
    #AddModule mod_proxy.c
    #AddModule modcernmeta.c
    #AddModule mod_expires.c
    #AddModule mod_headers.c
    #AddModule mod_usertrack.c
    AddModule modlogforensic.c
    #AddModule moduniqueid.c
    AddModule mod_so.c
    AddModule mod_setenvif.c
    #AddModule mod_dav.c
    #AddModule mod_ssl.c
    #AddModule mod_perl.c
    AddModule mod_php4.c
    AddModule modhfsapple.c
    # ExtendedStatus controls whether Apache will generate "full" status
    # information (ExtendedStatus On) or just basic information (ExtendedStatus
    # Off) when the "server-status" handler is called. The default is Off.
    #ExtendedStatus On
    ### Section 2: 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # If your ServerType directive (set earlier in the 'Global Environment'
    # section) is set to "inetd", the next few directives don't have any
    # effect since their settings are defined by the inetd configuration.
    # Skip ahead to the ServerAdmin directive.
    # Port: The port to which the standalone server listens. For
    # ports < 1023, you will need httpd to be run as root initially.
    Port 80
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
    # . On HPUX you may not be able to use shared memory as nobody, and the
    # suggested workaround is to create a user www and use that user.
    # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
    # when the value of (unsigned)Group is above 60000;
    # don't use Group "#-1" on these systems!
    User nobody
    Group nobody
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents.
    ServerAdmin [email protected]
    # ServerName allows you to set a host name which is sent back to clients for
    # your server if it's different than the one the program would get (i.e., use
    # "www" instead of the host's real name).
    # Note: You cannot just invent host names and hope they work. The name you
    # define here must be a valid DNS name for your host. If you don't understand
    # this, ask your network administrator.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    # You will have to access it by its address (e.g., http://123.45.67.89/)
    # anyway, and this will make redirections work in a sensible way.
    # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
    # machine always knows itself by this address. If you use Apache strictly for
    # local testing and development, you may use 127.0.0.1 as the server name.
    #ServerName new.host.name
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/Users/borischerny/Sites"
    # Each directory to which Apache has access, can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/Users/borischerny/Sites">
    # This may also be "None", "All", or any combination of "Indexes",
    # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
    # Note that "MultiViews" must be named explicitly --- "Options All"
    # doesn't give it to you.
    Options Indexes FollowSymLinks MultiViews
    # This controls which options the .htaccess files in directories can
    # override. Can also be "All", or any combination of "Options", "FileInfo",
    # "AuthConfig", and "Limit"
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # UserDir: The name of the directory which is appended onto a user's home
    # directory if a ~user request is received.
    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    #<Directory /home/*/public_html>
    # AllowOverride FileInfo AuthConfig Limit
    # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    # <Limit GET POST OPTIONS PROPFIND>
    # Order allow,deny
    # Allow from all
    # </Limit>
    # <LimitExcept GET POST OPTIONS PROPFIND>
    # Order deny,allow
    # Deny from all
    # </LimitExcept>
    #</Directory>
    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    <IfModule mod_dir.c>
    DirectoryIndex index.html
    </IfModule>
    # AccessFileName: The name of the file to look for in each directory
    # for access control information.
    AccessFileName .htaccess
    # The following lines prevent .htaccess files from being viewed by
    # Web clients. Since .htaccess files often contain authorization
    # information, access is disallowed for security reasons. Comment
    # these lines out if you want Web visitors to see the contents of
    # .htaccess files. If you change the AccessFileName directive above,
    # be sure to make the corresponding changes here.
    # Also, folks tend to use names such as .htpasswd for password
    # files, so this will protect those as well.
    <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>
    # Apple specific filesystem protection.
    <Files "rsrc">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>
    <Directory ~ ".*\.\.namedfork">
    Order allow,deny
    Deny from all
    Satisfy All
    </Directory>
    # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
    # document that was negotiated on the basis of content. This asks proxy
    # servers not to cache the document. Uncommenting the following line disables
    # this behavior, and proxies will be allowed to cache the documents.
    #CacheNegotiatedDocs
    # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
    # Apache needs to construct a self-referencing URL (a URL that refers back
    # to the server the response is coming from) it will use ServerName and
    # Port to form a "canonical" name. With this setting off, Apache will
    # use the hostname:port that the client supplied, when possible. This
    # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
    UseCanonicalName On
    # TypesConfig describes where the mime.types file (or equivalent) is
    # to be found.
    <IfModule mod_mime.c>
    TypesConfig /private/etc/httpd/mime.types
    </IfModule>
    # DefaultType is the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    # The modmimemagic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    # modmimemagic is not part of the default server (you have to add
    # it yourself with a LoadModule [see the DSO paragraph in the 'Global
    # Environment' section], or recompile the server and include modmimemagic
    # as part of the configuration), so it's enclosed in an <IfModule> container.
    # This means that the MIMEMagicFile directive will only be processed if the
    # module is part of the server.
    <IfModule modmimemagic.c>
    MIMEMagicFile /private/etc/httpd/magic
    </IfModule>
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    HostnameLookups Off
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you do define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/private/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you do
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and not in this file.
    CustomLog "/private/var/log/httpd/access_log" common
    # If you would like to have agent and referer logfiles, uncomment the
    # following directives.
    #CustomLog "/private/var/log/httpd/referer_log" referer
    #CustomLog "/private/var/log/httpd/agent_log" agent
    # If you prefer a single logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/private/var/log/httpd/access_log" combined
    # Optionally add a line containing the server version and virtual host
    # name to server-generated pages (error documents, FTP directory listings,
    # mod_status and mod_info output etc., but not CGI generated documents).
    # Set to "EMail" to also include a mailto: link to the ServerAdmin.
    # Set to one of: On | Off | EMail
    ServerSignature On
    # EBCDIC configuration:
    # (only for mainframes using the EBCDIC codeset, currently one of:
    # Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!
    # The following default configuration assumes that "text files"
    # are stored in EBCDIC (so that you can operate on them using the
    # normal POSIX tools like grep and sort) while "binary files" are
    # stored with identical octets as on an ASCII machine.
    # The directives are evaluated in configuration file order, with
    # the EBCDICConvert directives applied before EBCDICConvertByType.
    # If you want to have ASCII HTML documents and EBCDIC HTML documents
    # at the same time, you can use the file extension to force
    # conversion off for the ASCII documents:
    # > AddType text/html .ahtml
    # > EBCDICConvert Off=InOut .ahtml
    # EBCDICConvertByType On=InOut text/* message/* multipart/*
    # EBCDICConvertByType On=In application/x-www-form-urlencoded
    # EBCDICConvertByType On=InOut application/postscript model/vrml
    # EBCDICConvertByType Off=InOut /
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    <IfModule mod_alias.c>
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL. So "/icons" isn't aliased in this
    # example, only "/icons/". If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    Alias /icons/ "/usr/share/httpd/icons/"
    <Directory "/usr/share/httpd/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    # This Alias will project the on-line documentation tree under /manual/
    # even if you change the DocumentRoot. Comment it if you don't want to
    # provide access to the on-line documentation.
    Alias /manual/ "/Library/WebServer/Documents/manual/"
    <Directory "/Library/WebServer/Documents/manual">
    Options Indexes FollowSymlinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
    # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/Library/WebServer/CGI-Executables">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>
    # End of aliases.
    # Redirect allows you to tell clients about documents which used to exist in
    # your server's namespace, but do not anymore. This allows you to tell the
    # clients where to look for the relocated document.
    # Format: Redirect old-URI new-URL
    # Directives controlling the display of server-generated directory listings.
    <IfModule mod_autoindex.c>
    # FancyIndexing is whether you want fancy directory indexing or standard
    IndexOptions FancyIndexing
    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions. These are only displayed for
    # FancyIndexed directories.
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    DefaultIcon /icons/unknown.gif
    # AddDescription allows you to place a short description after a file in
    # server-generated indexes. These are only displayed for FancyIndexed
    # directories.
    # Format: AddDescription "description" filename
    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz
    # ReadmeName is the name of the README file the server will look for by
    # default, and append to directory listings.
    # HeaderName is the name of a file which should be prepended to
    # directory indexes.
    ReadmeName README.html
    HeaderName HEADER.html
    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing. Shell-style wildcarding is permitted.
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    </IfModule>
    # End of indexing directives.
    # Document types.
    <IfModule mod_mime.c>
    # AddLanguage allows you to specify the language of a document. You can
    # then use content negotiation to give a browser a file in a language
    # it can understand.
    # Note 1: The suffix does not have to be the same as the language
    # keyword --- those with documents in Polish (whose net-standard
    # language code is pl) may wish to use "AddLanguage pl .po" to
    # avoid the ambiguity with the common suffix for perl scripts.
    # Note 2: The example entries below illustrate that in quite
    # some cases the two character 'Language' abbreviation is not
    # identical to the two character 'Country' code for its country,
    # E.g. 'Danmark/dk' versus 'Danish/da'.
    # Note 3: In the case of 'ltz' we violate the RFC by using a three char
    # specifier. But there is 'work in progress' to fix this and get
    # the reference data for rfc1766 cleaned up.
    # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
    # French (fr) - German (de) - Greek-Modern (el)
    # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
    # Portugese (pt) - Luxembourgeois* (ltz)
    # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
    # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
    # Russian (ru)
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage he .he
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .sv
    AddLanguage cs .cz .cs
    AddLanguage ru .ru
    AddLanguage zh-TW .zh-tw
    AddCharset Big5 .Big5 .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866 .cp866
    AddCharset ISO-8859-5 .iso-ru
    AddCharset KOI8-R .koi8-r
    AddCharset UCS-2 .ucs2
    AddCharset UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    # Just list the languages in decreasing order of preference. We have
    # more or less alphabetized them here. You probably want to change this.
    <IfModule mod_negotiation.c>
    LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    AddType application/x-tar .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    # Despite the name similarity, the following Add* directives have nothing
    # to do with the FancyIndexing customization directives above.
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #AddType application/x-compress .Z
    #AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers",
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action command (see below)
    # If you want to use server side includes, or CGI outside
    # ScriptAliased directories, uncomment the following lines.
    # To use CGI scripts:
    #AddHandler cgi-script .cgi
    # To use server-parsed HTML files
    #AddType text/html .shtml
    #AddHandler server-parsed .shtml
    # Uncomment the following line to enable Apache's send-asis HTTP file
    # feature
    #AddHandler send-as-is asis
    # If you wish to use server-parsed imagemap files, use
    #AddHandler imap-file map
    # To enable type maps, you might want to use
    #AddHandler type-map var
    </IfModule>
    # End of document types.
    # Action lets you define media types that will execute a script whenever
    # a matching file is called. This eliminates the need for repeated URL
    # pathnames for oft-used CGI file processors.
    # Format: Action media/type /cgi-script/location
    # Format: Action handler-name /cgi-script/location
    # MetaDir: specifies the name of the directory in which Apache can find
    # meta information files. These files contain additional HTTP headers
    # to include when sending the document
    #MetaDir .web
    # MetaSuffix: specifies the file name suffix for the file containing the
    # meta information.
    #MetaSuffix .meta
    # Customizable error response (Apache style)
    # these come in three flavors
    # 1) plain text
    #ErrorDocument 500 "The server made a boo boo.
    # n.b. the single leading (") marks it as text, it does not get output
    # 2) local redirects
    #ErrorDocument 404 /missing.html
    # to redirect to local URL /missing.html
    #ErrorDocument 404 /cgi-bin/missing_handler.pl
    # N.B.: You can redirect to a script or a document using server-side-includes.
    # 3) external redirects
    #ErrorDocument 402 http://some.other-server.com/subscription_info.html
    # N.B.: Many of the environment variables associated with the original
    # request will not be available to such a script.
    # Customize behaviour based on the browser
    <IfModule mod_setenvif.c>
    # The following directives modify normal HTTP response behavior.
    # The first directive disables keepalive for Netscape 2.x and browsers that
    # spoof it. There are known problems with these browser implementations.
    # The second directive is for Microsoft Internet Explorer 4.0b2
    # which has a broken HTTP/1.1 implementation and does not properly
    # support keepalive when it is used on 301 or 302 (redirect) responses.
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    # The following directive disables HTTP/1.1 responses to browsers which
    # are in violation of the HTTP/1.0 spec by not being able to grok a
    # basic 1.1 response.
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    # End of browser customization directives
    # Allow server status reports, with the URL of http://servername/server-status
    # Change the ".your-domain.com" to match your domain to enable.
    #<Location /server-status>
    # SetHandler server-status
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    #</Location>
    # Allow remote server configuration reports, with the URL of
    # http://servername/server-info (requires that mod_info.c be loaded).
    # Change the ".your-domain.com" to match your domain to enable.
    #<Location /server-info>
    # SetHandler server-info
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    #</Location>
    # There have been reports of people trying to abuse an old bug from pre-1.1
    # days. This bug involved a CGI script distributed as a part of Apache.
    # By uncommenting these lines you can redirect these attacks to a logging
    # script on phf.apache.org. Or, you can record them yourself, using the script
    # support/phfabuselog.cgi.
    #<Location /cgi-bin/phf*>
    # Deny from all
    # ErrorDocument 403 http://phf.apache.org/phfabuselog.cgi
    #</Location>
    # Proxy Server directives. Uncomment the following lines to
    # enable the proxy server:
    #<IfModule mod_proxy.c>
    # ProxyRequests On
    # <Directory proxy:*>
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    # </Directory>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    # ProxyVia On
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    # CacheRoot "/private/var/run/proxy"
    # CacheSize 5
    # CacheGcInterval 4
    # CacheMaxExpire 24
    # CacheLastModifiedFactor 0.1
    # CacheDefaultExpire 1
    # NoCache a-domain.com another-domain.edu joes.garage-sale.com
    #</IfModule>
    # End of proxy directives.
    ### Section 3: Virtual Hosts
    # VirtualHost: If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    # Please see the documentation at <URL:<a class="jive-link-external-small" href="http://">http://www.apache.org/docs/vhosts/>
    # for further details before you try to setup virtual hosts.
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    # Use name-based virtual hosting.
    #NameVirtualHost *:80
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #<VirtualHost *:80>
    # ServerAdmin [email protected]
    # DocumentRoot /www/docs/dummy-host.example.com
    # ServerName dummy-host.example.com
    # ErrorLog logs/dummy-host.example.com-error_log
    # CustomLog logs/dummy-host.example.com-access_log common
    #</VirtualHost>
    </pre>

    sorry i forgot that... i use php5 so i guessed at the module name... upon looking closer at the conf its mod_php4.c
    <pre>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    </IfModule>
    </pre>

  • PHP Issue

    I currently have been hacking around trying to get the pre-installed php that comes with Mac OS X enabled, but seem unable to get the page viewable from localhost or just simply viewing it in safari through finder. It gives me the underlying code when I try to view it, ie the php isn't running ... my httpd.conf file is below: Help greatly appreciated on this! Thanks
    ## httpd.conf -- Apache HTTP server configuration file
    # Based upon the NCSA server configuration files originally by Rob McCool.
    # This is the main Apache server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:<a class="jive-link-external-small" href="http://">http://httpd.apache.org/docs/> for detailed information about
    # the directives.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # After this file is processed, the server will look for and process
    # /private/etc/httpd/srm.conf and then /private/etc/httpd/access.conf
    # unless you have overridden these with ResourceConfig and/or
    # AccessConfig directives here.
    # The configuration directives are grouped into three basic sections:
    # 1. Directives that control the operation of the Apache server process as a
    # whole (the 'global environment').
    # 2. Directives that define the parameters of the 'main' or 'default' server,
    # which responds to requests that aren't handled by a virtual host.
    # These directives also provide default values for the settings
    # of all virtual hosts.
    # 3. Settings for virtual hosts, which allow Web requests to be sent to
    # different IP addresses or hostnames and have them handled by the
    # same Apache server process.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do not begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "/usr/local/apache" will be interpreted by the
    # server as "/usr/local/apache/logs/foo.log".
    ### Section 1: Global Environment
    # The directives in this section affect the overall operation of Apache,
    # such as the number of concurrent requests it can handle or where it
    # can find its configuration files.
    # ServerType is either inetd, or standalone. Inetd mode is only supported on
    # Unix platforms.
    ServerType standalone
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # NOTE! If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the LockFile documentation
    # (available at <URL:<a class="jive-link-external-small" href="http://">http://www.apache.org/docs/mod/core.html#lockfile>);
    # you will save yourself a lot of trouble.
    ServerRoot "/usr"
    # The LockFile directive sets the path to the lockfile used when Apache
    # is compiled with either USEFCNTL_SERIALIZEDACCEPT or
    # USEFLOCK_SERIALIZEDACCEPT. This directive should normally be left at
    # its default value. The main reason for changing it is if the logs
    # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
    # DISK. The PID of the main server process is automatically appended to
    # the filename.
    #LockFile "/private/var/run/httpd.lock"
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    PidFile "/private/var/run/httpd.pid"
    # ScoreBoardFile: File used to store internal server process information.
    # Not all architectures require this. But if yours does (you'll know because
    # this file will be created when you run Apache) then you must ensure that
    # no two invocations of Apache share the same scoreboard file.
    ScoreBoardFile "/private/var/run/httpd.scoreboard"
    # In the standard configuration, the server will process httpd.conf (this
    # file, specified by the -f command line option), srm.conf, and access.conf
    # in that order. The latter two files are now distributed empty, as it is
    # recommended that all directives be kept in a single file for simplicity.
    # The commented-out values below are the built-in defaults. You can have the
    # server ignore these files altogether by using "/dev/null" (for Unix) or
    # "nul" (for Win32) for the arguments to the directives.
    #ResourceConfig /private/etc/httpd/srm.conf
    #AccessConfig /private/etc/httpd/access.conf
    # Timeout: The number of seconds before receives and sends time out.
    Timeout 300
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    KeepAlive On
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    MaxKeepAliveRequests 100
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    KeepAliveTimeout 15
    # Server-pool size regulation. Rather than making you guess how many
    # server processes you need, Apache dynamically adapts to the load it
    # sees --- that is, it tries to maintain enough server processes to
    # handle the current load, plus a few spare servers to handle transient
    # load spikes (e.g., multiple simultaneous requests from a single
    # Netscape browser).
    # It does this by periodically checking how many servers are waiting
    # for a request. If there are fewer than MinSpareServers, it creates
    # a new spare. If there are more than MaxSpareServers, some of the
    # spares die off. The default values are probably OK for most sites.
    MinSpareServers 5
    MaxSpareServers 10
    # Number of servers to start initially --- should be a reasonable ballpark
    # figure.
    StartServers 5
    # Limit on total number of servers running, i.e., limit on the number
    # of clients who can simultaneously connect --- if this limit is ever
    # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
    # It is intended mainly as a brake to keep a runaway server from taking
    # the system with it as it spirals down...
    MaxClients 150
    # MaxRequestsPerChild: the number of requests each child process is
    # allowed to process before the child dies. The child will exit so
    # as to avoid problems after prolonged use when Apache (and maybe the
    # libraries it uses) leak memory or other resources. On most systems, this
    # isn't really needed, but a few (such as Solaris) do have notable leaks
    # in the libraries. For these platforms, set to something like 10000
    # or so; a setting of 0 means unlimited.
    # NOTE: This value does not include keepalive requests after the initial
    # request per connection. For example, if a child process handles
    # an initial request and 10 subsequent "keptalive" requests, it
    # would only count as 1 request towards this limit.
    MaxRequestsPerChild 0
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #Listen 3000
    #Listen 12.34.56.78:80
    # BindAddress: You can support virtual hosts with this option. This directive
    # is used to tell the server which IP address to listen to. It can either
    # contain "*", an IP address, or a fully qualified Internet domain name.
    # See also the <VirtualHost> and Listen directives.
    #BindAddress *
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available before they are used.
    # Please read the file http://httpd.apache.org/docs/dso.html for more
    # details about the DSO mechanism and run `httpd -l' for the list of already
    # built-in (statically linked and thus always available) modules in your httpd
    # binary.
    # Note: The order in which modules are loaded is important. Don't change
    # the order below without expert advice.
    # Example:
    # LoadModule foo_module libexec/mod_foo.so
    #LoadModule vhostaliasmodule libexec/httpd/modvhostalias.so
    #LoadModule env_module libexec/httpd/mod_env.so
    LoadModule configlogmodule libexec/httpd/modlogconfig.so
    #LoadModule mimemagicmodule libexec/httpd/modmimemagic.so
    LoadModule mime_module libexec/httpd/mod_mime.so
    LoadModule negotiation_module libexec/httpd/mod_negotiation.so
    #LoadModule status_module libexec/httpd/mod_status.so
    #LoadModule info_module libexec/httpd/mod_info.so
    LoadModule includes_module libexec/httpd/mod_include.so
    LoadModule autoindex_module libexec/httpd/mod_autoindex.so
    LoadModule dir_module libexec/httpd/mod_dir.so
    LoadModule cgi_module libexec/httpd/mod_cgi.so
    LoadModule asis_module libexec/httpd/mod_asis.so
    LoadModule imap_module libexec/httpd/mod_imap.so
    LoadModule action_module libexec/httpd/mod_actions.so
    #LoadModule speling_module libexec/httpd/mod_speling.so
    LoadModule userdir_module libexec/httpd/mod_userdir.so
    LoadModule alias_module libexec/httpd/mod_alias.so
    LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    LoadModule access_module libexec/httpd/mod_access.so
    LoadModule auth_module libexec/httpd/mod_auth.so
    #LoadModule anonauthmodule libexec/httpd/modauthanon.so
    #LoadModule dbmauthmodule libexec/httpd/modauthdbm.so
    #LoadModule digest_module libexec/httpd/mod_digest.so
    #LoadModule proxy_module libexec/httpd/libproxy.so
    #LoadModule cernmetamodule libexec/httpd/modcernmeta.so
    #LoadModule expires_module libexec/httpd/mod_expires.so
    #LoadModule headers_module libexec/httpd/mod_headers.so
    #LoadModule usertrack_module libexec/httpd/mod_usertrack.so
    LoadModule logforensicmodule libexec/httpd/modlogforensic.so
    #LoadModule uniqueidmodule libexec/httpd/moduniqueid.so
    LoadModule setenvif_module libexec/httpd/mod_setenvif.so
    #LoadModule dav_module libexec/httpd/libdav.so
    #LoadModule ssl_module libexec/httpd/libssl.so
    #LoadModule perl_module libexec/httpd/libperl.so
    LoadModule php4_module libexec/httpd/libphp4.so
    LoadModule hfsapplemodule libexec/httpd/modhfsapple.so
    # Reconstruction of the complete module list from all available modules
    # (static and shared ones) to achieve correct module execution order.
    # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
    ClearModuleList
    #AddModule modvhostalias.c
    #AddModule mod_env.c
    AddModule modlogconfig.c
    #AddModule modmimemagic.c
    AddModule mod_mime.c
    AddModule mod_negotiation.c
    #AddModule mod_status.c
    #AddModule mod_info.c
    AddModule mod_include.c
    AddModule mod_autoindex.c
    AddModule mod_dir.c
    AddModule mod_cgi.c
    AddModule mod_asis.c
    AddModule mod_imap.c
    AddModule mod_actions.c
    #AddModule mod_speling.c
    AddModule mod_userdir.c
    AddModule mod_alias.c
    AddModule mod_rewrite.c
    AddModule mod_access.c
    AddModule mod_auth.c
    #AddModule modauthanon.c
    #AddModule modauthdbm.c
    #AddModule mod_digest.c
    #AddModule mod_proxy.c
    #AddModule modcernmeta.c
    #AddModule mod_expires.c
    #AddModule mod_headers.c
    #AddModule mod_usertrack.c
    AddModule modlogforensic.c
    #AddModule moduniqueid.c
    AddModule mod_so.c
    AddModule mod_setenvif.c
    #AddModule mod_dav.c
    #AddModule mod_ssl.c
    #AddModule mod_perl.c
    AddModule mod_php4.c
    AddModule modhfsapple.c
    # ExtendedStatus controls whether Apache will generate "full" status
    # information (ExtendedStatus On) or just basic information (ExtendedStatus
    # Off) when the "server-status" handler is called. The default is Off.
    #ExtendedStatus On
    ### Section 2: 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # If your ServerType directive (set earlier in the 'Global Environment'
    # section) is set to "inetd", the next few directives don't have any
    # effect since their settings are defined by the inetd configuration.
    # Skip ahead to the ServerAdmin directive.
    # Port: The port to which the standalone server listens. For
    # ports < 1023, you will need httpd to be run as root initially.
    Port 80
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
    # . On HPUX you may not be able to use shared memory as nobody, and the
    # suggested workaround is to create a user www and use that user.
    # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
    # when the value of (unsigned)Group is above 60000;
    # don't use Group "#-1" on these systems!
    User nobody
    Group nobody
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents.
    ServerAdmin [email protected]
    # ServerName allows you to set a host name which is sent back to clients for
    # your server if it's different than the one the program would get (i.e., use
    # "www" instead of the host's real name).
    # Note: You cannot just invent host names and hope they work. The name you
    # define here must be a valid DNS name for your host. If you don't understand
    # this, ask your network administrator.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    # You will have to access it by its address (e.g., http://123.45.67.89/)
    # anyway, and this will make redirections work in a sensible way.
    # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
    # machine always knows itself by this address. If you use Apache strictly for
    # local testing and development, you may use 127.0.0.1 as the server name.
    #ServerName new.host.name
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/Library/WebServer/Documents"
    # Each directory to which Apache has access, can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/Library/WebServer/Documents">
    # This may also be "None", "All", or any combination of "Indexes",
    # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
    # Note that "MultiViews" must be named explicitly --- "Options All"
    # doesn't give it to you.
    Options Indexes FollowSymLinks MultiViews
    # This controls which options the .htaccess files in directories can
    # override. Can also be "All", or any combination of "Options", "FileInfo",
    # "AuthConfig", and "Limit"
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # UserDir: The name of the directory which is appended onto a user's home
    # directory if a ~user request is received.
    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>
    #<IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    #AddType application/x-httpd-php .php4
    #AddType application/x-httpd-php-source .phps
    #</IfModule>
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    #<Directory /home/*/public_html>
    # AllowOverride FileInfo AuthConfig Limit
    # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    # <Limit GET POST OPTIONS PROPFIND>
    # Order allow,deny
    # Allow from all
    # </Limit>
    # <LimitExcept GET POST OPTIONS PROPFIND>
    # Order deny,allow
    # Deny from all
    # </LimitExcept>
    #</Directory>
    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.php index.htm
    </IfModule>
    # AccessFileName: The name of the file to look for in each directory
    # for access control information.
    AccessFileName .htaccess
    # The following lines prevent .htaccess files from being viewed by
    # Web clients. Since .htaccess files often contain authorization
    # information, access is disallowed for security reasons. Comment
    # these lines out if you want Web visitors to see the contents of
    # .htaccess files. If you change the AccessFileName directive above,
    # be sure to make the corresponding changes here.
    # Also, folks tend to use names such as .htpasswd for password
    # files, so this will protect those as well.
    <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>
    # Apple specific filesystem protection.
    <Files "rsrc">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>
    <Directory ~ ".*\.\.namedfork">
    Order allow,deny
    Deny from all
    Satisfy All
    </Directory>
    # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
    # document that was negotiated on the basis of content. This asks proxy
    # servers not to cache the document. Uncommenting the following line disables
    # this behavior, and proxies will be allowed to cache the documents.
    #CacheNegotiatedDocs
    # UseCanonicalName: (new for 1.3) With this setting turned on, whenever
    # Apache needs to construct a self-referencing URL (a URL that refers back
    # to the server the response is coming from) it will use ServerName and
    # Port to form a "canonical" name. With this setting off, Apache will
    # use the hostname:port that the client supplied, when possible. This
    # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
    UseCanonicalName On
    # TypesConfig describes where the mime.types file (or equivalent) is
    # to be found.
    <IfModule mod_mime.c>
    TypesConfig /private/etc/httpd/mime.types
    </IfModule>
    # DefaultType is the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    # The modmimemagic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    # modmimemagic is not part of the default server (you have to add
    # it yourself with a LoadModule [see the DSO paragraph in the 'Global
    # Environment' section], or recompile the server and include modmimemagic
    # as part of the configuration), so it's enclosed in an <IfModule> container.
    # This means that the MIMEMagicFile directive will only be processed if the
    # module is part of the server.
    <IfModule modmimemagic.c>
    MIMEMagicFile /private/etc/httpd/magic
    </IfModule>
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    HostnameLookups Off
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you do define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/private/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you do
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and not in this file.
    CustomLog "/private/var/log/httpd/access_log" common
    # If you would like to have agent and referer logfiles, uncomment the
    # following directives.
    #CustomLog "/private/var/log/httpd/referer_log" referer
    #CustomLog "/private/var/log/httpd/agent_log" agent
    # If you prefer a single logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/private/var/log/httpd/access_log" combined
    # Optionally add a line containing the server version and virtual host
    # name to server-generated pages (error documents, FTP directory listings,
    # mod_status and mod_info output etc., but not CGI generated documents).
    # Set to "EMail" to also include a mailto: link to the ServerAdmin.
    # Set to one of: On | Off | EMail
    ServerSignature On
    # EBCDIC configuration:
    # (only for mainframes using the EBCDIC codeset, currently one of:
    # Fujitsu-Siemens' BS2000/OSD, IBM's OS/390 and IBM's TPF)!!
    # The following default configuration assumes that "text files"
    # are stored in EBCDIC (so that you can operate on them using the
    # normal POSIX tools like grep and sort) while "binary files" are
    # stored with identical octets as on an ASCII machine.
    # The directives are evaluated in configuration file order, with
    # the EBCDICConvert directives applied before EBCDICConvertByType.
    # If you want to have ASCII HTML documents and EBCDIC HTML documents
    # at the same time, you can use the file extension to force
    # conversion off for the ASCII documents:
    # > AddType text/html .ahtml
    # > EBCDICConvert Off=InOut .ahtml
    # EBCDICConvertByType On=InOut text/* message/* multipart/*
    # EBCDICConvertByType On=In application/x-www-form-urlencoded
    # EBCDICConvertByType On=InOut application/postscript model/vrml
    # EBCDICConvertByType Off=InOut /
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    <IfModule mod_alias.c>
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL. So "/icons" isn't aliased in this
    # example, only "/icons/". If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    Alias /icons/ "/usr/share/httpd/icons/"
    <Directory "/usr/share/httpd/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    # This Alias will project the on-line documentation tree under /manual/
    # even if you change the DocumentRoot. Comment it if you don't want to
    # provide access to the on-line documentation.
    Alias /manual/ "/Library/WebServer/Documents/manual/"
    <Directory "/Library/WebServer/Documents/manual">
    Options Indexes FollowSymlinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
    # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/Library/WebServer/CGI-Executables">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>
    # End of aliases.
    # Redirect allows you to tell clients about documents which used to exist in
    # your server's namespace, but do not anymore. This allows you to tell the
    # clients where to look for the relocated document.
    # Format: Redirect old-URI new-URL
    # Directives controlling the display of server-generated directory listings.
    <IfModule mod_autoindex.c>
    # FancyIndexing is whether you want fancy directory indexing or standard
    IndexOptions FancyIndexing
    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions. These are only displayed for
    # FancyIndexed directories.
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    DefaultIcon /icons/unknown.gif
    # AddDescription allows you to place a short description after a file in
    # server-generated indexes. These are only displayed for FancyIndexed
    # directories.
    # Format: AddDescription "description" filename
    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz
    # ReadmeName is the name of the README file the server will look for by
    # default, and append to directory listings.
    # HeaderName is the name of a file which should be prepended to
    # directory indexes.
    ReadmeName README.html
    HeaderName HEADER.html
    # IndexIgnore is a set of filenames which directory indexing should ignore
    # and not include in the listing. Shell-style wildcarding is permitted.
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    </IfModule>
    # End of indexing directives.
    # Document types.
    <IfModule mod_mime.c>
    # AddLanguage allows you to specify the language of a document. You can
    # then use content negotiation to give a browser a file in a language
    # it can understand.
    # Note 1: The suffix does not have to be the same as the language
    # keyword --- those with documents in Polish (whose net-standard
    # language code is pl) may wish to use "AddLanguage pl .po" to
    # avoid the ambiguity with the common suffix for perl scripts.
    # Note 2: The example entries below illustrate that in quite
    # some cases the two character 'Language' abbreviation is not
    # identical to the two character 'Country' code for its country,
    # E.g. 'Danmark/dk' versus 'Danish/da'.
    # Note 3: In the case of 'ltz' we violate the RFC by using a three char
    # specifier. But there is 'work in progress' to fix this and get
    # the reference data for rfc1766 cleaned up.
    # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
    # French (fr) - German (de) - Greek-Modern (el)
    # Italian (it) - Korean (kr) - Norwegian (no) - Norwegian Nynorsk (nn)
    # Portugese (pt) - Luxembourgeois* (ltz)
    # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cs)
    # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
    # Russian (ru)
    AddLanguage da .dk
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage he .he
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage es .es
    AddLanguage sv .sv
    AddLanguage cs .cz .cs
    AddLanguage ru .ru
    AddLanguage zh-TW .zh-tw
    AddCharset Big5 .Big5 .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866 .cp866
    AddCharset ISO-8859-5 .iso-ru
    AddCharset KOI8-R .koi8-r
    AddCharset UCS-2 .ucs2
    AddCharset UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    # Just list the languages in decreasing order of preference. We have
    # more or less alphabetized them here. You probably want to change this.
    <IfModule mod_negotiation.c>
    LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    AddType application/x-tar .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    # Despite the name similarity, the following Add* directives have nothing
    # to do with the FancyIndexing customization directives above.
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #AddType application/x-compress .Z
    #AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers",
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action command (see below)
    # If you want to use server side includes, or CGI outside
    # ScriptAliased directories, uncomment the following lines.
    # To use CGI scripts:
    #AddHandler cgi-script .cgi
    # To use server-parsed HTML files
    #AddType text/html .shtml
    #AddHandler server-parsed .shtml
    # Uncomment the following line to enable Apache's send-asis HTTP file
    # feature
    #AddHandler send-as-is asis
    # If you wish to use server-parsed imagemap files, use
    #AddHandler imap-file map
    # To enable type maps, you might want to use
    #AddHandler type-map var
    </IfModule>
    # End of document types.
    # Action lets you define media types that will execute a script whenever
    # a matching file is called. This eliminates the need for repeated URL
    # pathnames for oft-used CGI file processors.
    # Format: Action media/type /cgi-script/location
    # Format: Action handler-name /cgi-script/location
    # MetaDir: specifies the name of the directory in which Apache can find
    # meta information files. These files contain additional HTTP headers
    # to include when sending the document
    #MetaDir .web
    # MetaSuffix: specifies the file name suffix for the file containing the
    # meta information.
    #MetaSuffix .meta
    # Customizable error response (Apache style)
    # these come in three flavors
    # 1) plain text
    #ErrorDocument 500 "The server made a boo boo.
    # n.b. the single leading (") marks it as text, it does not get output
    # 2) local redirects
    #ErrorDocument 404 /missing.html
    # to redirect to local URL /missing.html
    #ErrorDocument 404 /cgi-bin/missing_handler.pl
    # N.B.: You can redirect to a script or a document using server-side-includes.
    # 3) external redirects
    #ErrorDocument 402 http://some.other-server.com/subscription_info.html
    # N.B.: Many of the environment variables associated with the original
    # request will not be available to such a script.
    # Customize behaviour based on the browser
    <IfModule mod_setenvif.c>
    # The following directives modify normal HTTP response behavior.
    # The first directive disables keepalive for Netscape 2.x and browsers that
    # spoof it. There are known problems with these browser implementations.
    # The second directive is for Microsoft Internet Explorer 4.0b2
    # which has a broken HTTP/1.1 implementation and does not properly
    # support keepalive when it is used on 301 or 302 (redirect) responses.
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    # The following directive disables HTTP/1.1 responses to browsers which
    # are in violation of the HTTP/1.0 spec by not being able to grok a
    # basic 1.1 response.
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    # End of browser customization directives
    # Allow server status reports, with the URL of http://servername/server-status
    # Change the ".your-domain.com" to match your domain to enable.
    #<Location /server-status>
    # SetHandler server-status
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    #</Location>
    # Allow remote server configuration reports, with the URL of
    # http://servername/server-info (requires that mod_info.c be loaded).
    # Change the ".your-domain.com" to match your domain to enable.
    #<Location /server-info>
    # SetHandler server-info
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    #</Location>
    # There have been reports of people trying to abuse an old bug from pre-1.1
    # days. This bug involved a CGI script distributed as a part of Apache.
    # By uncommenting these lines you can redirect these attacks to a logging
    # script on phf.apache.org. Or, you can record them yourself, using the script
    # support/phfabuselog.cgi.
    #<Location /cgi-bin/phf*>
    # Deny from all
    # ErrorDocument 403 http://phf.apache.org/phfabuselog.cgi
    #</Location>
    # Proxy Server directives. Uncomment the following lines to
    # enable the proxy server:
    #<IfModule mod_proxy.c>
    # ProxyRequests On
    # <Directory proxy:*>
    # Order deny,allow
    # Deny from all
    # Allow from .your-domain.com
    # </Directory>
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    # ProxyVia On
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    # CacheRoot "/private/var/run/proxy"
    # CacheSize 5
    # CacheGcInterval 4
    # CacheMaxExpire 24
    # CacheLastModifiedFactor 0.1
    # CacheDefaultExpire 1
    # NoCache a-domain.com another-domain.edu joes.garage-sale.com
    #</IfModule>
    # End of proxy directives.
    ### Section 3: Virtual Hosts
    # VirtualHost: If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    # Please see the documentation at <URL:<a class="jive-link-external-small" href="http://">http://www.apache.org/docs/vhosts/>
    # for further details before you try to setup virtual hosts.
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    # Use name-based virtual hosting.
    #NameVirtualHost *:80
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #<VirtualHost *:80>
    # ServerAdmin [email protected]
    # DocumentRoot /www/docs/dummy-host.example.com
    # ServerName dummy-host.example.com
    # ErrorLog logs/dummy-host.example.com-error_log
    # CustomLog logs/dummy-host.example.com-access_log common
    #</VirtualHost>

    gparker03 wrote:
    Holy cow .... http://localhost/index.php is working! So basically the php has to be run ON the apache server correct? How would I get it to run in something like Coda? It's not viewable currently in Coda's preview menu.
    Hmm. I downloaded Coda and messed with it a bit and I can't figure out how to get it to do that. Basically, you'd need a way to get it to recognize that the files need to be previewed with the Apache server instead of just reading them from the temporary files it seems to create. You might have to resort to using two apps open: Coda for editing, then just switch to your regular browser and access it through the "http://localhost" address. That's basically what I do. I edit in TextMate or BBEdit, then use a shortcut like "command-tab" to switch to my browser and preview it there.
    Also mysql is already installed correct?
    No, there's a user created for MySQL, but the server itself isn't installed. The best place to get it is from MySQL's web site. Just make sure you get the right version for your OS and CPU architecture.
    charlie

  • Problem with downgrading bios. MSI P67A-GD65 (B3).

    Hi!
    I'm having problems with downgrading my bios from version 4.3 to 1.19. I want to downgrade, because 4.3 doesn't want to boot when I use xmp settings for my RAM ( that might be related to my CPU since I have i5 2500k which is 32nm and 4.3 version of BIOS is recommended for 22nm processors ). When I try to flash with the MSI Forum HQ USB Flashing Tool I'm getting an error: "Rom file ROMID is not compatible with existing BIOS ROMID". I've ran out of ideas how to downgrade my bios so I'm asking you for help. My specs:
    MOBO: MSI P67A-GD65 (B3)
    CPU: INTEL CORE i5 2500K
    RAM: G.SKILL RIPJAWS X 4GB (2x2GB) DDR3 1600MHZ CL6 (F3-12800CL6D-4GBXH)

    Here you go. GD65 and GD55 usde the same BIOS files;
    https://forum-en.msi.com/index.php?topic=179837.msg1295420#msg1295420

  • Serious issue with VLC (even downgrade does not fix it?!?)

    Hello all,
    yesterday I've updated my Arch after a while. After update, VLC stopped working, it just segfaults on start. Here is the log output:
    $ vlc -vvv
    VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
    [0x1ccf058] main libvlc debug: VLC media player - 2.1.4 Rincewind
    [0x1ccf058] main libvlc debug: Copyright © 1996-2014 the VideoLAN team
    [0x1ccf058] main libvlc debug: revision 2.1.4-0-g2a072be
    [0x1ccf058] main libvlc debug: configured with ./configure '--prefix=/usr' '--sysconfdir=/etc' '--disable-rpath' '--enable-faad' '--enable-nls' '--enable-lirc' '--enable-ncurses' '--enable-realrtsp' '--enable-aa' '--enable-vcdx' '--enable-upnp' '--enable-opus' '--enable-sftp' 'LUAC=/usr/bin/luac' 'LUA_LIBS=-llua -lm ' 'RCC=/usr/bin/rcc-qt4' 'CFLAGS=-I/usr/include/samba-4.0' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-I/usr/include/samba-4.0' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    [0x1ccf058] main libvlc debug: searching plug-in modules
    [0x1ccf058] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
    [0x1ccf058] main libvlc warning: cannot read /usr/lib/vlc/plugins/plugins.dat (No such file or directory)
    [0x1ccf058] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
    Segmentation fault (core dumped)
    I tried downgrading VLC back to 2.1.2, which used to work, but at my unpleasant surprise it crashes with the same error:
    $ vlc -vvv
    VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
    [0x1488058] main libvlc debug: VLC media player - 2.1.2 Rincewind
    [0x1488058] main libvlc debug: Copyright © 1996-2013 the VideoLAN team
    [0x1488058] main libvlc debug: revision 2.1.2-0-ga4c4876
    [0x1488058] main libvlc debug: configured with ./configure '--prefix=/usr' '--sysconfdir=/etc' '--disable-rpath' '--enable-faad' '--enable-nls' '--enable-lirc' '--enable-ncurses' '--enable-realrtsp' '--enable-aa' '--enable-vcdx' '--enable-upnp' '--enable-opus' '--enable-sftp' 'LUAC=/usr/bin/luac' 'LUA_LIBS=-llua -lm ' 'RCC=/usr/bin/rcc-qt4' 'CFLAGS=-I/usr/include/samba-4.0' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-I/usr/include/samba-4.0' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
    [0x1488058] main libvlc debug: searching plug-in modules
    [0x1488058] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
    [0x1488058] main libvlc warning: cannot read /usr/lib/vlc/plugins/plugins.dat (No such file or directory)
    [0x1488058] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
    Segmentation fault (core dumped)
    During upgrade I noticed strange segfault whilst updating the VLC:
    upgrading vlc [####################################################] 100%
    /tmp/alpm_wQxpzI/.INSTALL: line 1: 10842 Segmentation fault (core dumped) usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
    I even tried building my own VLC from git and after everything compiles, make fails with the same error:
    make[2]: Entering directory '/home/dodo/Build/vlc/vlc/bin'
    GEN ../modules/plugins.dat
    /bin/sh: line 4: 11486 Segmentation fault (core dumped) ./vlc-cache-gen ../modules
    I tried running the vlc-cache-gen under gdb to investigate the segfault it appears to be in glibc (?!?):
    (gdb) bt
    #0 0x00007ffff67ed44a in __strcmp_sse2_unaligned () from /usr/lib/libc.so.6
    #1 0x00007fffef413ab9 in g_str_equal () from /usr/lib/libglib-2.0.so.0
    #2 0x00007fffef4131e0 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
    #3 0x00007fffef4329a0 in g_quark_from_static_string () from /usr/lib/libglib-2.0.so.0
    #4 0x00007fffed7b989c in ?? () from /usr/lib/libgobject-2.0.so.0
    #5 0x00007ffff7dea9ca in call_init.part () from /lib64/ld-linux-x86-64.so.2
    #6 0x00007ffff7deaab3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
    #7 0x00007ffff7deec08 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
    #8 0x00007ffff7dea884 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
    #9 0x00007ffff7dee3fb in _dl_open () from /lib64/ld-linux-x86-64.so.2
    #10 0x00007ffff726c02b in ?? () from /usr/lib/libdl.so.2
    #11 0x00007ffff7dea884 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
    #12 0x00007ffff726c5dd in ?? () from /usr/lib/libdl.so.2
    #13 0x00007ffff726c0c1 in dlopen () from /usr/lib/libdl.so.2
    #14 0x00007ffff79623cb in ?? () from /usr/lib/libvlccore.so.7
    #15 0x00007ffff79476db in ?? () from /usr/lib/libvlccore.so.7
    #16 0x00007ffff794751a in ?? () from /usr/lib/libvlccore.so.7
    #17 0x00007ffff79473d9 in ?? () from /usr/lib/libvlccore.so.7
    #18 0x00007ffff794740e in ?? () from /usr/lib/libvlccore.so.7
    #19 0x00007ffff79470c3 in ?? () from /usr/lib/libvlccore.so.7
    ---Type <return> to continue, or q <return> to quit---
    #20 0x00007ffff7946ece in ?? () from /usr/lib/libvlccore.so.7
    #21 0x00007ffff7946a68 in ?? () from /usr/lib/libvlccore.so.7
    #22 0x00007ffff78bf944 in libvlc_InternalInit () from /usr/lib/libvlccore.so.7
    #23 0x00007ffff7bc573e in libvlc_new () from /usr/lib/libvlc.so.5
    #24 0x00000000004008fe in main (argc=2, argv=<optimized out>) at cachegen.c:99
    I tried downgrading glibc back to 2.8.12 (and all dependencies), but the error persists.
    The pacman upgrade log is here.
    NOTE:
    In my /etc/pacman.conf, I've got following packages set to ignore:
    IgnorePkg = linux linux-headers ati-dri mesa mesa-libgl xf86-video-ati xf86-video-vesa xf86-input-synaptics xf86-input-mouse xf86-input-keyboard xf86-input-evdev xorg-server gnupg libgcrypt glamor-egl
    This is because I have to stick with 3.10.10 kernel, 9.2.0 ati-dri, 1.14.4 Xserver and 1.5.3 libgcrypt (XServer dependency) because if I upgrade any of these packages, I end up with unbootable system (my laptop HP Compaq nx9420 RU478EA has got old ATI Radeon X1600 that obviously is not supported anymore with mesa 10 and kernel 3.11 and newer).
    Any ideas about how to make VLC work? It is my favourite video and DVB-T TV player...

    In the meantime I've solved the boot problem (see https://bbs.archlinux.org/viewtopic.php?id=178789) and I've been tracing steps to find out why VLC segfaults.
    So, I've pulled the latest VLC from their git and went on compiling. Of course, make failed while generating plugins.dat file. Target that builds that file uses vlc-cache-gen utility that segfaults. I've taken the liberty of modifying the source code and adding various printf's throughout the code to pinpoint the source code line that segfaults.
    The trace of vlc-cache-gen's source code showed me that segfault happens while calling libvlc_new function. I've traced eve further and found that segfaults happens in calling module_LoadPlugins (line ~153 in src/libvlc.c inside libvlc_InternalInit - note that line numbers have offset because of my printf's). Tracing even deeper guided me to function module_InitDynamic inside src/modules/bank.c (somewhere around line 638). For some plugins module_Load function call worked and for some segfaulted.
    By taking a look of implementation of module_Load function in src/posix/plugin.c, I've found out that line that segfaults is "module_handle_t handle = dlopen (path, flags);" when trying to load "../modules/.libs/libnotify_plugin.so", i.e. the issue is not in VLC, but in dlopen. I've tried removing libnotify_plugin.so from generated .libs/ plugins, but then segfault appeared on libkate_plugin.so. Moreover, I had to remove following plugins to avoid the segfault:
    libnotify_plugin.so
    libkate_plugin.so
    libgnomevfs_plugin.so
    gui/qt4/libqt4_plugin.so
    After removing those plugins, vlc-cache-gen did the job, but VLC still didn't work because obviously it requires at least libqt4_plugin.
    I've also tried reinstalling libnotify and then rebuilding VLC, but I've got nevertheless segfault on dlopen of libnotify_plugin.so and other mentioned libraries.
    How should I approach the problem now? Obviously something is wrong with dlopen - this explains why downgrading the VLC didn't fix the issue. How to debug dlopen? GDB backtrace of dlopen gives me following trace:
    #0 0x00007ffff67ed44a in __strcmp_sse2_unaligned () from /usr/lib/libc.so.6
    #1 0x00007fffeebfcab9 in g_str_equal () from /usr/lib/libglib-2.0.so.0
    #2 0x00007fffeebfc1e0 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
    #3 0x00007fffeec1b9a0 in g_quark_from_static_string () from /usr/lib/libglib-2.0.so.0
    #4 0x00007fffecfa289c in ?? () from /usr/lib/libgobject-2.0.so.0
    #5 0x00007ffff7dea9ca in call_init.part () from /lib64/ld-linux-x86-64.so.2
    #6 0x00007ffff7deaab3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
    #7 0x00007ffff7deec08 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
    #8 0x00007ffff7dea884 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
    #9 0x00007ffff7dee3fb in _dl_open () from /lib64/ld-linux-x86-64.so.2
    #10 0x00007ffff726c02b in ?? () from /usr/lib/libdl.so.2
    #11 0x00007ffff7dea884 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
    #12 0x00007ffff726c5dd in ?? () from /usr/lib/libdl.so.2
    #13 0x00007ffff726c0c1 in dlopen () from /usr/lib/libdl.so.2
    My guess that one of the strings in g_str_equal is either NULL or points to freed memory. But how to verify that?
    Any ideas would be highly appreciated.

  • How to downgrade kernel 3.10 - blank screen problem after upgrade

    After a recent upgrade, which included kernel 3.10, my ASUS zenbook ux21a boots into a blank screen as reported in these topics:
    https://bbs.archlinux.org/viewtopic.php?id=167411
    https://bbs.archlinux.org/viewtopic.php?id=167463
    https://bbs.archlinux.org/viewtopic.php?id=167518
    How do I downgrade to kernel 3.9, please?
    On this laptop I only have dual boot Arch and Win8 (but also a vacant partition). My grub timeout is set to 0 seconds because I almost never use windows, hence my problem is to get any control of the PC. I have attempted a fresh install from USB, but it takes me into exactly the same blank screen. I also attempted install of the older arch version, which went ok until post-installation reboot, following which I ended up with the same blank screen - probably because during the installation the new kernel 3.10 was downloaded.
    I read in the above topics that people solved the problem by downgrading the kernel - somehow via chrooting from live arch usb. I lack knowledge on how to perform the kernel downgrade - perhaps someone can give instructions or at least tips how to get started.
    Interestingly, the same kernel 3.10 upgrade did not cause problems on a very similar predecessor model ASUS us21e - this info may help the advanced guys to diagnose the source of the problem.
    Last edited by latgarf (2013-08-04 21:18:04)

    Thanks, andrekp, but it didn't work on my UX21A.
    Here's what I did (screen stays black all throughout):
    1. Boot the computer. I believe this takes me to login promt at tty1.
    2. I login by blindly entering userid, <enter>, password, <enter>
    3. speaker-test <enter> - I hear noise. Ctl+c to get out (noise stops).
    4. Switch to tty2 by pressing ctl+alt+f2.
    5. In tty2, I login by blindly entering userid, <enter>, password, <enter>; then speaker-test successful on tty2.
    6. Switch back to tty1 by pressing ctl+alt+f1; speaker-test successful again on tty1.
    7. Type startx. I assume that X and openbox are started successfully: I start lxterminal by pressing my custom short-cut keys combo that I specified in openbox's rc.xml; and speaker-test gives me audible noise from within lxterminal.
    Again, screen stayed dark as night all the time, so the problem remains.
    As my time allows, I try to come up to speed and follow/replicate the attempts to identify/resolve this problem made by more advanced guys in other topics:
    https://bbs.archlinux.org/viewtopic.php?id=167411
    https://bbs.archlinux.org/viewtopic.php?id=167463
    https://bbs.archlinux.org/viewtopic.php?id=167518
    https://bbs.archlinux.org/viewtopic.php?id=167314
    The problem originally arose at # pacman -Syu, which included kernel upgrade from 3.9.9 to 10.3.3. After a later upgrade to 10.3.5, the problem remains. I've enabled 'testing' repositories on my other laptop, UX21E (which doesn't have this problem despite being the closest model!) - and I wait for the new 'testing' kernel to be released in arch, hoping to do a blind upgrade on UX21A and that it solves the problem. I also monitor https://www.kernel.org for when kernel 3.11 becomes available. If I manage to install kernel 3.11 even before it's released in arch-testing, maybe the problem will be gone...
    In the mean time, I keep using the UX21A computer having installed Lubuntu on another partition (it has kernel 3.8).
    Thanks again!

  • [SOLVED] Unable to boot after downgrading from 2.6.38 to 2.6.37

    After experiencing some issues with 2.6.38 and my Intel video card (external monitor support). I decided to go back to 2.6.37 for the time being.
    I went into my /var/cache/pacman/pkg and typed in:
    pacman -U kernel26-2.6.37-6-x86_64.pkg.tar.xz kernel26-headers-2.6.37-6-x86_64.pkg.tar.xz linux-api-headers-2.6.37-1-x86_64.pkg.tar.xz
    warning: downgrading package kernel26 (2.6.38.2-1 => 2.6.37-6)
    warning: downgrading package kernel26-headers (2.6.38.2-1 => 2.6.37-6)
    warning: downgrading package linux-api-headers (2.6.38.1-1 => 2.6.37-1)
    resolving dependencies...
    looking for inter-conflicts...
    Targets (3): kernel26-2.6.37-6 kernel26-headers-2.6.37-6 linux-api-headers-2.6.37-1
    Total Download Size: 0.00 MB
    Total Installed Size: 96.04 MB
    Proceed with installation? [Y/n] y
    (3/3) checking package integrity [#######################################################] 100%
    (3/3) checking for file conflicts [#######################################################] 100%
    (1/3) upgrading kernel26 [#######################################################] 100%
    >>> Updating module dependencies. Please wait ...
    >>> MKINITCPIO SETUP
    >>> ----------------
    >>> If you use LVM2, Encrypted root or software RAID,
    >>> Ensure you enable support in /etc/mkinitcpio.conf .
    >>> More information about mkinitcpio setup can be found here:
    >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    ==> Building image "default"
    ==> Running command: /sbin/mkinitcpio -k 2.6.37-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    :: Begin build
    :: Parsing hook [base]
    :: Parsing hook [udev]
    :: Parsing hook [autodetect]
    :: Parsing hook [pata]
    :: Parsing hook [scsi]
    :: Parsing hook [sata]
    :: Parsing hook [uresume]
    :: Parsing hook [filesystems]
    :: Parsing hook [keymap]
    :: Generating module dependencies
    :: Generating image '/boot/kernel26.img'...SUCCESS
    ==> SUCCESS
    ==> Building image "fallback"
    ==> Running command: /sbin/mkinitcpio -k 2.6.37-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    :: Begin build
    :: Parsing hook [base]
    :: Parsing hook [udev]
    :: Parsing hook [pata]
    :: Parsing hook [scsi]
    :: Parsing hook [sata]
    :: Parsing hook [uresume]
    :: Parsing hook [filesystems]
    :: Parsing hook [keymap]
    :: Generating module dependencies
    :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    ==> SUCCESS
    (2/3) upgrading kernel26-headers [#######################################################] 100%
    (3/3) upgrading linux-api-headers [#######################################################] 100%
    Then I rebooted and to my surprise I got stuck very early during the boot process.
    sda: sda1 sda2 sda3
    sd 0:0:0:0 [sda] Attached SCSI disk
    Waiting 10 seconds for device /dev/sda3
    mount: mounting /dev/sda3 on /new_root failed: No such device
    ERROR: Failed to mount the real root device
    Hopefully I had a 2.6.39rc3-mainline entry in my grub so I selected it and was able to boot as before. I then upgraded from 2.6.37 back to 2.6.38 and guess what... still unable to boot (same message).
    What could be the root cause?
    Thanks
    Alphazo
    Last edited by alphazo (2011-04-13 14:09:20)

    Finally I got both 2.6.37 and 2.6.38 to boot again but boy it wasn't pretty. Before I start here is what I did before the boot issue.
    - Running     2.6.38.2-1 from [Core]
    - I also have 2.6.39rc3 from [miffe] repo with a dedicated entry in Grub (testing & recovery)
    - Downgraded to 2.6.37 using from /var/cache/pacman/pkg:
    pacman -U kernel26-2.6.37-6-x86_64.pkg.tar.xz kernel26-headers-2.6.37-6-x86_64.pkg.tar.xz linux-api-headers-2.6.37-1-x86_64.pkg.tar.xz
    - Rebooted
    - Boot would stop early during the process
    - Booted 2.6.39rc3
    - Upgraded to 2.6.38.2-1 via
    pacman -U kernel26-2.6.38.2-1-x86_64.pkg.tar.xz kernel26-headers-2.6.38.2-1-x86_64.pkg.tar.xz linux-api-headers-2.6.38.1-1-x86_64.pkg.tar.xz
    - Rebooted
    - Boot would stop early during the process
    - Booted 2.6.39rc3
    - Downgraded to 2.6.37 using from /var/cache/pacman/pkg:
    pacman -U kernel26-2.6.37-6-x86_64.pkg.tar.xz kernel26-headers-2.6.37-6-x86_64.pkg.tar.xz linux-api-headers-2.6.37-1-x86_64.pkg.tar.xz
    - Rebooted
    - Boot would stop early during the process
    - Booted 2.6.39rc3
    - Copied via USB kernel26.img and vmlinuz26 from a friend's PC (running same Arch configuration with 2.6.38 kernel)
    - Rebooted
    - This time, my friend's 2.6.38 would start
    - Upgraded to 2.6.38.2-1 via
    pacman -U kernel26-2.6.38.2-1-x86_64.pkg.tar.xz kernel26-headers-2.6.38.2-1-x86_64.pkg.tar.xz linux-api-headers-2.6.38.1-1-x86_64.pkg.tar.xz
    - Rebooted
    - This time, my 2.6.38 would start
    - Downgraded to 2.6.37 using from /var/cache/pacman/pkg:
    pacman -U kernel26-2.6.37-6-x86_64.pkg.tar.xz kernel26-headers-2.6.37-6-x86_64.pkg.tar.xz linux-api-headers-2.6.37-1-x86_64.pkg.tar.xz
    - Rebooted
    - Again I can boot from 2.6.37
    So overall there have been two issues. One when dowgrading from 2.6.38 to 2.6.37 while running 2.6.38 and then when downgrading to 2.6.37 or 2.6.38 while running 2.6.39.
    A bit confusing I admit but I think there is a glitch here that does bad thing when generating kernel26.img
    Alphazo

  • When I try to click on a download link for a .pdf file Firefox does not recognize the MIME type and tries to download the file as "index.php"

    When visiting a site I frequent I tried to download a linked .pdf file. Previously I've used Firefox 7.0.1 to download the link with no problem. Using Firefox 8 however I the browser does not recognize the .pdf link's mime type. Instead of recognizing the download link as a .pdf file Firefox 8 tries to download it as "index.php". Firefox 8 does this with .doc files and .txt files as well. When I downgrade to 7.0.1 again the problem disappears.

    Hi hakmacpace,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    You could also try [https://support.mozilla.org/en-US/kb/Managing-profiles?s=create+a+new+profile&r=2&e=es&as=s#w_creating-a-profile Creating a new profile].
    Hopefully this helps!

Maybe you are looking for