Setting up Apache under Windows 7

I'm trying to set up a test environment using PHP and Apache on a laptop running under Windows 7. I have followed the instructions in David Powers "PHP for Dreamweaver 8", and the Apache service monitor is showing in the tray (with a red dot), but when I enter http://localhost in a browser I get "Internet Explorer cannot display the web page".
I suspect that the Windows firewall may be blocking it, but I cannot find how to prevent this. I haven't seen any warnings about Apache being blocked. Any suggestions?
(While I was researching this, I was curious to notice that the Apache icon on my desktop also shows a red dot, although Apache and PHP are working fine.)

I can not over state how easy XAMPP makes setting up you local development environment.
1. Go to:  http://www.apachefriends.org/en/xampp-windows.html#641
2. install it
3. Your Done! You've got everything you need - Apache, PHP, MySQL and more!
If you have already installed Apache, uninstall it first.
Easy stuff.
Lawrence Carmer - *Adobe Community Professional*
http://www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com

Similar Messages

  • Setting up Perl under Apache

    I'm very disappointed with Apple over the very poor documentation and support for what is potentially an extremely valuable asset in the Mac OSX tool box i.e. being able to test Perl scripts locally using the Apache software included under OSX.
    Because it's taken me 2 days to wade through the discussions here and find resources online I want to help others avoid my delays and post what I found. I would also like to comment that the unix community active on this list though so very helpful in many ways could resist scorning those who are entirely unfamiliar with terminal and the command line interface and try to condescend to explain in layman's terms what is essentially not that complex but is so shrouded in jargon, shorthand and arcana that it seems almost deliberately difficult to penetrate. I would ask Apple to please just post a simple 'how to' or if they see fit include this email in their FAQ's.
    Thank you to the many who have posted on this subject on this list and I apologize if I have used your suggestions without personal credit. I am with this document merely giving back something of what I have taken out of this useful resource. Please feel free to offer amendments to any obvious mistakes or misunderstandings I am a novice at Unix attempting to help other novices because (Ibelieve) I still speak the same language.
    This method is for starting Perl under Tiger OS 10.4x (may work for Panther or earlier I haven't tested it) on a desktop machine, not a server.
    To start Apache under OSX
    1) To turn on Apache just go to System prefs and turn on 'personal web sharing' under the 'sharing' control panel. Note the IP address that appears under the 'Select a service...' window as this is the IP address of your local web address or 'yourlocalhostaddress' (referenced below). This is what you type into the browser to view your pages locally.
    2) It seems intuitive to place your web site in the user/yourusername/sites folder on your hard drive. While this is acceptable for basic web sites it seems to make configuration harder for Perl. I could not access a cgi-bin nor find documentation that satisfactorily informed me how to access a cgi-bin created in this location. That doesn't mean it's not possible just that I don't know how to do it.
    Apple have created another folder with a pre-configured cgi folder at the following location;
    yourharddrive/library/WebServer
    Place your website in the 'Documents' folder and your Perl scripts in the 'CGI_Executables' folder. It's unnecessarily confusing to me that Apple have essentially renamed the cgi-bin to 'CGI_Executables' and the 'html' folder to 'documents' as they would be found under the Apache installation that I'm familiar with but that seems to be what's happened here.
    To start Perl support in Apache under OSX
    3) If you dont already have one it's useful to have an ultra simple Perl script on hand to test whether your configuration is working. More complex script such as formmail.pl may have additional settings that are confusing as to whether it's the file or the configuration that is causing a script error. To create a simple script copy and paste the following code;
    #!/usr/bin/perl
    print "Content-type: text/html\r\n\r\n";
    print "Hello, World.";
    into a new, empty document in a text editor and save it as 'first.pl' in your 'CGI_Executables' folder. You can open it in Safari using the following address;
    http://yourlocalhostaddress/cgi-bin/first.pl
    4) If you test your script now a call to the Perl script will merely open the page with the script as text and will not run it. This is because Apple supplies their copy of Apache with Perl disabled, it's necessary to edit a file called 'httpd.conf' in order to turn Perl on. The recommended way to turn this file on is using the terminal program but the file can also be located through the mac OS although it is partially hidden, it can be edited in a text editor that is suitable for coding such as BBEdit.
    The best online documentation I found about how to edit the httpd.conf file using terminal is here;
    http://www.macdevcenter.com/pub/a/mac/2001/12/14/apache_two.html?page=1
    However I'm not sure that he is accurate (though I hesitate to disagree with the expert) my experience was significantly different see below(*).
    Terminal has useful testing features but the command line is obscure and daunting to the novice. In addition UNIX programmers seem to delight in scaring away the cautious with silly, portentous warnings about privacy etc. This document is very sensitive to the way it's edited, however your computer will not blow up if you get it wrong and there is a back-up default version stored in the same folder so if you do screw up you can restore the defaults and start again.
    If you wish to do it without going through the terminal the 'httpd.conf' file is located here;
    /private/etc/httpd/httpd.conf
    where private is an invisible folder so you cant navigate to it directly via the Mac OS. However if you copy and paste the above address into Safari's address bar the folder window will come up revealing the document (this is an undocumented feature and I discovered it by accident so use at your own risk). Alternatively you can navigate to it using an FTP program such as Transmit when you have 'show hidden files' turned on in the preferences. Transmit is a very useful tool because it also allows you to view and change the permissions (or CHMOD) of the files you view in the same manner as you would on a remote server. Something which you cannot do using the 'Get Info' on the Mac OS
    You'll notice that there is an httpd.conf and an httpd.conf.default file. The latter is your backup so dont be overly scared of editing the first file, proceed with caution but not with trembling.
    Once you have the program open in BBEdit (or your editor of choice) uncomment the following lines by deleting the # symbol;
    #LoadModule perl_module libexec/httpd/libperl.so
    #AddModule mod_perl.c
    The quickest way to find these lines is to do a find on 'Perl' (something you cant do in Terminal). Dont change anything else just save and close, you will be required to enter your administrator password at this point.
    (*)Please note;
    Kevin Hemenway in the macdevcenter.com article says to uncomment the following lines;
    #LoadModule cgi_module libexec/httpd/mod_cgi.so
    #AddModule mod_cgi.c
    And makes no mention of the lines ending in perl rather than CGI. His article is from 12/14/2001 so it may be out of date. In my httpd.conf file the lines ending 'cgi' were already uncommented but the lines ending 'perl' were commented out. I uncommented the lines ending 'perl' and now in my version both (cgi and perl) are uncommented and active. There are security implications to uncommenting any lines so I may have opened a security loophole that I'm not aware of however until I uncommented the 'perl' lines my scripts did not work. I would be grateful for an explanation of the implications from any Unix expert reading this.
    5) The last thing you need to do is restart Apache so that it can load the new config file. To do this stop web sharing in the preferences pane and then restart it.
    If you test your simple Perl script 'first.pl' now it should load and show the text "Hello World" in a browser window.
    6) if you wish to load a more complex script and find that they will still not work, at least you know that Perl is working. You can check the error logs by opening the terminal and at the prompt (yourusername$) type;
    tail /var/log/httpd/error_log
    This enables you to trace the whether a permissions, configuration or other error has occurred.
    WARNING;
    The above is a distillation of my frustrating experience over the last 2 days, it details how I finally got it to work. With everything in scripting I find that I repeat the same method multiple times, convinced each time that I have it right and all of a sudden it works where it didn't work before. This always leaves me unsure that I may have inadvertently done some thing right (as logically I was obviously inadvertently doing something wrong before) that is not documented here. I offer this method as the product of my experience, because I hope it is helpful and because I have the confidence that there is a way to back out of it using the default config file. Despite the above use at your own risk.
    G5 Dual 2.5Ghz + Pbook G4 867Mhz + 15GB iPod   Mac OS X (10.4.3)  

    That sounds like a very good useful tip. I would hold on to it in your own computer's repository as well and post sections of it whenever you see someone needing help with it until you are able to add it to the contributions section of the User Tip forum here:
    http://discussions.apple.com/category.jspa?categoryID=103

  • What speed should I set my fans to while gaming under windows?

    What speed should I set my fans to while gaming under windows?

    Have you tried using the "Arial Unicode MS"? I saw that "the Arial Unicode font includes support for the Asian languages (Simplified Chinese, Traditional Chinese, Japanese and Korean) as well as for all the languages used in major commercial markets." Let me know if this works.
    Regards,
    Claire Reid
    National Instruments

  • Starting Oracle Application Server as a particular user under windows

    Hi All,
    I am wondering if there is any way of starting the Oracle Application Server with a users default operating system environment variables set.
    The reason I ask this, is that we have deployed a webapp which contains a piece of software which needs to be run on the command line for generating reports using the reports 6i client (rwcli60). We have had issues with this in regards to the application not finding a proper service under Oracle Application Server.
    Our company then had to revert going back to a Apache/Tomcat setting and deploying the same web app on the tomcat server. Originally we were getting the same error. As a consequence we decided to change the user who runs tomcat as the same user who runs the oracle reports 6i server. This worked.
    Also of note is that when this was done, the tomcat server has ALL the environment settings as the os user. This can easily be seen by using the Runtime.exec("cmd /c set") command and printing its outputs. However executing the same command withan Oracle App Server results in a dramatically reduced environment to the logged in user who started the app server.
    Any help would be most helpful.
    Cheers
    Rodney

    Hi All,
    From much research and experimenting to get this to work I looked at the java.lang.Runtime class and noticed that seperate processes can be started using this very important Java class.
    The first thing that I experimented with was in regards to seeing the environment OC4J runs against. Using the java.lang.Runtime class I executed a standard "cmd /c set" command in my Windows environment, and noticed that Oracle Application Server uses its own environment and not a standard windows login environment for its OC4J containers. Apache Tomcat on the other hand uses the standard user login environment.
    So to get the application to be able to work properly we needed to override the particular environment the process needed to be able to get it to work. There is a exec command which allows you to override completely the environment for a process you would like to run. This method call does not in any way shape or form change the standard OC4J environment. This was done by executing the same "set" but with the overriden environment. Note that no environment variables from the OC4J container are carried into this new environment.
    Cheers
    Rodney

  • X230T graphics performanc​e under Windows 8

    My Thinkpad originally came with Windows 7 Pro, but I have changed to Windows 8 in order to resolve problems with VSS.  OOB, both Windows 7 and Windows 8 gave me a "Desktop graphics performance" rating of 5.7.  Under Windows 7, upgrading to the latest Lenovo driver improved this to 6.1, leaving my HDD (at 5.9) as the limiting factor in performance.  Under Windows 8, however, replacing the Windows driver with the latest Lenovo driver has reduced "Desktop graphics performance" to 5.6!  What gives?
    P.S. I just discovered a Power Options advanced power setting "Intel Graphics Power Plan", which was set to "Maximum Battery Life" for both battery and plugged in.  I changed it to "Maximum Performance" when plugged in, but the Windows experience Index (WEI) for "Desktop graphics performance" remains a mer 5.8.
    X320T running Windows 8 Pro x64

    rsbrux wrote:
    My Thinkpad originally came with Windows 7 Pro, but I have changed to Windows 8 in order to resolve problems with VSS.  OOB, both Windows 7 and Windows 8 gave me a "Desktop graphics performance" rating of 5.7.  Under Windows 7, upgrading to the latest Lenovo driver improved this to 6.1, leaving my HDD (at 5.9) as the limiting factor in performance.  Under Windows 8, however, replacing the Windows driver with the latest Lenovo driver has reduced "Desktop graphics performance" to 5.6!  What gives?
    P.S. I just discovered a Power Options advanced power setting "Intel Graphics Power Plan", which was set to "Maximum Battery Life" for both battery and plugged in.  I changed it to "Maximum Performance" when plugged in, but the Windows experience Index (WEI) for "Desktop graphics performance" remains a mer 5.8.
    After you changed the setting to "Maximum Performance" , did you run the WEI test again?

  • Having a problem setting up apache...

    Fisrt off, let me say this is my first stabe at this, so bear with me.
    I set up apache, php and mysql, and pretty much successfully. I can connect to my web server via IP. But if I try to connect to it via the hostname it fails. I followed the directions in the wiki entry for it. Here are the contents of my /etc/hosts and /etc/rc.conf file as well as my /etc/httpd/httpd.conf file.
    Can anyone tell me why my hostname isn't working?
    /etc/hosts:
    /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 chxsrv chxsrv
    # End of file
    /etc/rc.conf
    ...(yada)...
    # NETWORKING
    HOSTNAME="chxsrv"
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
    lo="lo 127.0.0.1"
    eth0="eth0 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255"
    INTERFACES=(lo eth0)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network-profiles
    #NET_PROFILES=(main)
    ...(blah)...
    and last but not least, the /etc/httpd/conf/httpd.conf file:
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo.log"
    # with ServerRoot set to "@@ServerRoot@@" will be interpreted by the
    # server as "@@ServerRoot@@//var/log/httpd/foo.log".
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk. If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    ServerRoot "/etc/httpd"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 192.168.0.100:80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule include_module modules/mod_include.so
    LoadModule info_module modules/mod_info.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 mime_module modules/mod_mime.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.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 rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule status_module modules/mod_status.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule version_module modules/mod_version.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.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 php5_module modules/libphp5.so
    <IfModule !mpm_winnt_module>
    <IfModule !mpm_netware_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User nobody
    Group nobody
    </IfModule>
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    ServerName chxsrv:80
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/home/httpd/html"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/home/httpd/html">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    <IfModule mod_php5.c>
    DirectoryIndex index.php index.html
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    </IfModule>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    </FilesMatch>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog /var/log/httpd/error_log
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <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>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #CustomLog /var/log/httpd/access_log common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    CustomLog /var/log/httpd/access_log combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    #Alias /image/ "/home/httpd/images/"
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock /var/run/cgisock
    </IfModule>
    # "/home/httpd/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/home/httpd/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig /etc/httpd/conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For files that include their own HTTP headers:
    #AddHandler send-as-is asis
    # For server-parsed imagemap files:
    #AddHandler imap-file map
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile /etc/httpd/conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall is used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #EnableMMAP off
    #EnableSendfile off
    # Supplemental configuration
    # The configuration files in the /etc/httpd/conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    #Include /etc/httpd/conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include /etc/httpd/conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include /etc/httpd/conf/extra/httpd-autoindex.conf
    # Language settings
    Include /etc/httpd/conf/extra/httpd-languages.conf
    # User home directories
    Include /etc/httpd/conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include /etc/httpd/conf/extra/httpd-info.conf
    # Virtual hosts
    #Include /etc/httpd/conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include /etc/httpd/conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include /etc/httpd/conf/extra/httpd-dav.conf
    # Various default settings
    Include /etc/httpd/conf/extra/httpd-default.conf
    # Secure (SSL/TLS) connections
    #Include /etc/httpd/conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    Like I said, I can connect to this from other machines on my network via IP, but not hostnames. Any thoughts?

    I know this post is a couple months old but for future reference:
    The problem is with /etc/hosts.allow
    You need to add
    httpd: ALL
    Once you all that youll have external access to your apache setup.

  • Running DS-5 armcc compiled code (PIC) under Windows EC 2013

    Hi All,
    i just wanted to know if it is generally (officially) supported to run code that is compiled via the armcc (5.03) from DS-5 under Windows Embedded Compact 2013. Or if this is discouraged (reasons?).
    The problem i have:
    The bootloader contains some code that must be run during Windows EC Startup. So this code is loaded from the Flash, copied to RAM (reserved and commited via VirtualAlloc and marked as executable) and then the functions are called via FunctionPointers.
    The code is compiled and linked as position independent and the stack base register is set accordingly before any function is called via pointer and reset when it returns.
    This works in about 9 out of 10 tests without problems. But sometimes i get all sort of exceptions (Data Abort, Prefetch Abort, Unknown Instruction, ...). Most (if not all) of the time they occur when the position independent code runs on one of the two
    cores.
    The code runs on an i.MX6DQ (dual).
    If i only enable one core, i can't reproduce the problem (i assume that multicore-handling and multithreading in WinEC 2013 Update 10 is really well tested and works without problems, so this can't be the real reason).
    I've thoroughly checked and debugged the code, i'm really sure there is no illegal access or other problem with the code itself.
    Could it be a problem to call code compiled via DS-5 armcc? I've compared assembler code that Visual Studio/Platform Builder generates with code that DS-5 generates (but i'm no assembler expert). I can't see any obvious special code that is added by Visual
    Studio/Platform Builder (i.e. that functions need) that is not there in the DS-5 code.
    Best Regards
    Sebastian

    So I think you could be able to image some code for ROM from another compiler and without knowledge of Windows CE. However, if the code will be called from Windows CE, this becomes more difficult requiring very careful isolation from the
    MMU state, processor state, kernel/user mode, etc. Code that works great when called from the bootloader might not work at all from Windows CE itself. The main problem with mixing code from different compilers is the object file format and conventions for
    entry and public names. Very unlikely that you'd be able to "link" code from any other compiler with PB-compiled code.
    You might think about the x86 image which can easily call BIOS from the bootloader but which can't even begin to call BIOS from CE itself. The problem isn't the compiler (which is different), but the operating environment differences and assumptions.
    Paul T.

  • Using scripting with networking equipment under Windows

    It can be a challenge to use scripting to automate working with Cisco devices. The Cisco IOS does not seem to directly provide a command line interface. You are forced to find a way to automate interaction with a telnet or ssh session.
    The PERL language provides a number of object-oriented methods to help manage an interactive session, most notably Net::SSH::Expect and Net::Appliance::Session. These options can work well in a Unix environment, but not under MS Windows.
    There are PERL for Windows options, the best probably being Strawberry PERL. There is also a Unix under Windows option known as CYGWIN that is freely available. Unfortunately none of these will work well with the way Windows manages low-level terminal I/O. The curious can google "windows pseudo terminal" to see all the technical details.
    One way that does work under Windows is Tcl.  It was initially named Tool Command Language. It is sometimes shown as Tcl/Tk.
    Interestingly enough, Tcl is included within Cisco IOS as tclsh. There is no interaction with the tclsh and this example. It is just a bit of a curious coincidence.
    A Tcl port to Windows can be downloaded from http://www.activestate.com/activetcl/downloads. Select Download ActiveTCL for Windows. A direct link to the download that worked at the time of writing is Download ActiveTcl 8.5.14 for Windows (x86)
    Once base Tcl has been downloaded and installed there is one other component that will need to be installed from the Tcl Extension Archive, the expect package.
    The teacup program that is installed with the base Tcl package makes this easy. The teacup program will work with a proxy.
    You can set these Windows environment variables to specify proxy details:
    set http_proxy=
    set http_proxy_user=
    set http_proxy_pass=
    Then run teacup install expect
    The plink tool from the PuTTY download is also needed. It can be obtained from http://www.putty.org/.
    The sample that follows assumes that the data files, script and plink.exe executable all reside in the same directory.
    A sample Tcl script follows that reads a file of devices and a file of commands. It will run the list of commands against each device in the device file. It has some basic error checking, but should best be considered a ‘beta’ version. You could do more complex interactions in the Tcl script by adding exp_send and expect command statements. In short, if you can type it you could script it!
    Change directory to where your script, plink.exe  and data is stored and run with  tclsh <script_name>
    devices.list
    # Comment lines are allowed if they start with a hash mark
    # <IP_Addr> <userid> <password> <ssh|telnet> <timeout_in_secs>
    nnn.nnn.nnn.nnn    <userid>    <password>  ssh         <timeout_in_secs>
    nnn.nnn.nnn.nnn    <userid>    <password>  telnet      30
    commands.list
    # term length 0 needed or else IOS will wait for an enter to be pressed at the  --More-- prompts
    term length 0
    show run
    exit
    Script:
    # Run batch commands against one or more devices
    package require Expect
    exp_log_user 0
    set exp_internal 0
    set exp::nt_debug 0
    set prompt "(#\s*$|>\s*$)"
    set env(TERM) dumb
    set file_channel  [open "devices.list" r]
    set DEVICES      [read $file_channel]
    close $file_channel
    set file_channel  [open "commands.list" r]
    set COMMANDS      [read $file_channel]
    close $file_channel
    set command_entries [split $COMMANDS "\n"]
    set device_entries  [split $DEVICES "\n"]
    proc timedout {{msg {none}}} {
          send_user "Timed out (reason: $msg)\n"
          if {[info exists ::expect_out]} { parray ::expect_out }
          exit 1
    foreach device_entry $device_entries {
          if {[string length $device_entry] == 0 || [regexp {[ \t]*#} $device_entry]} { continue }
          set device  [lindex $device_entry 0]
          set user    [lindex $device_entry 1]
          set pass    [lindex $device_entry 2]
          set mode    [lindex $device_entry 3]
          set wait    [lindex $device_entry 4]
          set serial  [lindex $device_entry 5]
          # puts "Device=$device"
          # puts "User=$user"
          # puts "Mode=$mode"
          # puts "Wait=$wait"
          set timeout $wait
          # Spawning the Session
          # If you are logging on to the remote machine using "ssh", "slogin" or "rlogin", the information
          # gets processed in a slightly different manner. With any of these methods, it is necessary to
          # include an additional -l option to specify a username.
          # Next, the $spawn_id variable is captured, storing information about this spawn session in
          # memory for future reference.
          # If you are logging in via Telnet, the final code block in this section is required to pass the
          # username to Telnet. If the login is completed before the script times out, the exp_send command
          # passes the username.
          switch -exact $mode {
                "telnet" { set pid [spawn plink -telnet -l $user $device] }
                "ssh"   { set pid [spawn plink -ssh -l $user -pw $pass $device] }
                "serial" { set pid [spawn plink -serial $serial -l $user -pw $pass $device] }
          set id $spawn_id
          if {$mode == "telnet"} {
                expect -i $id timeout {
                timedout "in user login"
                } eof {
                timedout "spawn failed with eof on login"
                } -re "(login|Username):.*" {
                exp_send -i $id -- "$user\r"
          # Handling Errors
          # The error-handling section of the script is a while loop that anticipates a number of problems
          # that could occur during login. This section is not exhaustive. For example, you could also add
          # provisions for invalid usernames and passwords.
          # If the login is not completed during the allotted time frame, which is set from the devices.list file
          # and specified with expect -i $id timeout, the program displays an appropriate error message.
          # The remainder of this loop makes use of the exp_send command to allow for other scenarios, such
          # as the user typing "yes" when prompted to proceed with the connection, entering a password, or
          # resetting the terminal mode.
          set logged_in 0
          while {!$logged_in} {
                expect -i $id timeout {
                timedout "in while loop"
                break
                } eof {
                timedout "spawn failed with eof"
                break
                } "Store key in cache? (y/n)" {
                exp_send -i $id -- "y\r"
                } -re "\[Pp\]assword:.*" {
                exp_send -i $id -- "$pass\r"
                } "TERM = (*) " {
                exp_send -i $id -- "$env(TERM)\r"
                } -re $prompt {
                set logged_in 1
          foreach command $command_entries {
                if {[string length $command] == 0 || [regexp {[ \t]*#} $command]} { continue }
                # Sending the Request
                # If the login is successful, the code in the if statement below is used to send the "cmd" request
                # to display files and directories. After the request is sent with exp_send, the resulting output
                # is captured in the dir variable, which is set on the fourth line of the code shown below.
                if {$logged_in} {
                      exp_send -i $id -- "$command\r"
                      expect -i $id timeout {timedout "on prompt"} -re $prompt
                      puts "$expect_out(buffer)"
                # Closing the Spawned Session
                # The exp_close command ends the session spawned earlier. Just to be sure that session
                # does indeed close, the exp_wait command causes the script to continue running until a result is
                # obtained from the system processes. If the system hangs, it is likely because exp_close was not
                # able to close the spawned process, and you may need to kill it manually.
          catch { exp_close -i $id }
          exp_wait -i $id
          set logged_in 0
    *** End of Document ***

    Your friend will have to save the templates as CS6, which he can do.

  • 11g R2 wont work under windows 2008 R2 doesnt support UTC, and cant change.

    I posted this in error under general, and got no responses. So now Im cutting and pasting it into installation, in a last ditched attemtp to find a way to get a clean installation of oralce on a clean installation of Windows Server 2008 R2 working.
    Problem:
    1) cannt connect to oracle outside of box. Get "TNS Connection timeout occured"
    2) em console "Sepecify Host and Target Database Credentials" always says "Connection refused: connect", even though the OS user/pass and DB user/pass are correct.
    What does work:
    1) I can "select * from dual" using "sqlplus / as sysdba" from the commandline on the box itself.
    2) Once, before I got em console half working, I could connect to the DB from outside the box with SYS as SYSDBA using toad. Now I cant.
    How I installed it:
    1) created a user called "oracle" and put them in the Administrators group.
    2) ran the downloaded installer for enterprise version, partition option chosen, AL32UTF8 char set, global db name: orcl, sid: orcl, "Assert all new security settings on" (No idea what this is) etc.
    3) at the end of the installer it came up with the following error:
    "Set the environment variable ORACLE_UNQNAME to the database unique name"
    3.5) opened up the incomming connections in the windows FW for 1158 and 1521 TCP from all.
    4) set ORACLE_UNQNAME as a system env var for oracle as "orcl"
    5) set ORACLE_HOME to c:\app\oracle\product\11.2.0 (or should this be c:\app\oracle\product\11.2.0\dbhome_1 ??)
    6) set ORACLE_SID to orcl
    7) set ORACLE_HOST to dilbert (the machine name)
    Rebooted.
    8) logged into em console on https:
    dilbert:1158 (works from inside or outside the box).
    9) Entered the oracle windows user userame & pass, and SYS and pass (with connect as SYSDBA). However, it always says "Connectoin refused: connect"
    Im not using a domain. computer name is correctly setup as "dilbert" in the OS.
    I cant think of anything to try, and dont know how to start debugging this problem.
    If I look at the running services, i see:
    OracleDBConsolorcl Stopped
    OracleJobSchedulerORCL Stopped
    OracleMTSRecoveryService Stopped
    OracleOraDb11g_home1CLRAgent stopped
    OracleORADb11g_home1TNSListener Stopped
    OracleServiceORCL Running
    OrclVssWriterORCL Stopped
    nd if i try and start those services as oracle (who is in the Administrators group) it says "The operation could not be completed. Access is denied". If I run task manager as Administrator, I can start all of them except for the TNSListener which doesnt do anything, you say start, and it stays stopped. No errors, now warnings. and the JobSchedulreORCL which says no associated devices.
    HAving manually started some of the services (no idea if you are supposed to do that, cant find any installation documentation which covers before/after running the installer), when I try and specify the host and target database credentials in em console, it says:
    Validation Error
    Please correct the following error:
    dbUserPassword - This field must be specified
    However, the DB password for SYS IS specified and correct - so I have no way to fix this.
    I cant find anyinformatin online where to look for log files, but there is nothing in sysman\log
    Now em console is saying "Conection refused" again, and the following process have killed themselves (as will I soon)
    OracleDBConsolercl Stoppped
    The others which I succeded in starting are still running. So TNSListener nor jobscheduler will start, and Consolerocl kills itself after a minute.
    Well, looks like I'm on my own on this one. Oracle will not intall on windows, and none seems to have noticed. Doing a day of googling reveals that all the log files which are supposed to live in sysman/log do not exist in this installation, so no help there.
    However, I did find an obscure log which says:
    The agentTZRegion value in C:\app\oracle\product\11.2.0\dbhome_1\wario_orcl/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
    The TZ of the windows server is set to "UTC" at long time ago. There is nothing in the oralce windows installation guide to say "Do not use UTC, the most comon server time zone in europe". There is no mention of supported windows timezones.
    Now if Oracle doesnt support basic UTC, then we are all in trouble.
    There are hundreds of articles with this problem and how to solve it on Unix, but almost none for Windows. Do we have to solve Oracle installation bugs ourselves? Is there no support?
    Doing the below reveals that Oracle thinks that UTC is America/Rio_Branco. That HAS to be a bug.
    C:\app\oracle\product\11.2.0\dbhome_1\BIN>emctl config agent getTZ
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    Unable to open file for logging. C:\app\oracle\product\11.2.0\dbhome_1/wario_orc
    l/sysman/log/emctl.log: Permission denied
    America/Rio_Branco
    So what next?
    The list of "supported" timezones in supportedtzs.list only lists UNIX timezones, and NO UTC!!!!!
    Googling this turns up nothing - noone on the planet seems to use UTC on their servers. I find this absolutely shocking.
    Windows server ONLY users UTC - it doesnt support GMT any more.
    So I have to now randomly try timezones in Windows which I dont want, which will be different from all the other servers in the Datacenter. It means all our reports will be out by 1 hour in summer ifI have to chose a timzeone which has daylight savings, compared with all the other databases which are UTC (not daylight savings).
    I would expect this from freeware maintained by one person in his garage.
    It seems that this Timezone issue emans Oracle will not run on windows.
    Tried a lot of things, including setting the timzeonse in windows to be "(UTC) Dublin, Edinburgh, Lisbon, London", which unfortuantely is not UTC (as it is affected by daylight savings).
    When you run
    "emctl config agent getTZ"
    you get:
    "Europe/London"
    The only oracle documentation I can find on this subject tells you to edit the emd.properties, and modify the agentTZRegion property, which doesnt exist.
    I tried the following command:
    "c:\app\oracle\product\11.2.0\dbhome_1\BIN>emctl resetTZ agent"
    Which tells you to execute:
    SQL> exec mgmt_target.set_agent_tzrgn('wario:3938','Europe/London')
    SQL> commit
    However, when I do this, I get:
    SQL> exec mgmt_target.set_agent_tzrgn('wario:3938','Europe/London')
    BEGIN mgmt_target.set_agent_tzrgn('wario:3938','Europe/London'); END;
    ERROR at line 1:
    ORA-20233: Invalid agent name wario:3938
    ORA-06512: at "SYSMAN.MGMT_TARGET", line 3811
    ORA-06512: at line 1
    Great. Obviosly, Im loggin in as SYS as no other users have been setup, and certainly I have not seen nor created nor set the password for "em repository user".

    I posted this in error under general, and got no responses. So now Im cutting and pasting it into installation, in a last ditched attemtp to find a way to get a clean installation of oralce on a clean installation of Windows Server 2008 R2 working.
    Problem:
    1) cannt connect to oracle outside of box. Get "TNS Connection timeout occured"
    2) em console "Sepecify Host and Target Database Credentials" always says "Connection refused: connect", even though the OS user/pass and DB user/pass are correct.
    What does work:
    1) I can "select * from dual" using "sqlplus / as sysdba" from the commandline on the box itself.
    2) Once, before I got em console half working, I could connect to the DB from outside the box with SYS as SYSDBA using toad. Now I cant.
    How I installed it:
    1) created a user called "oracle" and put them in the Administrators group.
    2) ran the downloaded installer for enterprise version, partition option chosen, AL32UTF8 char set, global db name: orcl, sid: orcl, "Assert all new security settings on" (No idea what this is) etc.
    3) at the end of the installer it came up with the following error:
    "Set the environment variable ORACLE_UNQNAME to the database unique name"
    3.5) opened up the incomming connections in the windows FW for 1158 and 1521 TCP from all.
    4) set ORACLE_UNQNAME as a system env var for oracle as "orcl"
    5) set ORACLE_HOME to c:\app\oracle\product\11.2.0 (or should this be c:\app\oracle\product\11.2.0\dbhome_1 ??)
    6) set ORACLE_SID to orcl
    7) set ORACLE_HOST to dilbert (the machine name)
    Rebooted.
    8) logged into em console on https:
    dilbert:1158 (works from inside or outside the box).
    9) Entered the oracle windows user userame & pass, and SYS and pass (with connect as SYSDBA). However, it always says "Connectoin refused: connect"
    Im not using a domain. computer name is correctly setup as "dilbert" in the OS.
    I cant think of anything to try, and dont know how to start debugging this problem.
    If I look at the running services, i see:
    OracleDBConsolorcl Stopped
    OracleJobSchedulerORCL Stopped
    OracleMTSRecoveryService Stopped
    OracleOraDb11g_home1CLRAgent stopped
    OracleORADb11g_home1TNSListener Stopped
    OracleServiceORCL Running
    OrclVssWriterORCL Stopped
    nd if i try and start those services as oracle (who is in the Administrators group) it says "The operation could not be completed. Access is denied". If I run task manager as Administrator, I can start all of them except for the TNSListener which doesnt do anything, you say start, and it stays stopped. No errors, now warnings. and the JobSchedulreORCL which says no associated devices.
    HAving manually started some of the services (no idea if you are supposed to do that, cant find any installation documentation which covers before/after running the installer), when I try and specify the host and target database credentials in em console, it says:
    Validation Error
    Please correct the following error:
    dbUserPassword - This field must be specified
    However, the DB password for SYS IS specified and correct - so I have no way to fix this.
    I cant find anyinformatin online where to look for log files, but there is nothing in sysman\log
    Now em console is saying "Conection refused" again, and the following process have killed themselves (as will I soon)
    OracleDBConsolercl Stoppped
    The others which I succeded in starting are still running. So TNSListener nor jobscheduler will start, and Consolerocl kills itself after a minute.
    Well, looks like I'm on my own on this one. Oracle will not intall on windows, and none seems to have noticed. Doing a day of googling reveals that all the log files which are supposed to live in sysman/log do not exist in this installation, so no help there.
    However, I did find an obscure log which says:
    The agentTZRegion value in C:\app\oracle\product\11.2.0\dbhome_1\wario_orcl/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
    The TZ of the windows server is set to "UTC" at long time ago. There is nothing in the oralce windows installation guide to say "Do not use UTC, the most comon server time zone in europe". There is no mention of supported windows timezones.
    Now if Oracle doesnt support basic UTC, then we are all in trouble.
    There are hundreds of articles with this problem and how to solve it on Unix, but almost none for Windows. Do we have to solve Oracle installation bugs ourselves? Is there no support?
    Doing the below reveals that Oracle thinks that UTC is America/Rio_Branco. That HAS to be a bug.
    C:\app\oracle\product\11.2.0\dbhome_1\BIN>emctl config agent getTZ
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    Unable to open file for logging. C:\app\oracle\product\11.2.0\dbhome_1/wario_orc
    l/sysman/log/emctl.log: Permission denied
    America/Rio_Branco
    So what next?
    The list of "supported" timezones in supportedtzs.list only lists UNIX timezones, and NO UTC!!!!!
    Googling this turns up nothing - noone on the planet seems to use UTC on their servers. I find this absolutely shocking.
    Windows server ONLY users UTC - it doesnt support GMT any more.
    So I have to now randomly try timezones in Windows which I dont want, which will be different from all the other servers in the Datacenter. It means all our reports will be out by 1 hour in summer ifI have to chose a timzeone which has daylight savings, compared with all the other databases which are UTC (not daylight savings).
    I would expect this from freeware maintained by one person in his garage.
    It seems that this Timezone issue emans Oracle will not run on windows.
    Tried a lot of things, including setting the timzeonse in windows to be "(UTC) Dublin, Edinburgh, Lisbon, London", which unfortuantely is not UTC (as it is affected by daylight savings).
    When you run
    "emctl config agent getTZ"
    you get:
    "Europe/London"
    The only oracle documentation I can find on this subject tells you to edit the emd.properties, and modify the agentTZRegion property, which doesnt exist.
    I tried the following command:
    "c:\app\oracle\product\11.2.0\dbhome_1\BIN>emctl resetTZ agent"
    Which tells you to execute:
    SQL> exec mgmt_target.set_agent_tzrgn('wario:3938','Europe/London')
    SQL> commit
    However, when I do this, I get:
    SQL> exec mgmt_target.set_agent_tzrgn('wario:3938','Europe/London')
    BEGIN mgmt_target.set_agent_tzrgn('wario:3938','Europe/London'); END;
    ERROR at line 1:
    ORA-20233: Invalid agent name wario:3938
    ORA-06512: at "SYSMAN.MGMT_TARGET", line 3811
    ORA-06512: at line 1
    Great. Obviosly, Im loggin in as SYS as no other users have been setup, and certainly I have not seen nor created nor set the password for "em repository user".

  • Better Display Driver under Windows 8 than Windows 7 for MacBook Pro Retina?

    Anyone happen to know if the display support for a MacBook Pro Retina is better under Windows 8 than it is under Windows 7?
    Ideally, I would like to be able to run 2880x1800 at True Color as well as have the HDMI out fuction as a second display (maching the behaviour while booted under Max OS X 10.8).
    Under Windows 7, the highest resolution that supports True Color is 1600x1200.  This would be okay if that setting did not distort the picture (everything is slightly squeezed).  At 2880x1800, the highest color depth is High Color (16-bit) which is, well, not something one can actually use if doing graphics work.  On my 27" iMac, 2680x1600 supports True Color as expected.
    Also under Windows 7, the display connected via HDMI is not recognized.
    I've contected both Apple care support and Microsoft support about this, but Apple referred me to Microsoft and Microsoft referrred me back to Apple.
    Thanks,
    Warren
    P.S. Personally, I think it's rediculous to even attempt to do graphics work under Windows, but tell that to the Windwows based corporate world that I freelance in.

    Yes, there is a better display driver for the MacBook Pro Retina while running Windows 7 Pro.
    And, the answer is so obvious, that I feel a little silly having started this thread in the first place!
    The Windows 7 Professional NVIDIA drivers for the NVIDIA GeForce GT 650M card need to be installed manually by downloading them from NVIDIA directly.
    If you need to do this on your MBPr Boot Camp volume, use this link:
    http://www.nvidia.com/Download/index.aspx?lang=en-us
    Then, set the pop-up menus based on your MBPr. [Mine were as follows: GeForce; GeForce 600M Series (Notbooks); GeForce GT 650M; Windows 7 64-bit: English (US)]
    What tipped me off to this is that the CUDA drivers need to be downloaded manually on the Mac OS X side to take full advantage of raytracing in Adobe After Effects CS6 and CC.  As soon as I started to run that installer it dawned on me, "Hey, you probably need to install the drivers on the Boot Camp side as well."  And sure enough after doing so, I am able select all of the expected resolutions as well as run 2880 x 1800 at Millions of Colors (32-bit).
    I guess I'm showing my nearly three decades worth of being a Mac user where I'm accustomed to having about everything needed included with the OS.
    -Warren

  • Setup cocoon with 9ias 9.0.2 under windows NT

    Setup Cocoon with 9ias OC4J (9.0.2) under Windows NT
    This was a painful process for me. I finally made it work. Thought my story might help someone else. If anyone sees anything that could cause problems down the line, please let me know.
    NOTE: This took me a week to get right, so the restarts I suggest may not be appropriate, just guesses on my part.
    A. FIRST SECTION (Based off of steps 9 - 11 of Metalink note 148497.1) - This deploys the cocoon.war file
    1. Copy cocoon.war file to oracle 9ias home in the j2ee/home/applications directory. (NOT cocoon_jvm14. I tried to use the cocoon with jvm1.4. The version of 9ias I use wanted 1.3, so that is what I ended up using.)
    NOTE: I followed the 9-11 steps from the above note the first time and manually changed the files below, but when I had to reboot my machine a couple of days later it lost the changes. So I went in thru OEM and did it there and have had no problems. These steps are detailed below.
    2. Log into Oracle Enterprise Manager. Click on 9ias instance. Click OC4J_home.
    3. Go to Advanced Properties. Edit the default-web-site.xml file. Look for the statement <default-web-app application="default" name="defaultWebApp" root="/j2ee"/>. After that statement, add the following: <web-app application="default" name="cocoon" root="/cocoon"/>
    4. Go back to OC4J_home. Click on default link near the top of the page. (It has a Path underneath is that says application.xml) Then click on Advanced Properties. Edit the application.xml file. Look for the statement <web-module id="defaultWebApp" path="../../home/default-web-app"/>. After that statement, add the following: <web-module id="cocoon" path="../../home/applications/cocoon.war"/>.
    5. Go back to 9ias instance and do a "Restart All".
    B. SECOND SECTION ( Based off of Metalink note 184826.1)
    1. Go to the Apache/Apache/conf/mod_oc4j.conf file underneath your 9ias home. Add the following line at the bottom of the file: Oc4jMount /cocoon/* home
    Either "Restart All" from OEM again, or follow step 3 from the note. WARNING: I read somewhere that if you try to do the dos dcm/opmn stuff with the OEM at the same time, that you have corruption problems? So close the OEM if you do the dos commands just in case.
    C. THIRD SECTION (This is what I did with the Cocoon jars to make 9ias/oc4J find them and use them. I am by no means saying this is the correct way. Just a way. If anyone has a different way, I would appreciate hearing it.)
    1. Go to 9ias home and in the j2ee/home directory make a new folder. (I called mine xerces.) Copy the following jar files, found in the j2ee/home/applications/cocoon/web-inf/lib directory (this dir will show up after cocoon.war is deployed with the A. FIRST SECTION restart), into your new folder:
    a. batik-all-1.5b2.jar
    b. xalan-2.3.1.jar
    c. xercesImpl-2.0.0.jar
    d. xml-apis.jar
    2. Log into the Oracle Enterprise Manager. Click on OC4J_home. Click on Server Properties. Scroll down to the bottom and type the following into Java Options: -Djava.ext.dirs=xerces. (If you named your new folder xerces.)
    D. LAST SECTION
    1. I rebooted my machine and said a prayer. From the url "http://myhost:7777/cocoon/" I got the cocoon welcome page!

    I've heard rumors its about a month away. We were waiting for it, but then
    decided to go to Linux, as it probably performs better, and the release for
    Linux is already out. 9.0.2 is certified on Linux:
    - SuSe SLES7
    - Red Hat Advanced Server 2.1
    Waiting for Oracle to release a software product seems almost like waiting
    for a sunny day in Seattle -- you eventaly get it, but its unpredicatable
    as to when it will actually be at best...

  • New iPod touch does nothing under Windows XP

    I have been bought a new iPod touch to put all my existing CDs onto. We already have iTunes from a previous iPod, and on connecting the touch to the Windows XP machine, all I got was the "install new hardware" screen, asking for a CD, which of course, Apple dont provide.
    I checked the support pages, and it recommended installing the latest iTunes. I attempted to do this, and it wiped my registry, passwords, and killed the wireless link. After spending a day re-setting all this, and finally installing iTunes again (10.5 I think), the same thing happens - connect the touch via the USB cable, and "install new hardware" appears requesting a driver from the Apple CD.
    Again, been on the support site to find help, and the only article I have found is to use MSCONFIG to turn everything off. I did this, but (surprise, surprise) it doesnt work.
    So I am now stuck with a half dead Windows XP machine that works with the old iPod, and an iPod touch that works with nothing.
    Other than returning the iPod touch to the retailer, what options do I have ?

    Hi lllaass,
    Sorry for the gap in replying.
    Funny you should highlight that link, because it states on it that they dont expect a re-install to work under Windows, and ... you guessed it ... it didnt work !
    I have tried re-installing it again and again, and I gave up. I kept getting a message that the previous install of iTunes failed, and that I had to complete THAT before I could un-install it - useful.
    So, like I said, I gave up. I think re-installing for three weeks is enough.
    Thanks anyway.

  • All-in-one driver installation fails under Windows 7

    I am trying to install the all-in-one printer driver for Windows 7, 64-bit, Service Pack 1.  I have downloaded the installer from HP (AIO_CDB_Net_Full_Win_WW_130_141.exe), downloaded it using HP Print and Scan Doctor 4.3 and using the HP Printer Install Wizard (hppiw.exe).  All methods fail.  My computer is a new Dell Inspiron (Intel i5-4440 @ 3.1GHz, 8GB RAM, 64-bit OS).  The printer I am installing for is a HP 6310, which is old but which has worked well for years under Windows XP.  I don't think the printer is an issue since the installer never reaches the point of scanning for hardware.
    Symptoms:
    Installing using the downloaded installer, the initial splash screen displays.  Selecting "Install" displays a second screen with several progress indicators beginning with "Checking system...".  After checking for a few seconds, an error box pops up complaining that it can't find a file named "hpzpnp.ice_suffix..exe". 
    There are two files in the Setup directory named "hpzpnp01.exe" and "hpzpnp04.exe".  The Autorun file contains many references to an %ICE_SUFFIX% environment variable. 
    I guessed that the installer executables did not have enough privelege to set environment variables, so I went through the installer directories and set all the executables to run with administrator privelege. 
    After that, running "Setup.exe" from the top of the install tree, the initial splash appears, followed by the second "checking system..." progress display.  Then a new window with advice about keeping firewalls turned on, etc. pops up.  Continuing from that point pops up a new error box saying:
    "The specified path is too long C:\Program Files (sLar dig mer med hjalp av en demo pa skarmenHitta enkelt dina foton med onskad metod-Datum, Markning, Mappar, Sok, Favoriter)\HP\."
    I have done this multiple times, and the parenthesized phrase (Swedish?) is sometimes different, but always wrong.  It looks to me as though the installer is trying to decide whether to install 32- or 64-bit drivers, but can't decide which.  It fails to initialize a string variable and concatenates garbage onto the "C:\Program Files" path string.
    I have also seen an error box with the following error near this point:
    "C:\Users\Sid\AppData\Local\7zS4689\Setup\hpzrein01.exe" "-wStub" "3...
    "The parameter is incorrect."
    Clicking OK on the error box aborts the installation.
    Installing using the HP Printer Installation Wizard produces the same error message as the initial attempt with the downloaded installer about missing files with names containing "ice_suffix".
    Installing using the HP Print and Scan Doctor progresses as far as the "path is too long" message.
    I've done this now many times, trying different things, without success.  After each attempt, I run the Uninstall_L4 utility in utils\ccc under the installer tree, then run the OS Disk Cleanup utility.  Following an earlier post, I installed the latest version of Flash Player, with no change in symptoms.
    Any fresh ideas would be much appreciated.

    Hi ehildum,
    Thank you for the time and effort you put into your post. I can see you have done plenty of troubleshooting on your own, but I do have an idea.
    If the USB cable is plugged in this could be causing issue. Assuming it is connected, let's unplug and take a look at the Device manager. The hpzpnp.ice_suffix indicates a plug and play 'pnp'.
    Follow these steps and let me know what happens.
    Click on Start
    Right click on Computer
    Select Manage
    On the left panel, click on Device Manager
    Click on View at the top and select Show hidden devices
    Look in the list for Other devices
    If you see the printer here, right click and select uninstall
    Look in the list and click on the arrow next to Printers
    If you see the printer here, right click and select uninstall
    Delete all files in the %temp% folder
    Restart the computer
    Open the installer from your download  (AIO_CDB_Net_Full_Win_WW_130_141.exe)
    Do Not plug the USB cable in until the software says so.
    Please let me know the outcome of these efforts. If your USB cable was not connected please complete the above steps anyway to see if there is something stuck in the Device manager that could be causing the conflict.
    I look forward to hearing from you.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • (Request for:) Best practices for setting up a new Windows Server 2012 r2 Hyper-V Virtualized AD DC

    Could you please share your best practices for setting up a new Windows Server 2012 r2 Hyper-V Virtualized AD DC, that will be running on a new WinSrv 2012 r2 host server.   (This
    will be for a brand new network setup, new forest, domain, etc.)
    Specifically, your best practices regarding:
    the sizing of non virtual and virtual volumes/partitions/drives,  
    the use of sysvol, logs, & data volumes/drives on hosts & guests,
    RAID levels for the host and the guest(s),  
    IDE vs SCSI and drivers both non virtual and virtual and the booting there of,  
    disk caching settings on both host and guests.  
    Thanks so much for any information you can share.

    A bit of non essential additional info:
    We are small to midrange school district who, after close to 20 years on Novell networks, have decided to design and create a new Microsoft network and migrate all of our data and services
    over to the new infrastructure .   We are planning on rolling out 2012 r2 servers with as much Hyper-v virtualization as possible.
    During the last few weeks we have been able to find most of the information we need to undergo this project, and most of the information was pretty solid with little ambiguity, except for
    information regarding virtualizing the DCs, which as been a bit inconsistent.
    Yes, we have read all the documents that most of these posts tend point to, but found some, if not most are still are referring to performing this under Srvr 2008 r2, and haven’t really
    seen all that much on Srvr2012 r2.
    We have read these and others:
    Introduction to Active Directory Domain Services (AD DS) Virtualization (Level 100), 
    Virtualized Domain Controller Technical Reference (Level 300),
    Virtualized Domain Controller Cloning Test Guidance for Application Vendors,
    Support for using Hyper-V Replica for virtualized domain controllers.
    Again, thanks for any information, best practices, cookie cutter or otherwise that you can share.
    Chas.

  • Zen V Plus under Windows 2

    ?Somebody bought me a new Zen V Plus, but unfortunately I'm using Windows 2000. Windows XP doesn't have enough new features to interest me and I'm concerned more about stability anyway, so I probably won't upgrade my OS for a few more years. In the meantime, I'd like to use the Zen in some way. Even if I can't load all the supporting utility software from the accompanying CD, there should be some way for me to be able to just copy files from my hard disk to the Zen's file system and play them. That in itself would be a quantum leap over having no MP3 player at all.
    However, the V Plus does not look like a little hard disk to Windows, so I can't use Explorer to copy the files. As far as I have been able to learn, the V Plus uses flash memory and Media Transfer Protocol (MTP), which is supported in Windows Media Player 0 (which is only supported under Windows XP).
    HOWEVER ... Microsoft recently released a Media Transfer Protocol Porting Kit -- see http://msdn.microsoft.com/windowsmed...s/default.aspx -- to add MTP support to WMP 9, the last one that worked under Windows 2000. But it's not easy to set up. After installing it and reading the Readme-Redist.txt file, you run MTP9x-2k.exe, which installs the following files:? - %windir%/System32/drivers
    ?? - wpdusb9x.sys (Windows 98SE or Windows ME)
    ???OR wpdusb.sys (Windows 2000)
    ? - %windir%/System32
    ?? - mtpiusb.dll
    ?? - mtpsmgr.exe
    ?? - mtpistb.dll
    ?? - mtpsp.dll
    ? - %windir%/Inf
    ?? - wpdmtp.inf?But then you have to edit a .inf file to describe the attributes of your player. This is beyond my technical ability.
    Am I right to think that I can get basic MP3 player use from the V Plus just by installing the MTP Porting Kit, or do I really need to upgrade to Windows XP?<
    If the Porting Kit will work, can anybody help me write a .inf file that will be correct for the V Plus?<
    Thanks for your help!

    I really wish I could help you but I am in the same situation about this driver. I dont know whether to cry or eat my own mp3 player :[, cause in order to use it'sI?even bought an external har dri've to install xp and then realised is not even possible.So?I guess the solution?are:?to create a backup of your important documents and install windows xp,borrow a friends computer?or resell your mp3 player because you can not even charge it whithout the drivers intalled. But I wont give up :]Message Edited by elenka on 0-9-200703:33 PM

Maybe you are looking for

  • Mulitple Detail record values in file adapter

    Hi, How shall I pick up a file in sender file adapter which is having two different record identifiers for their detail records. My structure is Header - Record identifier is HDR Detail - Record identifier is 10 and 30 Trailer - Record identifier is

  • Is it possible to create Indicater and control on same holizental slide?

    Is there any possible to create Indicate values and change values on same Horizental slide. Because I am giving loop values to Horizental slide to indicate my values, after certain time if user wanted to move slide bar to another possition. it should

  • "Screen Capture" in Finder as a short Quicktime movie rather than a screen snap

    I know that if I press cmd+shift+ 3 (or 4) I can take a snapshot of my screen to show the state of play on my screen at any particular time and email the result as a Gif or Jpeg.  I recall that it is also possible, within Finder, to make a short movi

  • Simple Sum Calculation in Forms

    I have a seriously simple situation, alas when I try to set it up, I am only able to select one field to calculate?  I am working in Adobe X.  I simply want to calculate the sum of 5 fields into a "Total" Text Field... 

  • Please offer recommendations to replace DTTS 2500 Desktop Theatre 5.1 system

    Howdy, all. After suffering a recent lightning strike to my home, my DTTS 2500s no longer function properly. Because of their age, I doubt the practicality of having them repaired (not that I know how to go about doing so if it's even possible), so I