ARD 3 and Apache with PHP

Hi all, sorry if this is a stupid question, but...
I'm a media developer and my G5 workstation died. Until it can be replaced, I was given an old Mac Pro running Remote Desktop 3. I've installed all my apps and things were going well until I tried testing a Flash app that made calls to PHP scripts.
Unfortunately, I can't get the machine to run the PHP scripts. I've uncommented the necessary lines in the config file, but for some reason it just won't work. In fact, I don't even see the Apache service running in the Services>File Sharing menu.
Is this because I'm running Remote Desktop 3? Can ARD 3 run PHP scripts?

ARD should have nothing to do with PHP scripts. While I can't say with certainty that having ARD on the system can't in any way interfere with PHP, I've not heard of it doing so.
Can ARD 3 run PHP scripts?
ARD doesn't "run" anything, per se. It can launch applications and open documents using the Open command or UNIX command line, if that's what you mean.
I don't even see the Apache service running in the Services>File Sharing menu.
If you're running Mac OS X Server on that system, Apache doesn't to the best of my recollection appear under File Sharing in any recent version of Mac OS X Server. it appears as a separate service titled "Web".
Message was edited by: Dave Sawyer

Similar Messages

  • DI Server installation and connection with PHP

    hello,
      We've installed DI Server, started it, but the WSClient file comming with the installation doesn't work.
    a) Is the IIS needed for the DIServer to work?
    If not, what do I need to do to be able to connect to the DIServer. There's no WSDL file with the DIServer.
    b) Do I need to create my own WSDL file and put it on a Web folder?
    I say this because I'm trying to connect with PHP to the server and PEARClient from PHP needs an URL (normally the WSDL file) to connect. It's just too confusing and there is no much help in the documentation.
    thanks and greetings,
    Guillem Barnolas.
    www.softime.es

    DI server provides you a simple COM interface that
    accepts SOAP commands and returns you SOAP reply.
    The format of these SOAP messages is in the SDK
    documentation.
    You should build your own web infrastructure on
    top of this mechanism.

  • Create User and Password with PHP

    I have a PHP script that can create a user in eDirectory using the
    ldap_add function. I can successfully add the user, but I don't know how
    to set the password. How can I accomplish this with PHP? I know I can
    use the ICE utility, but I would prefer not to. Can I do this with the
    native functions that are builtin to PHP?
    blntskul
    blntskul's Profile: http://forums.novell.com/member.php?userid=10433
    View this thread: http://forums.novell.com/showthread.php?t=370448

    Found it. It's the 'userpassword' attribute.
    blntskul
    blntskul's Profile: http://forums.novell.com/member.php?userid=10433
    View this thread: http://forums.novell.com/showthread.php?t=370448

  • Apache with PHP Fails to Validate in Sun Cluster

    Greetings,
    I have Sun Cluster 3.2u2 running with two nodes and have Apache 2.2.11 running successfully in failover mode on shared storage. However, I just installed PHP 5.2.10 and added the line "LoadModule php5_module modules/libphp5.so" to httpd.conf. I am now getting "Command {/global/data/local/apache/bin/apachectl configtest >/dev/null 2>&1} failed: httpd cannot parse httpd.conf, Failed to validate configuration." when I try to start the resource. I can start Apache just fine outside of the cluster, and when I run configtest manually, it replies "Syntax OK".
    Anyone have any ideas why the Cluster software doesn't like the PHP module even though configtest passes with Syntax OK?
    Many thanks,
    Tim

    Found it. Sun Cluster was apparently smart enough to know I was missing the correct PHP AddType lines in httpd.conf.

  • Connection between fmsedge and apache with http tunneling

    I configured my FMS for listening on port 80 and redirect non-FMS requests to apache on port 8080 in the same server machine.
    It works well, but I've noticed several tcp connections from fmsedge to apache in Established status (it is simple to see through "netstat -nap | grep 8080" command) that stay forever (until FMS stop or restart).
    With a sniffer capture I seen that sometime the fmsedge requests to apache a tcp connection but it (fmsedge) doesn't use this connection. Then the apache server send a syn,ack tcp request and always fmsedge send a dup ack tcp response. So, the connection is active but not used, then apache doesn't close it.
    The kind of requests for apache are http get to js or php files.
    I don't understand why fmsedge create these connections.
    Am I misteking some configuration? Or may be it is a bug of fmsedge? Anybody have the same problem? Anybody can help me?

    This is causing an issue for us: after a litle time, the server is blocked because too many connection are established. Any other new request to the service is not accepted and it is necessary to restart the server to resolve, but this action of course close all the active connection...

  • How to get system time and date with PHP

    Dear Mr.Craig,
      Thanx a lot. We are running SRM 5.0 (RAMP - Implementation).
      My initial requirement is to write a server-side script to display server date and time. Could you give more inside on how to achieve it?
    Regards,
    Deva.

    Perhaps that will help.
    [code]
    <html>
    <h1>Access System time and date</h1>
    <?
         // saprfc-class-library     
         require_once("saprfc.php");
         $sap = new saprfc(array(
       "logindata"=>array(
       "ASHOST"=>"localhost"          // application server
       ,"SYSNR"=>"00"                    // system number
          ,"CLIENT"=>"000"               // client
          ,"USER"=>"bcuser"               // user
          ,"PASSWD"=>"minisap"          // password
         ,"show_errors"=>false               // let class printout errors
         ,"debug"=>false)) ;                     // detailed debugging information
         $result=$sap->callFunction("MSS_GET_SY_DATE_TIME",
            array(     array("EXPORT","SAPTIME",array()),
               array("EXPORT","SAPDATE",array())));
         if ($sap->getStatus() == SAPRFC_OK) {
        echo "Time: ".$result["SAPTIME"];
        echo "<br>Date: ".$result["SAPDATE"];
        echo "<br>or<br>";
        echo "Server is showing: "
             .substr($result["SAPDATE"], 0, 4)
             ."-".substr($result["SAPDATE"], 4, 2)
             ."-".substr($result["SAPDATE"], 6, 2)
             ." and "
             .substr($result["SAPTIME"], 0, 2)
             .":".substr($result["SAPTIME"], 2, 2)
             .":".substr($result["SAPTIME"], 4, 2);
         } else {
              $sap->printStatus();
         $sap->logoff();
    ?>
    [/code]

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • WS7 with PHP for mass hosting: security?

    Hello everybody! I would like to run WS7u1 on our solaris10 T1000 for mass hosting. Unfortunately, it seems that it is not realistic:
    - A copy of WS7u1 plus a copy of PHP use 400MB of disk space in a non-global zone, which greatly limits the number of sites that can be hosted on a 80GB disk.
    - Hosting without zones is insecure with PHP as FastCGI, and slow with PHP as CGI. Unfortunately, WS7u1 does not support suexec
    What would you recommend?
    I would particularely like to know if i can run fastcgi + php with each php instance setuid to the customer's userid.
    Thank you!
    chris

    Hmm.
    I'm thinking that the solution I describe in the blog entry could work with one minor addition: chroot jails for each PHP engine.
    I haven't tested this, but I suspect that something like:
    Service fn=responder-fastcgi
            app-path="/export/WS7/third-party/php/php_fcgi"
            bind-path="$(lc($urlhost))"
            type="*magnus-internal/fastcgi*"
            app-env="PHPRC=/path/to/$(lc($urlhost))/config"
            app-env="PHP_FCGI_CHILDREN=10"
            app-env="PHP_FCGI_MAX_REQUEST=400"
            chroot=/path/to/$(lc($urlhost))/might work (after, of course, providing the appropriate chroot environment for PHP at each user's directory). You may need to fudge around witht he bin-path to get the path right, etc, but I think in general this would do what you want.
    You could also use suexec (I think) as described earlier to make sure that each PHP instance ran with its own UID. Maybe combine that with the lookup() obj.conf parameter to store a table of UID -> VS mappings.
    I think some experimentation is needed, but chroot or suexec both seem like good paths to take if you want to make certain that the PHP engines are unable to interact with each other.

  • DW CS4 - Design/Live view not available with PHP

    I am working with PHP documents but both Live View and Design View are grey and unavailable with PHP documants open. I am using MAMP and have set up local info and testing server in the site set up dialog several times myself and with the help of some web search with no difference. Any thoughts on what may be some things to check would be greatly appreciated.

    Hoooo Leeeee Moe Leeee...
    QUOTE"
    Have you changed your preferences to open PHP pages in Code view?
    In the File Types/Editors category of Preferences, if you add .php to the list of file name extensions in "Open in code view", it disables Design view and Live View for that type of file.
    I can not believe I searched for over 30 minutes to find out that adding .php to this field; disables one of the ONLY reasons I purchased CS5.
    Just for giggles, why would it be designed like this? "Open in code View" = a prefrence to what screen type you see, not, "I want to disable CS5 to pre CS2 version"...
    Well, just my two cents.  Now that I know, I will never do that again... So, Next question.  Is there a way to make Dreamweaver by default open in code view, without setting the tempting box to do it for you?
    Thanks ahead of time. By the way, I am greatful that someone has the answers! and I am glad that person is you sir = Enter the Adobe Expert.

  • Apache/MySQL/PHP and Mountain Lion

    I was about to buy Mountain Lion, but I just read by a reviewer that there is an issue with the webserver or websharing capabilities of it. The reviewer was saying he/she had to go into the terminal and launch it from there!
    Is anybody else having issues with developing database driven sites on Mountain Lion, or are you getting on OK with it?
    I currently use xammp as my apache/mysql/php server. Is anybody on Mountain Lion using xammp, if not, what equivalent are you using?
    Thanks.
    Mat

    Starting Apache is very easy. Simply type the following into a terminal:
    sudo apachectl start
    I think that they removed the tick box because it's so easy to do from terminal, and not something that most OSX users need.
    As SnakEyez02 mentioned, using a package like MAMP or XAMPP doesn't require this. Those apps run their own Apache

  • 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?

  • Is it possible to work with PHP pages in Oracle ERP R12 and how to set up ?

    Hi,
    Is it possible to work with PHP pages in Oracle ERP R12 and how to set up ?
    Regards
    Nandhakumar P

    Hi Nandhakumar,
    To be able to access any Oracle database using PHP you require the following:
    A server with Apache 2+  (Unix, windows etc)
    PHP enabled using OCI8
    tnsnames.ora
    Oracle instant client and associated libraries
    This gives you direct access into oracle database. As for E-Business, you will compromise the security and safty of of R12 by going in through php. Oracle is not likely to support it either.
    I have got a apache/php/Oracle XE working on a test environment and Ithe performance is not a big issue. If you must I would hughly recommend Oracle Linux for quality and security.

  • 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.

  • ColdFusion 9.0.1 Enterprise on Apache 2.2 conflicts with PHP 5

    I am using educational version of ColdFusion 9 (obtained on http://freeriatools.adobe.com), installed in Enterprise Multiserver Configuration.
    Web server: Apache 2.2.16 with PHP 5.3.3.
    OS :Windows XP Professional X86
    Database: MySQL 5.1
    When I have installed ColdFusion 9.0.1 Updater, I can't start Apache 2.2.16. Services console returns error message and launches debugger.
    But, when I have removed PHP 5, it starts! Besides, when I have reinstalled PHP, it can't start again.
    I don't know why it doesn't works.

    Is anything logged to any of these:
    * the Apache logs
    * the CF logs
    * the JRun logs
    * the PHP logs
    I would imagine there'd be something in one or more of those which will tell you what the problem is.
    Adam

Maybe you are looking for