Trying to get Apache, PHP and MySQL up and running

I have just bought a new MacBook and I want to set up Apache, PHP and MySQL in order to create a local mirror of a website I have in my 'Sites' folder.
I fall at the first fence!! To get Apache, I switch web sharing on in System Preferences' and I get the green light. When I click the links for personal website or computer's website I get a "Safari can't connect to the server" message.
Any ideas what I should do now?

Stephen Dancer wrote:
Any ideas what I should do now?
You will need to make some change to the index file in your Sites directory in order to enable Apache for that directory.
You will have to enable PHP in the Apache config file at /etc/apache2/httpd.conf
For MySQL, you will have to install it, and then fix it. You'll want to remove the StartupItem it wants to use and replace it with a launchd file. This discussion has a good roundup of the very latest tricks to get MySQL up and running with the latest security updates.

Similar Messages

  • HT1212 my i phone screen is black  i cannot access anything. i am trying to get my photos off of it and when i connect to i tunes it says my phone has a passcode which i cannot enter because my phone is black

    my i phone screen is black  i cannot access anything. i am trying to get my photos off of it and when i connect to i tunes it says my phone has a passcode which i cannot enter because my phone is black

    It's too late. If you had been syncing your phone with that computer prior to the screen failing, it wouldn't be asking you for a passcode...

  • Itunes  11.4.0.18 crashing when clicking on app store  Itunes is getting crash when clicked on app store. I tried to get some information for this crash and got the above message in debugging mode. Please fix this if required but i am unable to open

    Itunes  11.4.0.18 crashing when clicking on app store
    Itunes is getting crash when clicked on app store. I tried to get some information for this crash and got the above message in debugging mode. Please fix this if required but i am unable to open app store.

    Click here and follow the instructions to change the iTunes Store country.
    (97125)

  • I am trying to get my apps on my iphone and when i click sync it says backing up files and it takes hours for it to go up but it says can't finish back up wat do i do

    i am trying to get my apps on my iphone and when i click sync it says backing up files and it takes hours for it to go up but it says can't finish back up wat do i do

    dplum12
    What computer operating system is your Premiere Elements 12 running on? Did you have the opportunity to update 12 to 12.1 Update yet using an opened project's Help Menu/Update? If not, please do so when you get the opportunity.
    For now I will assume that your computer is Windows 7, 8, or 8.1 64 bit. Please try the following suggestions to overcome your Premiere Elements Sign In issue.
    http://www.atr935.blogspot.com/2014/04/pe12-premiere-elements-12-editor-will.html
    and, if you get any messages about Internet connect and the computer clock, please review the following
    http://www.atr935.blogspot.com/2014/04/pe12-sign-in-failure-connect-to.html
    Please let us know the outcome.
    Thank you.
    ATR

  • I am trying to get an app for my iPad and I am getting an unknown error message

    I am trying to get an app for my iPad and I am getting an unknown error message.

    Without more information it's hard to help. You might want to start here:
    Using itunes on iPad: http://support.apple.com/kb/HT1491
    iTunes troubleshooting: http://www.apple.com/support/itunes/troubleshooting/

  • I am trying to get a free trial of Photoshop and when I try to run CreativeCloudSet-up nothing happens.

    I am trying to get a free trial of Photoshop and when I try to run CreativeCloudSet-up nothing happens. Can you please Help me so I can start using my free trial? How can I fix this?

    We can't know. You have not provided any system information or other technical details. If the setup doesn't even start, most likely your system doesn't meet the requirements.
    Mylenium

  • I am trying to get a document from my cloud and on my Mac it says I need an updated version of numbers but when I go to mac app stores it does not allow me to download the new version which I use on my ipad?

    I am trying to access a numbers document in mycloud and it keeps saying I need a newer version. I purchased the upgraded app for my ipad and now I can't seem to upgrade my computer so that I can get access. I went to the app store but it won't let me download the newer version onto my computer? What is the point of putting things in the cloud if I can't access them?
    Jan

    Numbers documents from iOS need Numbers 3.2 on a Mac to open. And Numbers 3.2 requires Mavericks. If you are using Mavericks you can get Numbers 3.2 from the Mac App Store. It will be free IF you have Numbers 2 (iWork '09) installed. Otherwise you must buy it.
    Your other option is to send the Numbers file as an Excel file via e-mail to yourself to open with an earlier version of Numbers.

  • Trying to get onto federal student loan site and states incompatible browser

    I'm trying to get on to a website for federal student loans, when I get to the site it comes but where it says click her to fill out application a screen pops up stating browser incompatible.  I do all the downloads it says to do with my mac book pro and it still isn't working.  not sure what to do.

    This is how you deal with websites designed by morons:
    Safari > Preferences > Advanced > Show Develop menu in menu bar (checked)
    Develop > User Agent > (whatever the site expects)

  • I have a 4s and i am trying to get my photos off my phone and back onto my computer. any advice?

    I have a 4s and i am trying to get the photos off of my phone and back onto my computer.... i am not able to delete these photos (only the ones in the camera roll can i delete )   if anyone has any helpful tips they would be appreciated. thank you

    Photos transferred from your computer via the iTunes sync process cannot be deleted direct on the iPhone.
    Photos transferred from the computer are optimized for viewing on the iPhone – the original resolution of these photos is reduced, and the reason transferring these photos in the opposite direction is not supported. Photos transferred from your computer should be included with your computer's backup along with all other important data
    Photos transferred from your computer via the iTunes sync process are removed from your iPhone in the same way. To remove all photos that were transferred from your computer, deselect sync photos under the photos tab for your iPhone sync preferences with iTunes followed by sink.

  • Trying to get rows to ResultSet with CallableStatement and stored functio

    Hello!
    I'm using JDBC with Oracle XE 11g2, driver ojdbc6.jar (Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers, JDBC Thin for All Platforms) from oracle.com
    I've got a table
    CREATE TABLE ORGANIZATIONS
    CODE VARCHAR2(4),
    DESCRIPTION VARCHAR2(255)
    And I'm trying to get all organizations into ResultSet using CallableStatement with stored function:
    CallableStatement cs = connection.prepareCall("{? = call FN_GET_ROWS}");
    cs.registerOutParameter(1, oracle.jdbc.OracleTypes.CURSOR);
    cs.execute();
    I've created two types:
    CREATE OR REPLACE
    TYPE TEST_OBJ_TYPE AS OBJECT (
    CODE VARCHAR2(4),
    DESCRIPTION VARCHAR2(255)
    and
    CREATE OR REPLACE
    TYPE TEST_TABTYPE AS TABLE OF TEST_OBJ_TYPE
    and my function is
    CREATE OR REPLACE
    FUNCTION FN_GET_ROWS RETURN TEST_TABTYPE AS V_Test_Tabtype Test_TabType;
    BEGIN
    SELECT TEST_OBJ_TYPE(A.CODE, A.DESCRIPTION)
    BULK COLLECT INTO V_Test_TabType
    FROM
    (SELECT CODE, DESCRIPTION
    FROM ASM.ORGANIZATIONS
    ) A;
    RETURN V_Test_TabType;
    END;
    but when I run my program I've got error:
    P LS-00382: expression is of wrong type
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    It doesn't look like your PL/SQL Function is returning a REF CURSOR to me. It looks like you are returning a PL/SQL Index-By table of Objects.
    Regards,
    Mark

  • Trying to get video chat working between mac and pc

    im trying to get video chat working between a mac and pc
    pc-running xp with aim 6.0
    will updating to aim 6.1 fix this ?
    we can text chat with no problem
    we can not audio or video chat
    any help would be great
    thanks santini

    Hi Z,
    Lets check the Port Forwarding at your end.
    Does this Zyxel have UPnP at all ?
    If so use that and disable the Port Forwarding.
    If not then these ports need to be forwarded.
    I will list with Protocols as some device need these.
    TCP 5190 for AIM Login and text chats (can be substituted for 443)
    TCP 5220, 5222 and 5223 for Jabber (the last is for OS X servers and GoogleTalk)
    TCP 5298 this is part of the Bonjour set up for iChat if you have other Macs
    UDP 5060 this is for the SIP negotiation that iChat needs
    UDP 5678 this is where the visible invites come and go out on.
    UDP 5190 for AIM file sending and Group chats
    UDP 16384-16403 This group of 20 ports is where any Audio or Video chat takes place.
    As the 443 port is below 1024 (the NAT threshold) you should not have to Forward this.
    10:23 PM Monday; August 13, 2007

  • Trying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.

    rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
    Does anyone know how to fix this?

    What EXACT version of Photoshop CS4 are you running?  You should be on Photoshop CS4 v 11.0.2.
    Also run Apple's software update to see whether it offers you the latest Epson update:
    Printer Driver v9.33
    Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
    MOST IMPORTANTLY:  have Photoshop re-create its own Preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
    How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • Whats up with the recent update from itunes ,just crashed my pc and I'm trying to get it back , all the music and time i have in this player ,and credit , and purchase's  anyone ?

    Well one of those days Itunes sent me and up date that just crashed and took out my player can't start it up  MSVCR.80 dill missing and now what happens to all my music and store credit and purchase s ???? anyone  i'm trying to reload it i hope it don't wipe me out !

    You should really read the manual.
    Open itunes.  Connect iphone.
    Go to the apps tab.  Select what you want.
    Sync.

  • HT204406 I am trying to get my computer on iTunes Match and I keep getting the message "unknown error (4001)

    I am trying to get my computer on iTunes Match but I keep getting the message "unknown error (4001)? Have no clue..........help!

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    -Griff W.

  • PleaseHelp on jsp and Mysql connectivity and a lot of exception errors

    Hi,
    I am Trying to connect a JSP page with Mysql database. I am having a lot of probelms. After having a lot of problems in connecting the JSp with Mysql. Intilally it was giving me the exception error that " NO appropriate driver was found. After modifying the URl it was fine. Now It is giving the Following errors.
    servlet.ServletException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream
    In a window before loading the Explorer page it is giving the following error that The port 8081 is already in use and i should expand to other ports. Noraml JSP Files which used to work before are also not working .
    Internal Tomcat JWSDP is alos not working. If i try to start the server it says that port 8081 is already in USe . A java.net.connection exception is also occuring. The normal JSP files are also not working. What is Happening. I am also giving the code i have writted. PLease tellme why so many exception errors are occuring.
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:8081/mis_project", "root", " ");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("Select study_semester FROM Semester");
    while(rs.next()) {
    %>
    <option value="<%= rs.getString("Study_Semester") %>">
    </option>
    <% }
    if(rs!=null) rs.close();
    if(stmt!=null) stmt.close();
    if(con!=null) con.close();
    I am trying to connect to Mysql and automatocally populate a field in a Form in later JSp pages i intend to record the data entered in these fields into other tables.

    <%
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/myDB?user=username&password=mypass");
    Statement stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY);
    String cat = "";
              try{
              cat = request.getParameter("category");
              }catch(NullPointerException npe){}
              ResultSet rs = stmt.executeQuery("SELECT id,fullname FROM users WHERE category LIKE '%motor%' AND subcategory like '%"+cat+"%'");
         %>
    This piece gets a category parameter from a form post and uses it to search for a specific category in a database table. I think maybe u need to download JConnector from mysql site and unzip it to the classes folder of your WEB-INF in Tomcat server...... i hope this helps a bit

Maybe you are looking for