Php appli and apache agent

Hi,
I've used the j2ee agent with a j2ee web app and it is pretty easy to retrieve the username and role of the user with the getUserPrincipal and isUserInRole methods.
I'd like to know if I can grant access to php applications running on a apache server with the apache agent the same way I did for the j2ee app?
thanks for the answers

Filing a bug upstream may be useful

Similar Messages

  • How to enable php, mysql, and apache?

    Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...
    According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
    Can somebody help me please.

    Please look at my second post. I corrected what I said:
    macwiz1220 wrote:
    O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*
    Take a look at this article on LAMP on Leopard.

  • PHP, DNS and Apache

    Hi all!
    Long time ago I have found (and not only I), that sometimes php+apache cannot resolve hosts.
    Curl, fopen cannot use dns entries of system, if apache was started before starting networking.
    Restarting and stoping Apache has helped to some people ( https://bbs.archlinux.org/viewtopic.php?id=106478 ),
    but not for me.
    Really good idea was here https://bbs.archlinux.org/viewtopic.php?id=74580.
    killing httpd process and starting Apache helped for me a lot in this situation.
    Maybe there is a better way to solve this problem?
    Have someone found "normal" solution?

    Filing a bug upstream may be useful

  • Trying to run PHP, Mysql and Apache

    Hey guys, Basically Im at university and doing a web development project and i need to use mysql and php, and someone told me leopard already comes with it? Does anyone know how i can get it to work correctly? any steps from the beginning? - am new to macs
    Cheers
    Krups

    hello, I will suggest you to follow the instructions set up by Marc Lyianage in his website, the url is http://www.entropy.ch/software/macosx/ there you will find a page for setting up php5 (it comes preinstalled in leopard) and it has a also a package installer for mysql very easy to set up.

  • Installing php, mysql and apache

    Hey guys, Basically Im at university and doing a web development project and i need to use mysql and php, and someone told me leopard already comes with it? Does anyone know how i can get it to work correctly? any steps from the beginning? - am new to macs
    Cheers
    Krups

    This web page:
    http://www.macosxhints.com/article.php?story=20071030153912813
    claims to tell you how to do it, though after 12 hours of working on this today I seem to be no closer.

  • Upgrade PHP and Apache on 10.6.8

    I'm thinking of upgrading PHP and Apache that were installed as part of 10.6.8 (Snow Leopard) to their current versions.
    How do I do it?
      - nello

    I posted links for creating a Macintosh, Apache, MySQL, PHP (mamp) stack on delicious:
    http://www.delicious.com/nlucchesi/tag_bundle/mamp

  • PHP and Apache, Bah Humbug

    Setting up PHP and Apache, I was following this: http://developer.apple.com/mac/articles/internet/phpeasyway.html
    I did the step to turn on "web sharing", and the "your computers website" link opened up the local page no problem. When I copy and pasted the content in "enabling PHP in apache" to terminal, I thought it worked... but now neither of the links work. Both say something like "Firefox can't establish a connection to the server at....". Any ideas?

    Safari says this:
    Safari can’t connect to the server.
    Safari can’t open the page “http://192.168.1.100/” because Safari can’t connect to the server “192.168.1.100”.
    I tried restarting apache with "sudo /usr/sbin/apachectl restart", but no luck, still get same messages in browsers.
    The computer's site (not personal) DID work when I started following the tutorial, but I only got half way through. I believe it stopped working when I copy/pasted the part from the tutorial. Any ideas? Can I completely reboot the process somehow?

  • Upgrading to PHP 5 on Tiger and Apache 1.3

    I need a little help with configuring php on my local server. I love XHTML/CSS and a bit of php, WordPress, and Rails - but I'm terrible at this server stuff. I'm petrified of screwing my configuration.
    I'm running everything from the default OS X Apache server (I'm on Tiger OS X 10.4.10). I prefer using the internal server to all-in-one apps like MAMP and Locomotive. I have phpMyAdmin v2.10.2, MySQL v5.0.24a, and I think I'm running php 4.4.7 (typing php -v whilst in my document root in terminal returns version 4.4.7).
    I now want to use the latest version of php. However, I can't remember if I upgraded php when I was installing MySQL etc. If not, is it possible that I installed the latest version, and I'm just not using at the moment (which could be why terminal is saying it's version 4.4.7)? Is there anyway to check for dormant versions of php or to switch over to running a different version?
    If I don't have it, I need to install it. Is there an easy way of doing this via an installer? Is there anything I need to watch-out for whilst I'm attempting this feat?
    Also, does Leopard bring many advancements on the server front, i.e. Apache 2, php 5, MySQL etc, which might save me some hassle if I just go through the inevitable OS upgrade sooner rather than later?
    Any help is much appreciated.

    I now want to use the latest version of php. However, I can't remember if I
    upgraded php when I was installing MySQL etc. If not, is it possible that I
    installed the latest version, and I'm just not using at the moment (which could
    be why terminal is saying it's version 4.4.7)? Is there anyway to check for
    dormant versions of php or to switch over to running a different version?
    Well you could try this in terminal:
    <pre style="font-family: monospaced;">locate php</pre>
    It should show you nearly everything associated with php. As far as what the php version command lists this only picks up the CLI version of php not necessarily whats running on the web server. throw a php file in your webroot with the following code in it to see what the server is using:
    <pre style="font-family: monospaced;"><?php phpinfo(); ?></pre>
    That will give you the lowdown on what Apache is configured with. this is goign to depend on what mod_php is being used.
    Generally i wouldnt upgrade anything that lives in the system as you never know if it might get overwritten or updated when a system update comes down from apple. A better practice is to install the version you want to use to /usr/local/<dirname> so that the installations are isolated and manageable.
    If I don't have it, I need to install it. Is there an easy way of doing this via
    an installer? Is there anything I need to watch-out for whilst I'm attempting
    this feat?
    I generally use the php packages from www.entropy.ch just so i dont have to bother with compiling. My versions of Ruby, Apache 2.0.x and Apache 2.2.x i compiled myself, along with an upgraded version of Python and alot of other libraries.
    Then you can jsut make some changes to configuration files to use the versions you want. However if you use the entropy.ch packages of php as i suggested the installer takes care of the configuration changes for you. Jsut make sure you grab the one for the proper version of apache youre going to be using it with.
    Additionally you could always get Mac/DarwinPorts - whatever its called now... this is a package manager like apt-get or yum under linux. It fetaches the package for you from a repository, and installs it. I dont use these because they use a different dir structure than standard Darwin - ie. the create the /opt folder and install under this. I dont really like that so i dont use them - but that isnt going to cause you any problems, its jsut a preference thing.
    Also, does Leopard bring many advancements on the server front, i.e. Apache 2,
    php 5, MySQL etc, which might save me some hassle if I just go through the
    inevitable OS upgrade sooner rather than later?
    I know it comes with apache 2. I think it may also come with php 5.1.6 (5.2.x is avialable though).. not sure about MySQL at all...

  • Enable PHP and apache!

    Hello,
    Is there a simple way to enable php and apache on my new imac? So I can test my website locally. Hopefully its not a lot of steps. I have seen a lot of tutorials by using google. But they involve terminal and I don't know that well to be able to mess with it. I don't want to ruin my computer. So any help would be appreciated.
    Thanks,
    Kash_Money

    And to answer your first question, "how can I use a .html extension page" see http://discussions.apple.com/thread.jspa?messageID=5850167&#5850167
    which is, however, for Tiger. On Leopard, the relevant file is /etc/apache2/httpd.conf and it turns out that /etc/apache2/other/php5.conf is even more relevant for exactly what you want.
    Specifically, first read the first paragraph therein for why you should do something else instead. However, the hopefully not too crazy instructions (sorry, but the only way I know how uses the Terminal and emacs, so due to your Terminal-phobia I'll give detailed instructions and hope I'm not insulting you too much), will be for what you want, not for what I think you should do. The Terminal+emacs instructions are needed because /etc/ is a hidden directory owned by root, which makes it hard to use TextEdit to edit it.
    So open a Terminal , and type
    sudo emacs /etc/apache2/other
    emacs is a text editor that works inside the Terminal, and which, for the uninitiated, has weird key bindings. You'll probably see something like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Press the down arrow key, ctrl-e, and type " .html". The file contents should now look like
    <pre style="background: #eee">
    <IfModule php5_module>
    AddType application/x-httpd-php .php .html
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule>
    </pre>
    Type ctrl-x ctrl-s to save, and then ctrl-x ctrl-c to exit.
    Restart the web server, either by typing
    sudo apachectl restart
    or by going into System Preferences and unchecking, then checking web sharing.

  • Get Error on AM 7.0 do SSO on MS IIS 6.0 and Apache 2.0x

    Hi...
    I install AM 7.0/Sun Web 6.1 on Window (Java ES4). And I try to setup SSO between MS IIS 6.0 and Apache 2.0. I don't know how config in the AM by using amserver (web admin).
    I already complete install Policy Agent for MS IIS and Apache 2.0 and both of web was protected.
    I get the error msg on AM dubug log below :
    IIS :
    2006-06-26 22:56:18.376 Debug 3876:157ae90 AuthService: HTTP Status = 200 (OK)
    2006-06-26 22:56:18.376 Debug 3876:157ae90 AuthService: Http::Response::readAndParse(): No content length in response.
    2006-06-26 22:56:18.376 Error 3876:157ae90 AuthService: AuthService::processLoginStatus() Exception message=[Authentication Failed!!] errorCode='107' templateName=login_failed_template.jsp.
    2006-06-26 22:56:18.376 Error 3876:157ae90 PolicyEngine: am_policy_evaluate: InternalException in AuthService::processLoginStatus() with error message:Exception message=[Authentication Failed!!] errorCode='107' templateName=login_failed_template.jsp and code:3
    2006-06-26 22:56:18.376 Warning 3876:157ae90 PolicyAgent: am_web_is_access_allowed()(http://w2k3.sunth.com:81/index.html, GET) denying access: status = Access Manager authentication service failure
    2006-06-26 22:56:18.376 Debug 3876:157ae90 PolicyAgent: am_web_is_access_allowed(): Successfully logged to remote server for GET action by user unknown user to resource http://w2k3.sunth.com:81/index.html.
    2006-06-26 22:56:18.376 Info 3876:157ae90 PolicyAgent: am_web_is_access_allowed()(http://w2k3.sunth.com:81/index.html, GET) returning status: Access Manager authentication service failure.
    2006-06-26 22:56:18.376 Debug 3876:157ae90 PolicyAgent: HttpExtensionProc(): status after am_web_is_access_allowed = Access Manager authentication service failure (3)
    2006-06-26 22:56:18.376 Error 3876:157ae90 PolicyAgent: HttpExtensionProc(): status: Access Manager authentication service failure (3)
    Thank you very much for your support
    Wut

    Hi ,
    I was installed and configured policy agent successfully.while i am trying to access the application url i am getting following error.
    I am using IIS6.0 and access manager 7.1.
    Error 2824:15b9918 AuthService: AuthService::processLoginStatus() Exception message=[Application user ID is not valid.] errorCode='107' templateName=login_failed_template.jsp.
    2009-03-10 00:03:05.828 Error 2824:15b9918 PolicyEngine: am_policy_evaluate: InternalException in AuthService::processLoginStatus() with error message:Exception message=[Application user ID is not valid.] errorCode='107' templateName=login_failed_template.jsp and code:3
    2009-03-10 00:03:05.828 Warning 2824:15b9918 PolicyAgent: am_web_is_access_allowed()(http://fcs-ylwkuzfoz1q.ramesh.com:99/website.html, GET) denying access: status = Access Manager authentication service failure
    2009-03-10 00:03:05.828 Debug 2824:15b9918 PolicyAgent: am_web_is_access_allowed(): Successfully logged to remote server for GET action by user unknown user to resource http://fcs-ylwkuzfoz1q.ramesh.com:99/website.html.
    2009-03-10 00:03:05.828 Info 2824:15b9918 PolicyAgent: am_web_is_access_allowed()(http://fcs-ylwkuzfoz1q.ramesh.com:99/website.html, GET) returning status: Access Manager authentication service failure.
    2009-03-10 00:03:05.828 Debug 2824:15b9918 PolicyAgent: HttpExtensionProc(): status after am_web_is_access_allowed = Access Manager authentication service failure (3)
    2009-03-10 00:03:05.828 Error 2824:15b9918 PolicyAgent: HttpExtensionProc(): status: Access Manager authentication service failure (3)
    2009-03-10 00:03:05.828 Debug 2824:15b9918 PolicyAgent: OnSendResponse(): HTTP Status code is 500
    can any one please help me to resolve this.
    Thanks
    Ramesh Kumar GV

  • Configuration issue in IE as Document mode: 10 and User agent String: Internet Explorer 8

    Hi,
    I have a telerik rad popup window performing some input operation. The problem is when I use the configuration in IE as Document mode: 10 and User
    agent String: Internet Explorer 8, scroll bars appear in the window from nowhere. It is working fine with every other configuration of IE. I've also used a separate stylesheet for IE 8 but it won't apply in this case. 
    Here are the screen shots of the window.
    Actual view
    With Scorllbar
    Please if anybody could suggest a solution for this weird problem it would be a great help.
    Thanks in advance.
    Neelesh

    Hi,
    It seems we need to talk with the site developers to determine how the sheet would display with different IE user agent string.
    Regarding the user agent string changes, please take a check with the following article:
    Introducing IE9’s User Agent String
    The Internet Explorer 8 User-Agent String (Updated Edition)
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Installing Coldfusion 9 and Apache 2.2 on Windows Server 2008 R2 Standard

    I'm having issues getting ColdFusion 9 working with Apache 2.2 on Windows Server 2008 R2 Standard.
    The server is brand new and it's a fresh install of Apache and ColdFusion 9.
    Having installed Apache, I tested the web server and it was working fine, so I proceeded to install ColdFusion 9. I attempted to restart the Apache server through the Apache Service monitor, only to get the error dialog box 'The requested operation has failed'.
    On closer examination of the Windows error log, I saw the following error:
    The Apache service named  reported the following error: >>>
    httpd.exe: Syntax error on line 488 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so into server: The Apache service named is not a valid Win32 application.
    I updated the ColdFusion installation to 9.0.1 in case there was an issue with version 9.0 and Apache. Still no joy.
    After a bit of research, I thought perhaps there was an issue with the mod_jrun22.so file (since when I commented out the reference to that file from the Apache config file, the Apache HTTP server started without any problem). I tried replacing the mod_jrun22.so with the 32 bit version (extracted from the wsconfig.jar file), but that made no difference either.
    I have tried a number of things. I have run wsconfig and uninstalled all web server connectors and then re-created them.
    I have to use Apache and IIS is not an option (I use rewrite rules extensively in an existing live installation and have many sites set up in a vhosts file), so please - no suggestions to use IIS instead.
    The system requirements on http://www.adobe.com/sea/products/coldfusion/systemreqs/ state that Coldfusion 9 will work with Apache 2.2.17 and later on Windows 64 bit, so why am I having issues with a brand-new installation on a 'virgin' server?
    Any help would be much appreciated. I have spent hours trawling the Web for solutions.

    I missed an important detail in my opening post. My Coldfusion 9 version is 64 bit - not 32.
    OK. Simple solution to this. I'll put it here for other peoples' reference.
    To cut a long story short, after phoning Adobe support this morning I was told that you can't run a 64 bit version of ColdFusion with a 32 bit web server. In essence, the web server software and the ColdFusion server software must be the same - either 32 or 64 bit.
    Apache is only officially released as a 32 bit version, but there is a 64 bit unofficial version available from http://www.blackdot.be/?inc=apache/binaries, so I downloaded that and installed it, based on the instructions at http://www.elxis.org/guides/developers-guides/64bit-apache-php-mysql-windows.html.
    Once I'd installed the 64bit version of Apache, the installation of Coldfusion 9 64 bit went smoothly and all appears to be working just fine now (well, I can get to the ColdFusion Administrator page and I have successfully updated the server software to ColdFusion 9.0.1).
    The fact that you can't mix different 'bit' versions of software in this way may be obvious, but it wasn't obvious to me. Having been an early adopter of a 64 bit version of Vista on my own PC, I never experienced these kind of problems before. Software installed itself into the corresponding locations on my PC without any problem and just worked. This is the first time I've run into this problem.
    Unfortunately, there doesn't appear to be any information regarding this very important requirement on the system requirements pages, so I suggested to the support engineer that he may want to make the recommendation that the page is amended to clarify the situation: e.g.
    IMPORTANT: 64 bit versions of ColdFusion require 64 bit versions of web server software to function. You can not mix 32 bit and 64 bit versions of web servers and ColdFusion server.
    Hope this helps someone else out.

  • How to update PHP, MySQL or Apache

    The Mac OS X 10.6.2 system does not include the latest versions of PHP, MySQL or Apache.
    What is the recommended update procedure for PHP, MySQL or Apache:
    a) automatically by Mac OS X system (is this possible?) or
    b) manually by the administrator (are there any documentations?)
    Many thanks.
    Actual system versions:
    Mac OS X 10.6.2
    MySQL 5.0.82
    Apache 2.2

    Hi, Thanks for your answer.
    That sounds Apple do not seriously release updates of third party packages shipped with the system (like Apache, mySQL ...) very often.
    To use month or year old packages in a web environment is a big risk, e.g. mySQL actual official version is V5.50 / mySQL Version shipped and updated by Mac OS X 10.6.2 Server is V5.0.82).
    The same with Apache and PHP, both are packages included in Mac OS X Snow Leopard Server product by Apple and are included in a old version.
    And when manually updates by the administrator of the server system do not work well or are not supported by the OS X Server system (as I understand your posting), the administrator can not act to improve and secure the system.
    That can only lead to one conclusion: Apple's Mac OS X Snow Leopard Server should not be used in a productive, internet faced web environment.
    Is this true? I do not want to believe this!?
    Is there really no official supported or documented procedure by Apple to keep the integrated third party components updated?
    I'd like to prefer Mac OS X Server odd Linux distribution because it seems more handy to administrate and to use, e.g. tools like Server Admin. These tools are an advantage of Mac OS X Server.

  • PHP 5.0.4, php apps and zip file problems

    I use various opensource web apps that allow for files to be uploaded in zip format. The app then unzips the files and does what it needs to do with them. ie: Gallery2 uploading photos that are zipped up and placing the enclosed photos into the gallery.
    Anyway, this was working very well with the base install of OS X Server's PHP4.? and Apache 1.4.3
    I upgraded to PHP 5.0.4 using Entropy PHP (recommended by another OS X Server admin). Anyway, I lost the ability to handle the zip files. I am unsure what to look for.
    phpinfo() shows the following about compressed files:
    Configure Command
    './configure' '--prefix=/usr/local/php5' '--with-config-file-path=/usr/local/php5/lib' '--with-apxs' '--with-iconv' '--with-openssl=/usr' '--with-zlib=/usr' '--with-mysql=/Users/marc/svn/entropy/php-module/src/mysql-standard-*' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-libxml-dir=/usr/local/php5' '--with-xsl=/usr/local/php5' '--with-pdflib=/usr/local/php5' '--with-pgsql=/Users/marc/svn/entropy/php-module/build/postgresql-build' '--with-gd' '--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-zlib-dir=/usr' '--with-freetype-dir=/usr/local/php5' '--with-t1lib=/usr/local/php5' '--with-imap=../imap-2002d' '--with-imap-ssl=/usr' '--with-gettext=/usr/local/php5' '--with-ming=/Users/marc/svn/entropy/php-module/build/ming-build' '--with-ldap' '--with-mime-magic=/usr/local/php5/etc/magic.mime' '--with-iodbc=/usr' '--with-xmlrpc' '--with-expat-dir=/usr/local/php5' '--with-iconv-dir=/usr' '--with-curl=/usr/local/php5' '--enable-exif' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8' '--enable-ftp' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-mbstring' '--enable-calendar' '--with-bz2=/usr' '--with-mcrypt=/usr/local/php5' '--with-mhash=/usr/local/php5' '--with-mssql=/usr/local/php5' '--with-fbsql=/Users/marc/svn/entropy/php-module/build/frontbase-build/Library/ FrontBase' '--enable-openbase_module'
    Registered PHP Streams
    php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
    BZip2 Support Enabled
    BZip2 Version 1.0.2, 30-Dec-2001

    I wish I could be as optimistic about your configuration, you have/had more than two issues, even after building a PHP that would work for you it had to be reconfigured to obtain optimal performance.
    I noticed other errors in your logs but since they weren't specifically related to your issue with zip or PHP running properly I place a low priority on them and ignored them.
    I eventually found the build issue with the entrophy PHP however Mark wasn't interested in the fix since it basically performed the majority of the tasks that were expected and everything else was considered experimental with no real support provided.
    You did get a better PHP built in the ADE (Apple Developer Environment) targeted specifically for your CPU (although they are universal binaries) and I included some modules I wrote myself that provide some (IMHO) key functionality for a production web service like scanning uploaded files for viruses and the ability to generate RRDTool graphs natively without slowing the process down by having to rely on external resources.
    While I have thoroughly tested the modules I wrote, I have not had the time (or the help) to write proper documentation for them so I might later provide some sample PHP scripts since they are fairly simple to implement.
    The biggest problem I saw was that you had a lot of nice toys but none of them were designed to work smoothly together and the entrophy PHP is a good alternative for someone who needs more than what apple provides but isn't capable of generating something that integrates well in the environment.
    Also to note, the entrophy (or Server Logistics) PHP is an all-purpose/general-purpose solution and isn't ever going to be optimal for any specific architecture due to the build process which is why the one I provided works significantly better, it was built specifically for both architectures individually then combined into a single binary giving you the ultimate performer for either architecture without sacraficing performance or degrading functionality.
    I tend to use as much Apple provided software as I can since it makes no sense to me to build and install any software that is already available and built specifically for the environment other than to waste disk space, freetype is a good example, any that is provided will never include the same features and functionality as the apple provided installation yet all PHP makers seem to build the basic bare-bones freetype and build their PHP off of it expecting to achieve the same feature-rich functionality which it clearly isn't capable of.
    They also include a lot of features which are never used and I have removed and/or substituted some of these in an attempt to provide a more usefull set of features and functionality and I include a very complete pear installation which also contains just about every feature and functionality you would ever require without providing anything that that would be considered fluff.
    I've been watching the performance of the installation for a couple of days now and I'm more than satified that it's a solid performer for you so smile and enjoy, santa was nice to you this year.

  • New version available for Intermedia Clipboard Utility and Web Agent for Oracle9i?

    Hi!
    I have downloaded the files from the OTN website under the
    section "interMedia Clipboard Utility & Web Agent Utility for
    NT". After installing the files, it crashes my Oracle HTTP
    Server on Apache. I am currently testing stuff on Oracle 9i and
    I guess the utility that I downloaded is for Oracle 8i. Is new
    the for Oracle 9i available already? How do I download it?
    Thanks!
    Lily

    Lily,
    The interMedia Clipboard and Web Agent are not supported on
    Oracle 9i. For information on alternatives to the
    Web Agent, please see the interMedia software page on OTN:
    http://otn.oracle.com/software/products/intermedia/content.htm
    The closest equivalent of the Web Agent is the interMedia Code
    Wizard for the PL/SQL Gateway.
    Regards,
    Rajiv

Maybe you are looking for