Can't get apache + php5 working right

I was following the LAMP tutorial, but PHP doesn't seem to work.
This is off of a fresh arch install.
Did the following:
pacman -S apache php php-apache
I then add 'LoadModule php5_module modules/libphp5.so' to httpd.conf and restart the server
If I navigate to the server, I see "Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 with Suhosin-Patch Server" at the bottom. Seems like PHP is there and working.
I then create a test file phpinfo.php with the following: <?php phpinfo(); ?>
If I try to load that file, it displays its contents.
If I add 'AddType application/x-httpd-php .php' to httpd.conf, nothing changes. Should be working according to the wiki article. I'm so confused.

That is weird indeed. Actually, both paths should work as the Include directive accepts both absolute and relative (to ServerRoot) paths.
I'm baffled as well.

Similar Messages

  • Can't get Apache to work using WAMP or XAMPP

    My system:
    iMAC
    Mac OS X: Version 10.5.6
    Processor: 2.16 GHZ Intel Core 2 Duo
    Memory 2 GB 667 MHz DDR2 SDRAM
    I have over 75 Gigs available on my Mac HD and nearly 40 Gigs left on my external HD used for Time Machine
    Hello! I cannot get Apache to start after loading up WAMP (I also tried using XAMPP, but with the same result). This is driving me crazy. I am starting to build my first Joomla site and I have Joomla succesfully loaded onto my server site, but because of the Apache issue, I can't load Joomla onto my local server.
    This is what is going on:
    have successfully loaded MAMP and MAMPro. This is a fresh reload as of today. When I go to start the MAMP, I get the following message with regards to Apache:
    (28)No space left on device: mod_rewrite: could not create rewriteloglock
    * Edit post
    * Report this post
    * Reply with quote
    I found this page on the web:
    http://www.ehow.com/how4397601error-n ... evice.html
    I got brave and went into the root using terminal.app. After following the instructions on that page as best I could, there did seem to be a lot of semapores (maybe 50+), but how to delete them was unclear to me on that page. I tried to follow Step 2 by copying this line and pasting it into the terminal prompt:
    ipcs -s # grep apache # perl -e ‘while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}’
    but it was pretty unclear if I was doing it correctly and there seemed to be no real result. I got too nervous working in terminal to try to continue the instructions on how to delete them, so I got out of terminal and decided to see if there was anything else that might help.
    After being in there, I tried to run Apache from MAMP, and, once again, I got the same error. I then found this site:
    http://www.devarticles.com/c/a/Apache/U ... -Mac-OS-X/
    I did type in "localhost" in the browser, and it DID show apache running with the confirmation window looking exactly as in the article. I then follow the instructions back to terminal.app and did the following command:
    sudo pico http.conf
    just as in the article, I found these four lines shown exactly like this:
    #LoadModule php4_module
    #AddModule mod_php4.c
    #AddType application/x-httpd-php .php
    #AddType application/x-httpd-php-source .phps
    however, there were so many warnings about making and changes and such that I decided NOT to eliminate the # sign as the article recommended and just got out of terminal.
    The thing is this. Under MAMP, everything seems to be running EXCEPT Apache. However, when I type "localhost" in the command line of my foxfire browser, Apache seems to be running fine.
    On another forum, where I have posted exactly as above, the response was:
    I cannot reproduce this behaviour even though i have the same osx version and hardware configuration. But I found this site, it may help you to solve the problem:
    http://carlosrivero.com/fix-apache---no-space-left-on-device-couldnt-create-acce pt-lock
    The script you've used is not correct, the # symbols have to be replaced with pipes | to execute the commands one after another. You should execute this as admin using "sudo" followed by the commands. You also have to replace "apache" with the user name under which apache is currently running. For MAMP Pro that is either "www" or your user name:
    This will list all active semaphores of the user "www"
    Code: Select all
    sudo ipcs -s | grep www
    This one should remove them (at least it one runs without any errors)
    I tried this but I'm afraid that I am still having the exact same problem. In fact, I unloaded MAMP and then tried XAMPP, which also didn't work. I tried to follow the directions above, but I'm so unfamiliar with how to do terminal in Mac, that I'm really not sure that I'm doing things correctly, or that I'm even addressing the problem. I have Joomla uploaded and ready to go on my server site (godaddy.com), but I really wanted to use my localhost to build the site offline.
    I've tried uploading joomla to MAMP as it exists, but when I go back to my browser with http://localhost/
    I still just get the apache confirmation page - no Joomla. Maybe part of the problem is that I'm still not completely clear on how to execute the instructions as above had them in terminal. I don't get what they meant by code: SELECT ALL.
    I don't know what they mean when they say, "You should execute this as admin using "sudo" followed by the commands. You also have to replace "apache" with the user name under which apache is currently running. For MAMP Pro that is either "www" or your user name:"
    how do I know what the username is for apache? How do I know what my username is? I know that these are basic questions, but I have never had to do this before and I don't know where to find the answers. I simply copied and pasted into terminal EXACTLY what it was posted. It really didn't seem to do anything.
    Oh, and right now, as I write this, if I click on
    Open start page
    from MAMP, a browser window opens with the following:
    Failed to Connect
    Firefox can't establish a connection to the server at localhost:8888.
    Though the site seems valid, the browser was unable to establish a connection.
    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites? Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
    So, I'm at a loss of what to do next. I can work on joomla through godaddy, but I would prefer to work on my localhost. I am very discouraged that I am hung up at such as basic level and can't get started. I do have Mac ProCare, but the Mac store is quite a ways away, and I'm not sure how they could help solve this problem.
    Please lead me through a solution to this.

    Ok, first thing, why are you doing anything with WAMP or XAMPP when you're running a Mac? MAMP should be what you want unless you're not explaining part of what you are trying to do.
    2nd thing, I haven't used MAMP in a while, but there are two possibilities for not seeing what you want to see once you have MAMP turned on. One possibility is that you already have "Web Sharing" turned on in your Sharing Preference Pane. If that is the case, port 80 will already be taken and you'll be seeing the default Apache install (files are stored at /Library/WebServer/Documents/). This would push MAMP to either not turn on it's web serving capabilities, or to push it to another port. The other possibility is that MAMP defaults to another port anyway. So instead of localhost, you might have to type in localhost:8080 or something similar. I believe the control panel that gets installed can take you to the currently MAMP-served page, and it can also help you change which port your serving on.
    80 is the default port for web serving and the ONLY port that will let you get straight to the server without having to type in webaddress.com:port# instead of just webaddress.com.

  • Album artwork.... just can't get it to work right.

    Hello.
    I've searched google, I've searched this support community and I've just not been able to come up with an answer.
    My album artwork just won't stay put. Some of my albums have artwork and some don't. I've done the "right click" and "get album art work". I've downloaded an app to find art work for the drag and drop method into the "Now Playing" window but it just gets eaten by Itunes (it appears in the window and magically disappears). I've even done the "get info" on multiple tracks and drag and drop into the "artwork"  window of the info pane and while it sticks and stays put nothing happens when I press ok only to reopen the info pane ( "get info" on multiple tracks) and it's as if I've done absolutely nothing. My permissions are fine. My music files are a mixed bunch of MP3 and WAV but this isn't a factor as some MP3's have artwork and some don't, as well as my WAV's.
    I've searched in and out, high and low but I've just not come up with anything that gets this in order. The problem isn't getting the artwork it's getting Itunes (10.5.1) to attach it to the albums and display it. My Mac OS X is Lion 10.7.2. Can anyone help?
    Thanking you before hand.

    Looks like it does have something to do with WAV format. I got the missing artwork on the MP3's working (by simply dragging and dropping...don't know how that didn't work before) but it's true that the WAV format does not support artwork (as stated several time here in this support community). What threw a brick in all my thinking is that some of my WAV's do have artwork. After some searching though I deduced that the WAV's with artwork showing are albums you can obtain from the itunes store while those that you can't don't show. Even some of the albums that I I copied in WAV that you can obtain from the Itunes store but have minor differences don't show artwork (eg. itunes sells the extended track album while i have the original length album)
    I find this rather silly to be honest since there is a work around. I guess the question now is, where is itunes storing the artwork for the WAV files that do show artwork and can I tap into that so it does show for those WAV's missing the artwork?

  • Can't get anything to work right

    I just got Logic for a new Powermac G5, and nothing is working right. While my speakers are working, audio plays back but doesn't come through the speakers.
    I'm not veryu interested in the MIDI options, I don't do any work with MIDI and want to use the program to record acoustic instruments, running them through a mixer then into the computer. I can't find any way to record these with Logic, and the "arm to record" button won't show up ANYWHERE.
    If anyone has any help on either of these, please let me know. I need a convincing reason to even keep this software....

    Scott, firstly, I really suggest that you read the manual. Then have a read of the sticky thread on top of this forum called troubleshooting tips for new users by David_Pye. All your answers will be there.

  • Can't get tree to work right

    i have written an sql to create a tree but i am now getting the error:
    ORA-20001: read_meta_data error: ORA-01436: CONNECT BY loop in user data
    below is my sql
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           d as title,
           null as icon,
           r as value,
           null as tooltip,
           null as link
    from (select 'Employee: ' || SUB_NAME d, SUB_NUM r, TASK_NUM parent from SUBTASK
           union all
          select 'Taskss: ' || TASK_NAME d, TASK_NUM r, PROJ_NUM parent from TASK
           union all
          select 'DPI Projects: ' || PROJ_NAME d, PROJ_NUM r, null parent from PROJECTS)
    start with parent is null
    connect by prior r = parent
    order siblings by dAny help would be wonderful.
    thanks,
    Edited by: KySarge1981 on Aug 17, 2010 2:32 PM
    Edited by: KySarge1981 on Aug 18, 2010 7:42 AM

    Not to kick a guy when he's down, but this is what I would have preferred be provided to set up a test case:
    CREATE TABLE PROJECTS(
      PROJ_NUM  VARCHAR2(4)    NOT NULL,
      PROJ_NAME VARCHAR2(4000) NOT NULL
    CREATE TABLE TASK(
      PROJ_NUM  VARCHAR2(4)    NOT NULL,
      TASK_NUM  VARCHAR2(4)    NOT NULL,
      TASK_NAME VARCHAR2(4000) NOT NULL
    CREATE TABLE SUBTASK(
      PROJ_NUM VARCHAR2(4)    NOT NULL,
      TASK_NUM VARCHAR2(4)    NOT NULL,
      SUB_NUM  VARCHAR2(4)    NOT NULL,
      SUB_NAME VARCHAR2(4000) NOT NULL
    INSERT INTO PROJECTS VALUES('0001','PROJ_0001');
    INSERT INTO PROJECTS VALUES('0002','PROJ_0002');
    INSERT INTO PROJECTS VALUES('0003','PROJ_0003');
    INSERT INTO TASK VALUES('0001','0001','PROJ_0001_TASK_0001');
    INSERT INTO TASK VALUES('0001','0002','PROJ_0001_TASK_0002');
    INSERT INTO TASK VALUES('0002','0001','PROJ_0002_TASK_0001');
    INSERT INTO TASK VALUES('0002','0002','PROJ_0002_TASK_0002');
    INSERT INTO TASK VALUES('0003','0001','PROJ_0003_TASK_0001');
    INSERT INTO TASK VALUES('0003','0002','PROJ_0003_TASK_0002');
    INSERT INTO SUBTASK VALUES('0001','0001','0001','PROJ_0001_TASK_0001_SUB_0001');
    INSERT INTO SUBTASK VALUES('0001','0001','0002','PROJ_0001_TASK_0001_SUB_0002');
    INSERT INTO SUBTASK VALUES('0001','0002','0001','PROJ_0001_TASK_0002_SUB_0001');
    INSERT INTO SUBTASK VALUES('0001','0002','0002','PROJ_0001_TASK_0002_SUB_0002');
    INSERT INTO SUBTASK VALUES('0002','0001','0001','PROJ_0002_TASK_0001_SUB_0001');
    INSERT INTO SUBTASK VALUES('0002','0001','0002','PROJ_0002_TASK_0001_SUB_0002');
    INSERT INTO SUBTASK VALUES('0002','0002','0001','PROJ_0002_TASK_0002_SUB_0001');
    INSERT INTO SUBTASK VALUES('0002','0002','0002','PROJ_0002_TASK_0002_SUB_0002');
    INSERT INTO SUBTASK VALUES('0003','0001','0001','PROJ_0003_TASK_0001_SUB_0001');
    INSERT INTO SUBTASK VALUES('0003','0001','0002','PROJ_0003_TASK_0001_SUB_0002');
    INSERT INTO SUBTASK VALUES('0003','0002','0001','PROJ_0003_TASK_0002_SUB_0001');
    INSERT INTO SUBTASK VALUES('0003','0002','0002','PROJ_0003_TASK_0002_SUB_0002');It would make it so much easier for people trying to help if we didn't have to do monkey around to get to the root of the problem. Not to mention it exponentially increases the chances of people answering your question.
    But anyway....on to a solution.
    With the tree root as 'PROJECT', the query would be:
    --Root
    SELECT 'PROJECTS' ID,
           NULL       PID,
           'Projects' NAME,
           NULL       LINK,
           NULL       A1,
           NULL       A2
      FROM DUAL
    UNION ALL
    --Projects
    SELECT PROJ_NUM,
           'PROJECTS',
           PROJ_NAME,
           NULL,
           NULL,
           NULL
      FROM PROJECTS
    UNION ALL
    --Tasks
    SELECT PROJ_NUM||':'||TASK_NUM,
           PROJ_NUM,
           TASK_NAME,
           NULL,
           NULL,
           NULL
      FROM TASK
    UNION ALL
    --SubTasks
    SELECT PROJ_NUM||':'||TASK_NUM||':'||SUB_NUM,
           PROJ_NUM||':'||TASK_NUM,
           SUB_NAME,
           NULL,
           NULL,
           NULL
      FROM SUBTASKand the result is:
    Projects 
    -->PROJ_0001
      -->PROJ_0001_TASK_0001
        -->PROJ_0001_TASK_0001_SUB_0001
        -->PROJ_0001_TASK_0001_SUB_0002
      -->PROJ_0001_TASK_0002
        -->PROJ_0001_TASK_0002_SUB_0001
        -->PROJ_0001_TASK_0002_SUB_0002
    -->PROJ_0002
      -->PROJ_0002_TASK_0001
        -->PROJ_0002_TASK_0001_SUB_0001
        -->PROJ_0002_TASK_0001_SUB_0002
      -->PROJ_0002_TASK_0002
        -->PROJ_0002_TASK_0002_SUB_0001
        -->PROJ_0002_TASK_0002_SUB_0002
    -->PROJ_0003
      -->PROJ_0003_TASK_0001
        -->PROJ_0003_TASK_0001_SUB_0001
        -->PROJ_0003_TASK_0001_SUB_0002
      -->PROJ_0003_TASK_0002
        -->PROJ_0003_TASK_0002_SUB_0001
        -->PROJ_0003_TASK_0002_SUB_0002 Hope that gets you back on track.

  • ...I just bought this and i can't get it o work for me, I had noticed chat windows right up until I

    ..I just bought this and i can't get it o work for me, I had noticed chat windows right up until I Paid for it now I am left alone I need help. or my Money back.  I knopw I am writing to no one.

    Good day,
    How can I help?
    Kind regards,
    David
    Adobe Systems

  • I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?

    I downloaded Photoshop cc trial, program opens, states program has a problem and closes right away. how can I get it to work?
    I tried uninstalling and installing again same problem

    Moving this discussion to the Photoshop General Discussion forum.

  • My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    My iPod Classic is seen by Windows but not by iTunes.  I have reset it, gone to disk mode and it won't show up in iTunes.  There appears to be music on it in a file called MUSICSAVE.  How can I get this to work with iTunes again?

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • [SOLVED] I can't get virtual hosts working. What's wrong?

    What I've decided to do is try to set up each domain name in the user folder to whom it belongs (for example: /home/username/somedomain.com/htdocs). I can't get it to work though. I keep getting an error saying that there's no index file (although there is) or that the location isn't readable (although it is). I'm trying to make it so that if the domain name matches with a virtual host section in httpd-vhosts.conf that a specific DocumentRoot will be loaded for that domain, etc. But, if the domain name points to my server but doesn't match, then I want the default location to work. I can't seem to make this work.
    This is my http.conf:
    ServerRoot "/etc/httpd"
    Listen 80
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #CUSTOM
    LoadModule php5_module modules/libphp5.so
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    User http
    Group http
    </IfModule>
    </IfModule>
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    <Directory "/srv/http/default/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule dir_module>
    DirectoryIndex index.php,index.html
    </IfModule>
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    ErrorLog "/var/log/httpd/error_log"
    LogLevel warn
    <IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "/var/log/httpd/access_log" common
    </IfModule>
    <IfModule alias_module>
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    DefaultType text/plain
    <IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    </IfModule>
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    #Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    #CUSTOM
    Include conf/extra/php5_module.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    And here's my httpd-vhosts.conf:
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName 45.117.5.40
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    ErrorLog "/srv/http/default/log/error_log"
    CustomLog "/srv/http/default/log/access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerName somedomain.com
    ServerName www.somedomain.com
    ServerAdmin [email protected]
    DocumentRoot "/home/normaluser/somedomain.com/htdocs"
    ErrorLog "/home/normaluser/somedomain.com/log/error_log"
    CustomLog "/home/normaluser/somedomain.com/log/access_log" common
    </VirtualHost>
    So, for example, I want it to be so that if I visit http://45.117.5.40 that it'll show the stuff ftom /srv/http/default/htdocs but if the domain name matches somedomain.com then I want the server to show the content from /home/normaluser/somedomain.com/htdocs.
    What currently happens is that if I visit http://45.117.5.40 or somedomain.com, they both show the same content from /srv/http/default/htdocs.
    If I comment out the first VirtualHost section, then everything stops working and I see the default "Access forbidden!" message.
    What am I doing wrong?
    Last edited by trusktr (2012-04-13 06:15:41)

    I fixed it. In case any newbs come across this, I had to add a new <Directory> section for the DocumentRoot of the virtual host. Simply adding the VirtualHost entry in the vhosts file isn't enough.
    For example, for the "somedomain.com" vhost in the example above to work, I added this to http.conf:
    #This must match with the same location as DocumentRoot in httpd-vhost.conf.
    <Directory "/home/normaluser/somedomain.com/htdocs">
    #Put whatever directives you want in here
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Let me know if you need any clarification.
    Last edited by trusktr (2012-04-13 06:16:02)

  • HP Laserjet M2727nf - can't get scan to work

    I followed these instructions to the letter:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01846935&cc=us&dlc=en&lc=en &jumpid=regR1002USEN#
    But I cannot my MAC to recognize the scanner. I am attached over a network. When I go to Printer Setup, the driver shows up as version 16.1. Do I have the right driver?
    It prints just fine and I can see the printer webpage. How can I get scanner to work?

    Apple doesn't show fax or scanner support for the HP MFP2727 in their list of drivers.
    http://support.apple.com/kb/HT3669
    But, HP shows a Firmware Update for this model that might or might not help.
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us &prodNameId=3377076&prodTypeId=18972&prodSeriesId=3377075&swLang=8&taskId=135&sw EnvOID=228

  • Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    I recently upgraded to itunes 11.0.1.12 and that fixed the CD Jewel Case Insert song titles problem. Thanks itunes. It's working great!!.

  • I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation.  It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0.  How can I get this to work?

    Oaky, at least we got that far.  Next step is to determine if all those "numbers" are really numbers.  Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number.  Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
    Here are some that will remain as strings:
    +123
    123 with a space after it.
    .123

  • Just bought Ear Force Z11 - headset, can't get it to work on my iMac intel based on the Windows side

    I have used Boot Camp on my iMac 21" early 2008 to partition and set-up Windows 7 so that I could use my FSX Flight simulator, I bought EarForce Z11 headset to use with my simulator and can't get it to work, has anyone else ran in to this problem?  If anyone can help I would appriciate it, the computer recognizes that I plugged them in but I am only getting sound over the iMac speakers and nothing with the headset.

    assuming it works on osx then
    sounds like
    1, the mixer in windows have muted the headset connection you can change that in the control panel
    2. the driver for your audio card is not working 100% (read people say that the 32bit win7 don't have drivers from apple avaible)
    with the right drivers it should work
    my imac 21" have a splitter connected where I have external speakers from logitech and a skullcandy headset
    connected both play and the internal imac speakers only make a sound at bootup at first
    this is both in osx, was in win7 64bit and win8 64bit

  • I just can't get it to work  :-(

    I was given this code and found another only slightly different. I've seen them both working but when I try to put it on my page, it doesn't matter what I do, I can't get either to work. The problem is not with the code but with the service I'm going through (addr.com). If anyone is willing to help me figure this out through email, I would be very appreciative.
    <APPLET CODE=PoolMenu WIDTH=570 HEIGHT=65>
    <PARAM NAME=image VALUE="images/logo.gif">
    </APPLET>
    <applet code="PoolMenu" CODEBASE="files/" id="PoolMenu" width=468 height=60>
    <param name=image value=images/logo.gif>
    </applet>
    [email protected]

    images/logo.gif does exist at
    www.holidaysportsinc.com/images/logo.gif
    The PoolMenu.class is hard to explain. They have
    given me this address to view their test servlets -
    http://holidaysportsinc.com/servlets/TestServlet
    -- which reveals that they don't know much about what you are doing...
    First you have an applet which is run on the client. Then they give you a servlet container, which is used to run server side application written in Java.
    Something's not right here...
    My .class file is placed into the servlets/holidays
    folder. This is where they told me I had to upload my
    own java/class files but I can't seem to get to it.
    By going to this address -
    http://holidaysportsinc.com/servlets/holidays/PoolMenu
    class
    I get a "The requested URL /servlets/holidays was not
    found on this server."Is it there, then?
    I've even tried putting it into just the servlets
    folder but I get the same message.It shouldn't make any difference where the class file is, if you set the codebase and code attributes properly in th html.
    Just slap it somewhere on the server and give the path to it in codebase. Like if you have the .class in /foo/bar/Baz.class codebase should be "/foo/bar/" - and code "Baz".
    >
    I've tried writing them about it and they recommended
    I come here for further help because they don't deal
    directly with the java/class files, they only supply
    the server to do it on. I am at a loss.And so are they :)

  • Can't get Mail to work - I get the spinning wheel and Mail freezes.  I have to Force Quit it.  How do I fix this?

    Can't get Mail to work - I get the spinning wheel and Mail freezes.  I have to Force Quit Mail .  How do I fix this problem?

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for