Rollback Apache/PHP to default state

Long story short: I seriously borked my apache/php setup that came with Leopard. I'm now using Xampp but it's got a few limitations and would like to roll back my original Apache/PHP to the default state, preferably without having to reinstall Leopard. Can this be done?

Depends entirely on what you did to it.

Similar Messages

  • Default Apache / PHP or Precompiled Apache 2 + PHP 5?

    I'd really appreciate any insight into how I (n00b) can use the default Apache configuration to learn PHP (where is it?) or is setting up another Apache/PHP instance in /usr/local/ safe?
    This is the tutorial I would follow if it is safe to upgrade to PHP5 / Apache 2:
    http://www.entropy.ch/blog/2006/05/12/Universal-Binary-Apache-2-configure-Line.h tml
    http://www.entropy.ch/software/macosx/php/
    So far, I've cd /usr/local
    curl -s http://www2.entropy.ch/download/apache2-2.2.3-macosx-universal.tar.gz | sudo tar -xzvf -
    Do I need to remove the above to prevent conflicts with OSX's default apache? I don't even know where to find the default install or where to go from here.
    Ullman's PHP&MySQL book is sitting in front of me waiting to be explored once I can get this installation completed, so any direction is MUCH appreciated

    Thanks again Charlie!
    You're welcome.
    I did download the Apache2 version of PHP5 - so i'm assuming i'd need to remove both and redownload the correct version?
    Yeah, do that first. You should be able to just re-run the correct PHP5 installer. If that doesn't work, you can delete the old install with this Terminal command:
    <pre class="command">sudo rm -Rf /usr/local/php5</pre>By the way, if you want to delete the Apache 2 installation, the command would be:
    <pre class="command">sudo rm -Rf /usr/local/apache2</pre>When you're typing those commands, be very careful not to have any spaces in the paths. That could result in accidentally erasing more than you'd intended.
    Here's the result of httpd -V you requested:
    Server version: Apache/1.3.33 (Darwin)
    Okay, so at least the command line is still seeing the stock Apache server. I think you should be fine.
    And finally the result for sudo /usr/sbin/apachectl start:
    Processing config directory: /private/etc/httpd/users/*.conf
    Processing config file: /private/etc/httpd/users/+entropy-php.conf
    Syntax error on line 8 of /private/etc/httpd/users/+entropy-php.conf:
    Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
    /usr/sbin/apachectl start: httpd could not be started
    I suspect that the error there is just because the PHP5 module is for Apache 2 and that's why it can't be loaded. Once you install the correct PHP5, that message is likely to go away.
    A couple quick notes on Apache. First, if you succeed in starting it from the command line, it's possible that the Sharing preferences won't show that it's running. I'm not sure how that works under Tiger, but it used to be that it didn't always reflect the true state of the Apache server if it was stopped or started using the command line.
    Second, if you want to use the Sharing preference to stop and start it, you can always look at the results using the Console application. It's in your utilities folder, and the logs you're looking for are in the /var/www/httpd folder. The error log is especially helpful.
    Finally, I'm going to be kind busy next few days, so if you post and don't get a response, I'm not ignoring you, and I'll get back when I can...
    best,
    charlie

  • Preserving link and default state using cookies

    Hello,
    I am not sure where to post this with the re-design of this forum; it's been a while so please forgive me if this is in the wrong g place.
    I have a very basic link wrapped in a UL tag.
    I am using JQuery to give the links a color when they are clicked by performing an add/remove class function, the link state is than preserved by cookies so if a user returns to a page; it shows what tab they were viewing.
    The problem is; this is a single page and I want to set a default link or tab; say the first one. I do not know how to do this.
    This is what I am looking to accomplished:
    A user visits the page and the first link is colored red (default)
    If the user clicks on another link that link becomes active and the first link looses it's default status
    When the user returns the first link is nolonger the default, it is whatever link the user selected when first visited; that's because that link was rememberd using cookies.
    The first link will ONLY maintain the default state if the user deletes his cookies or visits the page for the first time.
    Here is a peice of JQuery I have used to maintain the selected state:
    $(document).ready(function() {
        var idActive = $.cookie('cookieActive');
        if (idActive) {
            $('#'+idActive).addClass('activeLink');
        $('ul li a').click(function() {
            var id = $(this).attr('id');
            $("ul li a").removeClass("activeLink");
            $(this).addClass("activeLink");
            $.cookie('cookieActive', id);
            $.cookie('cookieActive', id, { expires: 10000});

    Good day Mr. Powers!!
    Thank you as always; you are so helpful.
    I am editing this post because I did not get this to work due to my error with applying the ID.
    It is working now and thank you so much!
    By the way any more PHP books in the works?
    DR
    Code is now working with selecting default tab.

  • Problems with Apache PHP Mysql

    I tried doing an upgrade from Tiger to Leopard server but was having lots of issues while working with the virtual sites I have hosted. I tried a clean install and I was still unable to get Apache php and mysql to work together. Each service was starting fine but when I would try to run a php file it would only display a white page. Under the upgrade instead of displaying the page it was downloading any page I tried to load.
    In the new clean install I enabled phplib5 through server admin but even a simple info.php file with <?php phpinfo(); ?> was only giving me a white page. I dont know if mysql was interfacing with php and apache at this point cause I could not get any further. I mainly just want to be able to run wordpress which is a php blog that uses a mysql database.
    I have heard some people talking about mamp installs and not using the stock web services but I did not know if that would be a smart route to take.

    well the problem come in that you could end out with multiple releases of the same application when the idea is to make one package "stable"
    would you rather have a debain package data base that has seventeen apache's or one stable full featured apache?
    as for a server/stable tree for production machines this is coming. implimentation is not the trouble it is time that is a factor.

  • Why won't firefox load websites after reseting to default state

    I've reset mozilla through the tools troubleshooting and reset fire fix to its default state. Now the webpages such as facebook, hotmail won't load or they won't load properly.
    A window with this connection is untrusted appears. Even when I validate a security exception it won't load and it won't let me have an option of validating sometimes. Technical details says invalid security certificate. No issuer chain provided. Error code unknown issuer.

    unfortunately the fiddler2 issuer in certificates might be a sign of unwanted software present on your pc that is intercepting secure network traffic. please go into the system control panel and uninstall programs like BrowserSafeguard, BrowserSafe, SafeGuard or other software that sounds suspicious and didn't get installed by you intentionally.
    <br><sub>reference: https://support.mozilla.org/en-US/questions/982532#answer-520145</sub>
    afterwards, run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • Apache php mysql installation on arch

    does anyone have a tutorial on how to install :
    - apache
    - php
    - mysql
    on Archlinux
    i have installed apache
    pacman -S apache
    pacman -S php
    pacman -S mysql
    but apache won't start : /etc/rc.d/httpd start - it gives me FAIL
    and when i try httpd it give a nasty error
    httpd: arp_sockaddr_info_get() failed for pufos (pufos - the linux box name)
    httpd: Could not reliably determine the server's fully qualified domain name , using 127.0.0.1 for ServerName
    is because i didnt configureg good httpd.conf or what
    anyway , a tutorial for installing apache php and mysql would be perfect.
    Thank guys

    pacman -S mysql
    /etc/rc.d/mysqld start
    :: Adding mysql group
    /etc/rc.d/mysqld: line 14: groupadd: command not found
    :: Adding mysql user
    /etc/rc.d/mysqld: line 19: useradd: command not found
    chown: 'mysql.mysql': invalid user
    :: Starting MySQL [FAIL]
    omg , if the mysql installed through pacman get stuck cause 'useradd' does not exist as a command .... huuuh
    ??? any sugestions ?

  • Oracle+apache+php in windows environment

    Hi all, i have a great problem with a new web application written in Php 5 under Apache 2.2.4. using Oracle instant client 10g
    The database (10.2.0.2) characterset is WE8MSWIN1252 same for the client. When i insert/update a rows from php with àèìòù characters i see ¿¿¿ with the client (sqlplusw) if i insert/update same characters from sqlplusw i saw ???? from php.
    Tried to set NLS_LANG in httpd.conf but nothing is changed. Could anyone help me ?
    Thanks.

    What platforms are you using here, for apache/php/oracle client host and the other host where you have sqlplusw.exe?
    When having inserted non-ascii characters from sqlplusw, what does the following return
    select column, dump(column,1016) from table where ...
    After insert from php, what does the same query return?
    Also read the following thread
    charset

  • Apache/PHP connection to Oracle 9i under OpenVMS

    Hello,
    With CSWS 2 (apache)/PHP 1.3 (4.3.2) under OpenVMS 7.3.2 i'm actually trying to interface an Oracle 9i database located on the same server with no success.
    In my php.ini i've uncommented "extension=php_oci8.exe"
    In my apache$www:[000000]login.com i've added @orauser.com <SID>
    But... no connexion at that time... (php:ocilogon failed)
    Someone can help me ?
    Someone experienced such interface ?
    thanks in advance for all

    Frankly, I haven't seen an openvms setup :)
    Do you have the required oci libraries ? are they accessible to php?
    regards,
    --karthik

  • Default state of accodion on opening a web page

    Hello,
    I am wondering how to set the default state of an accordion for when a web page is first opened. I would like all panels to be collapsed and only open when the desired title is clicked.
    Also, is there a way to make the panel collapse to a completely closed state? For example, click on a title, see the contents of the panel, and click on the title to collapse that panel again?
    Any help much appreciated!
    cheers,
    Joan

    Do you have a fix for Dreamweaver CS3?
    I have found code for keeping them all closed 
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1 });
    //-->
    </script>
    Now I would like them to also *collapse* when the Accordion Panel Tab is clicked.
    Can anyone tell me how to do that?
    Terry

  • Spry TabbedPanels: set default state

    After inserting 3 Collapsible Panels on my web page, I want to set the default state of the panels so that when the page loads, panel 1 is open and panels 2 and 3 are closed. I used this code from "Set the default state of the panel" Spry Help page:
    <script type="text/javascript">
        var cp1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", { contentIsOpen: true});
        var cp2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", { contentIsOpen: false });
        var cp3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", { contentIsOpen: false });
    </script>
    But all panels remain open on page load.
    Then I tried editing the default code that is inserted by Dreamweaver Insert > Spru > Spry Tabbed Panels :
    <script type="text/javascript">
    <!--
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", contentIsOpen: false);
    var CollapsiblePanel3 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3", contentIsOpen: false);
    //-->
    </script>
    That didn't work either. Any advice on what is wrong here? Other than the wrong default state, the panels are working correctly.

    Thank you. I figured out the problem, and the default panel states are working correctly now.
    Next step: I want to use the open and close functions to toggle the state of the other panels so when the user clicks one tab to open a panel, the other two close. I'll try to get this working, but may be back to this forum in case I need help!

  • Setting agent's default state to Ready in CAD

    Hi,
         We are using UCCX 7.0 with CAD 6.0. Is it possible to set the default state of the agent to Ready when they login to their CAD.Right now, they go to the default Not Ready state one they login.
    Thanks,
    DM

    Hi
    By design CAD agent initial state after login is always not ready and there is no specific setting in uccx were you can change this behanviour.
    However you can check this post were they suggest to create a MACRO
    https://supportforums.cisco.com/message/3264497#3264497
    Regards
    Anuj

  • Mute button default state

    Hi all,
    how to set the FLV Playback Custom UI's mute button to
    default state to "OFF"?
    Any ideas?

    In case I don't come back:
    AS2:
    Drag the component on stage, double click to get inside.
    Create a new layer and open up the actions panel, add this:
    off_mc.swapDepths(on_mc);
    AS3:
    Drag the component on stage, click it once and give it an
    instance name of, mute_btn, create a new layer and open the actions
    panel, add this:
    mute_btn.setChildIndex(mute_btn.getChildAt(1), 0);
    **Notice Difference**
    AS2 you go into the component to add the actions, and the
    instance names are already there by default. AS3 you need to give
    the component an instance name, and don't go into the component,
    put that script on the main stage.

  • System user to its default state

    Hi All,
    I created few oracle objects with System user and later I came to know that those objects should be created with another user. Is there any other method to revert System user to its default state (that means the state when database was created) without deleting individual objects that I created manually.
    Thank you.
    ~ neo

    There is no script to drop unnecessary objects. You could :-
    1. ignore those objects.
    or
    2. create a new database and import the data
    or
    3. identify the custom objects and drop them. You can identify them by selecting from dba_objects and order by created.
    select object_name, object_type, created from dba_objects where owner = 'SYSTEM' order by created.

  • After today's auto-update I stupidly accepted returning Firefox to its default state. Is there any way I can undo this? (I've lost all my Speed Dial sites).

    After an auto-update installation this morning a dialog box appeared asking if I want Firefox to return to its default state. I stupidly said yes and now have lost all my Speed Dial thumbnails, URLs, and saved passwords. Is there a way I can undo this to return to the way Firefox was set up and working yesterday?

    Thanks for the response. Of course, I did not back up my profile, so I guess I'm going to have to recreate everything.

  • This doesn't work - Reset Firefox to its default state "Click the menu button New Fx Menu and then click help Help-29 .

    You say this will help and first sentence under your "Reset Firefox to its default state." is worthless !!!!!!!!!!!!!!!!!!!!!!!

    https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems
    If you don't see the '''Reset Firefox''' button on the Troubleshooting Information page in Firefox, you may not be using the ''default=1'' Profile as listed in the profiles.ini file.

Maybe you are looking for

  • Automatic Mailbox Distribution problem after Creating New AD Site

    We redesigned our Active Directory Sites a little while ago.  We moved the subnets and servers from the old sites to the new sites.  We haven't removed the old sites yet, but that will happen soon.  We haven't noticed any issues with the new sites ex

  • Can I sync my extras to my iPad?

    I purchased my iPad 2 because it is not convenient for me to use our home pc. I love iTunes and have bought a couple things that have iTunes extras, but disappointed that I cannot get them on the ipad2. It seems like a very capable device, why can it

  • Screen change for payment

    we want to hide cash discount column in standard  "post incoming payment" screen, is it possible by changing screen variant or user exit? I tried, but haven't got it, it seems only document number, Sales order number column can be hide

  • SQL Server 2000 and 2008 Standard Edition

    Hi, I was wondering if anyone knows if there are any auditing limitations in the standard editions of SQL server 2000 and 2008 R2. I'm interested to know if there are audit functions for user auditing like creation, deletion and logons Can't seem to

  • System Landscape Test Connection Error.

    Hi, My I tried to configure the system landscape for my portal system. The backend system is an xRPM. When I test the connection, I get an error under WEB AS since there is not service mentioned under Web AS Path, it only leads to /sap/bc/  I checked