Accesso to Apache Local Web Server Problem

Hi, i have a problem related to the set up of Apache Local Web Server on Mac OS X Lion 10.7.5.
I have correctly installed Apache (2.2.24) php (5.3.26) and MySql (5.5.22) but during the web access i get this message: 403 Forbidden and in the error_log i see this:
[Tue Nov 05 18:55:19 2013] [error] [client 10.202.145.171] client denied by server configuration: /Users/marcopuccetti/Sites/drupal-7.12
Before this i have modified the configuration of httpd.conf (DocumentRoot) file in order to point the Sites folder "Users/username/sites"; The same for users configuration file.
I have also enabled the Web Sharing properties in the System Preferences Section.
Have i to do any other settings?
Thank you!
Marco

Now it works, but i still don't understand why The directory "Sites" has to be named Only UpperCase.
Marco

Similar Messages

  • Java mysql OK with Terminal but not OK with Apache local web server

    With terminal I have :
    CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/:/Library/Java/Extensions/:./
    SUDO_GID=20
    SECURITYSESSIONID=210800
    _=/usr/bin/printenv
    127:/Library/WebServer/Documents/Java root# java TestMySQL
    2006-05-21 13:39:00.0 ************************************************** = OK
    127:/Library/WebServer/Documents/Java root#
    import java.sql.*;
    * mysql-connector-java-3.1.12-bin.jar
    *   % javac /Library/WebServer/Documents/Java/TestMySQL.java
    *   % java TestMySQL
    public class TestMySQL {
            public static void main(String argv[]) throws Exception {
                    // Load the driver class
                    Class.forName("org.gjt.mm.mysql.Driver");
    1                //Class theClass = null;
    2               //try {
    3                //    theClass = Thread.currentThread().getContextClassLoader().loadClass("org.gjt.mm.mysql.Driver");
    4                //}
    5                //catch (ClassNotFoundException e) {
    6                //    theClass = getClass().getClassLoader().loadClass("org.gjt.mm.mysql.Driver");
    7                //}
                    Connection conn = DriverManager.getConnection(
                            "jdbc:mysql:///test",
                    Statement stmt = conn.createStatement();
                    ResultSet rset = stmt.executeQuery("SELECT now();");
                    while (rset.next()) {
                            System.out.println(rset.getString(1));
                    // Close result set, statement and DB connection
                    rset.close();
                    stmt.close();
                    conn.close();
    }I have a simple TestMySQL.html file with applet TestMySQL.class in it.
    Nothing but "Applet TestMySQL not inited"
    When I uncomment the try/catch lines (lines 1 to 7) , java compiler generate an error... near getClass().getClassLoader().loadClass("org.gjt.mm.mysql.Driver");
    With "Class.forName("org.gjt.mm.mysql.Driver");" no problem.
    Running MacOS X 10.3.9, Apache/1.3.33 (Darwin) PHP/4.4.1 mod_ssl/2.8.24 OpenSSL/0.9.7i and JVM 1.4.2_09
    Thanks for help.
    P.S. This my first approach to java/mysql but I would like to see this short program running on my local web server ...
    Thanks.

    hi :-)
    can you post the stack trace?
    im not sure what is causing the error because of less info,
    but have you tried to copy the driver of mysql to tomcat lib folder?
    regards,

  • Apache2 local web server + Perl 5 + mysql problem

    this problem has been bugging me for some months; it's stopping me developing on my new MBP.
    I cannot connect to mysql 5.0.45 database when web sharing w/ Apache2 with either Perl 5.8 & Activeperl 5.10 cgi scripts on Mac OS X Leopard 10.5.2 & 10.5.3
    Although I can connect to the mysql DB when running the Perl scripts from the command line.
    The problem only occurs on my local web server in Mac OS X 10.5.2 & 10.5.3.
    On my old development Mac running 10.3 the code runs fine, as it also does on my remote site.
    server error log: Can't locate DBD/mysql.pm . . .
    I suspect there is a problem somewhere between Apache2, Perl & MySQL.
    Please advise.
    Sarpedon Jones
    Message was edited by: Sarpedon Jones

    I've got the same problem but It sounds like I've gotten farther. I was forced to do an emergency move of some Perl and PHP sites to 10.5.4 when our 10.4 web server refused to authenticate to AD anymore...
    Leopard's Apache/Perl support is terrible. There is not click to add option anymore so you have to manually set up mod_perl. No big deal but the first sign that there isn't reasonable support.
    The bigger issue is that Apple's Perl will not compile some modules.. namely DBD::mysql.
    Normally you'd use "cpan" to install the modules you need. The core module for connecting to a mysql database is DBD.. specifically DBD::mysql
    You should be able to run "cpan" or "cpanp" [cpan plus] to get a cpan interactive prompt. At this point you should be able to compile DBD by issuing either of the following:
    "install DBD::mysql" or
    "install Module DBD::mysql"
    I've tried this on two installs of OS X Server and that module (and others) will not compile on either system. One of my servers had been set up as a Wiki server before but the other had not been running any web services before I started using it as a test bed for my site move. (BTW these sites are unavailable until I can move them).
    There is another bug (noted on mysql's site) with Apple's version of cpan. If you try to add some modules, cpan will report that it needs to install a new, full version of Perl. The recommendation is to not do this, but rather force the install.. "install f DBD::mysql"
    Forcing the install is a questionable idea but it doesn't work anyway.
    I eventually did install perl 5.0.10 on the system in /usr/ and that does allow me to compile the needed Perl mods. However, the global @INC path has the old Perl paths listed so my perl CGIs will not use the new perl install.
    I'm sorry I don't have a solution. Hopefully my troubleshooting will elicit some more feedback.
    steven.

  • Local Web Server No Longer Working In ML

    Hello,
    Previous to updating to Mountain Lion, I had my Imac set as a local web server and everything worked fine. After updating to ML, I no longer have local web server access. Also seems that my /etc/apache2/users/USERNAME.conf is gone? Do I need to reset all the files I configured prior to installing ML?
    Thanks JR

    I created a new ect/apache2/users/currentuser.conf with
    <Directory "/Users/username/Sites/">
          Options Indexes MultiViews
          AllowOverride All
          Order allow,deny
          Allow from all
    </Directory>
    But now when I try to view a current site on the Mac, it just lists out the php code and not the page?
    Thanks JR

  • What is the differece between Apache htttp web server and tomcat

    Hi friends,
    what is the difference between Apache htttp web server and apache tomcat.
    Can i run php in tomcat

    hi
    1) different of apache and tomcat
    http://forum.java.sun.com/thread.jspa?threadID=254299
    2) different of apache tomcat and jakarta tomcat
    http://forum.java.sun.com/thread.jspa?threadID=5191004

  • Access websites hosted on local web server

    Hi there,
    I have a Cisco ASA 5505 in my home office which has a few PCs behind it with a linux web server running some websites. I can access the websites from outside no problem (i.e. on my iPhone using a 3G connection). However, I struggle to access the websites from within the network. The ASA gives me this error:
    6
    May 05 2013
    11:52:27
    192.168.55.61
    50420
    Failed to locate egress interface for TCP from inside:192.168.55.61/50420 to 86.*.*.*/80
    ASA runs version 9. Here is the config bit:
    object network denon-server
    host 192.168.55.200
    access-list outside_access_in extended permit tcp any object denon-server eq www
    object network denon-server
    nat (any,outside) static interface service tcp www www
    Any suggestions?

    Hi,
    I assume that you are trying to reach the LAN server with the public IP address that the ASA holds and also uses for the above Port Forward / Static PAT configuration?
    If this is the situation then I am afraid that with the current configuration that is not possible. The NAT configuration towards Internet is done between probably "inside" and "outside". So "outside" interface holds the public IP address. ASA doesnt let you connect to that "outside" IP address from behind the "inside" IP address. (Or any other interface for that matter)
    What you could try to do is configure a NAT that would enable you to use the public IP address of the server even when connecting from the "inside" of ASA.
    Try this
    object network SERVER-LOCAL
    host 192.168.55.200
    object network SERVER-PUBLIC
    host 86.x.x.x
    object network LAN
    subnet 192.168.55.0 255.255.255.0
    nat (inside,inside) source dynamic LAN interface destination static SERVER-PUBLIC SERVER-LOCAL
    Where
    SERVER-LOCAL = Is the "object" that defines the real IP address of the server
    SERVER-PUBLIC = Is the "object" that defines the public IP address of the server (that ASA holds on its "outside")
    LAN = Is the "object" that defines the subnet from where LAN users connect to the server public IP address
    Check that the network mask is correct for the LAN and fill in the public IP address.
    The actual NAT configuration tells the ASA this
    When a connection from LAN is coming towards SERVER-PUBLIC then UN-NAT SERVER-PUBLIC to SERVER-LOCAL and NAT LAN to "inside" interface IP address (as defined by the parameter "interface" in the configuration)
    This should enable the LAN hosts to use the public IP address to connect to the server. The server though will see the connections coming from the ASA "inside" interface IP address.
    Hope this helps
    Please remember to mark a correct reply as the correct answer if it did answer. And/or rate helpfull answers
    Ask more if needed.
    - Jouni

  • Local web server not being recognized

    I setup a web server on my LAN specifically so both a PC and a Mac could use HTTP protocol and store and retrieve files. The servername is called UBUNTU. On any PC in the house I can type http://ubuntu/ and the directory listing appears. The Mac can not find it.
    If I use the IP address, the server is recognized. The directory listing appears. And, when I use FTP in Terminal I can even get a file upload to work as long as the file is in the same directory I started the FTP. But, this Mickey Mouse will just not work for my application. What I want to do is schedule a daily upload of newly created music from the days work. If the producers did not like this Mac, I would trash it. I am so frustrated!
    This is the first time I've used a Mac and so far I find it to be way overrated. I mean, how many computers can not access a web server out of the box? The Safari browser I am using has no trouble accessing the Internet but my "intranet" seems to baffle Safari. I would expect a problem if using SMB were a requirement. It is not - I simply want to use HTTP. How do I need to change the Mac configuration so that it works?

    Thanks for all your help.
    Oh well, the music producer using the Mac just installed Yummy and immediately did the uploads he wanted to do. Yummy also has a scheduling function so the Mac will be able to use Yummy on the producer's schedule. (I usually use FileZilla and had never heard of Yummy.)
    Meanwhile, I was trying to get SMB working from the Mac but was never successful. As I mentioned earlier, I've never had success with Samba on Linux. This time was no exception. In this particular case, the Mac would not accept the username and password. I had specifically done smbpasswd -a username and used the same password and username that I had been using for FTP activity.
    However, when I got to the Mac SMB/CIFS screen it demanded 3 things: workgroup, NAME and password. BUT, the name of the Mac box automatically appeared in the NAME field on that screen. If I tried changing that to the username, there was no success at all. So, I went to the Samba box and added the name of the Mac box as a username.
    It was at that point that the producer told me he installed Yummy and was successful in uploading the music. I doubt he will let me have any more time on the Mac box for testing. I guess it is just as well since I had previously told him FTP was the way to go and SMB/CIFS was not something he had ever heard.
    Thanks for all your help.
    Contrary to your opinion, I guess I feel that the most important things that happened in this exercise were, "the sounds about how it should be so easy but just wasn't working". I just hope folks from Apple, Microsoft and the Linux world stumble across these comments occasionally.
    The bottom line is that the end user did not care how the job got done. The end user did not care what operating system nor what software technology was used. He just wanted the job done immediately. And, he had recalled a past experience where the Mac could not handle the job without a third-party FTP application.
    Here's the future challenge for 3 programmers and 9 computers. Setup 3 rooms each with a PC, Linux, and a Mac box. Put a knowledgeable programmer from each of those separate worlds in each separate room. It's OK to have an Internet connection so they can get documentation. The task is to get scheduled uploads operational between all the boxes in each room without using 3rd-party software. I think a reasonable time would be far less than 10 minutes including verification tests between steps. Some folks might take most of that time just to read http://www.mattvanstone.com/2007/11/automatically-mounting-windows-smb-shares-in -ubuntu-v3/
    so, perhaps the programmers' time is better spent on an FTP approach which might be more common setup and terminology among those three box types.
    The winner gets his name on the resulting paper and website he creates to document how he made it so easy. The losers must come to his website each day for a year just to see his advertising.

  • Strange HTTP/Web Server Problem - HELP ~~~~~~~

    HI all,
    I would like to seek help from you - the apple expert!
    I received my mac mini server and immediate want to setup a web/http server. I encountered one very strange problem that only the mac mini server itself can access the http server page but not all other machines in the same internal network. I tried to troubleshoot and so simplify the setting as follow
    Here is my setting
    - The Web Server service is ON
    - I closed all the built in web services (wiki, cal, blogs, webmail) for troubleshoot
    - I created a "Custom Sites" with 192.168.11.9:8080 <- this is my mac mini ip
    - Ensured the /Library/WebServer/Sites/192.168.11.9 got right permission
    When i open IE in my window vista laptop, type in address "http://192.168.11.9:8080", it doesn't work. Is there anything i need to config so that other machine (Win OS) in the internal network can also access the http server in my mac mini?
    Thank you very much.
    A newbies in mini

    ...and in your do/while loop think what happens when read() does return -1. You still write the entire buffer. You should do something like this instead:
        while (true) {
            int count = in.read(buf);
            if (count == -1)
                break;
           out.write(buf, 0, count);
        }

  • JAVA WEB SERVER Problem

    Hai,
    I am using Java Web Server 1.2 . In JSP , when I use
    ResultSet.previous(), it is saying that :
    java.sql.ResultSet.previous() command not found. I do not know what to do ?
    But, In java file, it is working fine without any problem .But, I need to implement in JSP only.
    When I use the bean, which consists Rs.previous() also it says Resultset.previous() Command Not found It is very very urgent to me.
    Pl help me.
    Thanks & Regards

    S,
    1. Yes, you're rigth. Something is missing here.
    2. If it works for Java App and not in JSP,
    that would mean JAVA see your jdbc driver and not JSP
    but then how come JSP can use Connection ???
    3. I think we need some expert to clarify about setup on your machine. Some thing is not set up well so that JAVA app and JSP see at the same time. It look like only JAVA app see the whole.
    4. Can you post your article in JDBC forum also in waiting?
    -- Paul.

  • Is Orion replacing Apache as Web Server ?? what about mod_plsql ?

    From the recent news publications, it seems that Oracle are now
    persueing the use of Orion as the Web Server? Is this just for
    the J2EE component or the whole suite.
    I suppose my main question is; Will Oracle be supporting the
    mod_plsql functionality within Orion or will it be running in
    sync with Apache ?
    Thanks
    Jon

    From the recent news publications, it seems that Oracle are now
    persueing the use of Orion as the Web Server? Is this just for
    the J2EE component or the whole suite.
    gday Jon -
    We've recently made some major advances in the J2EE with our
    work with Orion/Ironflare, but this doesn't mean that all the
    other elements of the product are deprecated and cast aside.
    We are very focussed on using the existing HTTP server (based on
    Apache) as the primary HTTP listening endpoint. Although the
    OC4J component has HTTP listening capabilities this is not what
    we are pursuing as the primary HTTP server role.
    We believe we've got a pretty strong position since OC4J on it's
    own can be used for development purposes (since it's so small
    and easy to install/use) and it has it's own HTTP listening
    capabilities built in.
    For production purposes we encourage the use of Oracle HTTP
    Server today and this will be even more so with our next major
    release. We are adding a new module to OHS, mod_oc4j which will
    communicate directly with OC4J instances using AJP13 (Apache
    Java Protocol). The HTTP server will therefore function as the
    HTTP listener, the HTTPS access point, the load balancer for
    J2EE applications, the single-sign-on router, and also provide
    the function points for the other modules such as mod_plsql,
    mod_perl, etc.
    I suppose my main question is; Will Oracle be supporting the
    mod_plsql functionality within Orion or will it be running in
    sync with Apache ?
    cheers!
    -steve-
    Thanks
    Jon

  • Newbie, How Do you transfer a site from Remote Host to Local Web Server

    already exists to my local IIS server. I cannot figure it
    out. I keep going in circles with Manage Sites, creating the folder
    in the Inetpub/wwwroot folder and I need some help to get the whole
    site locally so I can work on it. I use to use Frontpage but my
    developers cannot stand the extra code it puts in and it's not
    google friendly. So I decided to use Dreamweaver to create and
    manage my sites.
    Thanks for all the help in advance.

    In the file panel, view the remote site and select the top
    level folder. Then right click and select get.

  • Web Server Problem : Dr Watson Error

    I use Dev 2000 on Web Application and Windows NT as a Web Server
    and I always get this Dr Watson error :
    An Application error has occured
    and an application error log is being generated
    F50WEB32.exe
    Exception (0xc0000025),Address:Ox77f1cd91
    Please help me.
    null

    We too were receiving Dr. Watson consistently when launching our
    application via the web.
    Hardware configuration was -- NT with Service Pack 4
    We have been very sucessful with the same configuration using NT
    with Service Pack 3.
    Finally, Oracle notified us that for Service Pack 4 a special
    version Oracle web server products is required. Once that was
    delivered and installed, Dr. Watson left the sceen.
    Hope this gives you another avenue to check.
    Karen McNulty (guest) wrote:
    : We've been getting this error as well! For us, this error
    only
    : occurs when I try to configure the listener for displaying
    icons
    : (gifs). Whenever I add a virtual directory /web_icons/ (and
    : made sure the registry.dat file is configured properly), my
    : application freezes when I start it on the web. Once I remove
    : that virtual directory, it is fine, except of course my icon
    : gifs do not display.
    : I called Oracle and started a TAR on this, but they have not
    : been able to help yet.
    : Let me know if you figure out anything ...
    : Karen
    : Bahri (guest) wrote:
    : : I use Dev 2000 on Web Application and Windows NT as a Web
    : Server
    : : and I always get this Dr Watson error :
    : : An Application error has occured
    : : and an application error log is being generated
    : : F50WEB32.exe
    : : Exception (0xc0000025),Address:Ox77f1cd91
    : : Please help me.
    null

  • Airport Extreme with wired web server Problems

    I am setting up a wireless network with a new Airport Extreme. When I hook it up per the instructions my hard wired web server and PC don't work. My laptops work fine. I put a static IP address on each computer via network prefs. I tried to take the AirPort ethernet out port and use both the cross over and a regular ethernet to the switch then to a wired PC and Mac server. But it will not work.
    Connection that does NOT work: DSL modem - ethernet cable - AP Extreme WAN port - ethernet cable out - web server (live video) & PC
    If I go back to the way it was set before the AP it works fine. (see below) Wouldn't the network be quicker wired from the modem to the AP Wan port? My IP said I shouldn't need to use crossover ethernet cable.
    Connection that works: DSL modem - cross over ethernet - network switch - ethernet to AP Extreme - ethernet to web server - ethernet to PC
    Thanks for your assistance.

    I suggest that you don't try to configure the wireless print server until you have the AEBSn network with USB disk sharing working correctly.
    My expereince with AEBSn disk sharing so far is that it's best to use accounts to secure shared disks. If you can't get the network file sharing to work right off, try this:
    My Network Places>Add a network place>Add Network Place Wizard>Next>Choose another network location>Next>type the following string as the network address and proceed to complete the wizard:
    \\[LAN IP address of AEBSn]\[name of shared disk]
    Example: \\192.168.1.1\MemphisBelleServer
    If you are using accounts to secure the shared disk, type in the User name and Password when the Connect to dialog box appears. I have had trouble using (and no longer use) disk passwords, so I don't know whether that method works the same way with respect to the Connect to dialog box.

  • OS X Server Web Server Problem Creating New Domain

    I am running Mac OS X Server version 3.0.2 and added a new domain (website), like www.example.com, but my own.
    Everything seems to work fine.
    But when accessing the website it says the following:
    "Forbidden. You don't have permission to access / on this server."
    Who Can Access: Anyone
    What shall I do to change this?
    Sincerely,
    Andreas

    Thank you again!
    What puzzles me, is that we launching Terminal.app and stepping to the folder "/Library/Server/Web/Sites/Data/mydomain.com" and do a ls -al, it looks like this:
    drwxrwxr-x  18 root          admin    612 15 Jan 12:24 Default
    That is the Default site which I could access via internet when I enabled it at first.
    The same is set for mydomain.com that I created as a new web site (domain) in the Web Server, and the information is identical with the Default one, with one exception, the permissions. The permissions for mydomain.com is as follows:
    drwxr-xr-x  13 root          admin    442 15 Jan 15:44
    Why would not the New web site work when it is the same user and group that has access, with the only exception of a w less on mydomain.com?
    I thought I would see _www or www above, but not at all. Isn't that strange?
    Sincerely,
    Andreas

  • Apache Web Server Problems

    I seem to be having some trouble with Apache. I have followed many of the steps in as much as launching the terminal window and proceeding to work with the conf file. Everything seems to go properly, until I perform the test of trying to visit http://127.0.0.1/ . Safari tells me it can't connect to the server. I'm out of ideas. Now, I have activated Apache in January of this year in order to get FileMaker Server to work completely. In the past, everything worked. I upgraded to Mountain Lion, however, and am just now getting back around to using FileMaker Server again, and I discovered that Apache is no longer working properly. Any and all help will be greatly appreciated.
    Thanks in advance,
    Joshua

    You will need to set it up again: https://discussions.apple.com/docs/DOC-3083

Maybe you are looking for

  • Windows 7 RC and OfficeJet 7400xi

    Lenovo ThinkPad T61 4GB 320GB HD running Windows 7 RC 64-bit and connected to OfficeJet 7410xi via wireless.  PC can also boot Windows Vista Business 32-bit from a 100 GB HD in the drive bay.  OfficeJet 7410xi both prints and scans wirelessly from Wi

  • Issue with Apps adapter for Create_Cust_Account API

    Hi , I need to invoke this package from apps adapter in BPEL(10.1.3.5). Create Customer: HZ_CUST_ACCOUNT_V2PUB. create_cust_account. This is a Over loaded procedure. Look for the Procedure with these Parameters. PROCEDURE create_cust_account ( p_init

  • Screen display is blurry or ripple effect when scrolling

    I have a 15 inch 2.53 Pro and when I am in Safari the screen has a horizontal ripple effect across the screen when I am scrolling. This is slightly worse when I use the vertical scroll bar vs. two-finger scrolling. The overall effect is that the scre

  • CF Builder 2 slow on closing files issue

    This is an old issue that still has not been resolved When closing a file on CF Builder 2 it takes a long time for the file to close. This used to happen on Windows XP. I have a new PC with Windows 7 and reinstalled CF Builder 2 but the issue closing

  • Itunes 9 two questions

    1. Installed but now my background color is white (was black in itunes 8). Any way to change? 2. Lost the "home sharing" icon as I opted out but now my wife wants to put it on her laptop and share. Anyone know how to get that little icon back?