Re: PHP apps

From: Date: Sun, 07 May 2006 14:27:23 +0000
Subject: Re: PHP apps
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-17314@lists.php.net to get a copy of this message
From: Peter Hodge <toomuchphp-phpinstall@yahoo.com> Reply-To: toomuchphp-phpinstall@yahoo.com To: php-install@lists.php.net Subject: Re: [PHP-INSTALL] PHP apps Date: Sun, 7 May 2006 12:04:50 +1000 (EST) Hi Jim, If you're getting a blank page from PHP, it could also be a PHP error which isn't being shown. The easiest way to see if PHP is running it to put a phpinfo file into your PHP folder and browse to it: PHPapp1/phpinfo.php [1 line of code]: <?php phpinfo(); ?> Then browse to www.xxx.org/PHPapp1/phpinfo.php To see if an error is occurring in your other scripts (which would also result in a blank page), edit your php.ini file (/etc/php.ini usually) and set the following options: log_errors = On error_log = /tmp/php_errors.log <- make sure this file is chmod 777 And then see if PHP generates any error messages. Some developers find it easier (though it is not as secure on a production box) to just set this option in php.ini: display_errors = On ... and then error messages are included in the page output. regards, Peter --- Jim Douglas <jdz99@hotmail.com> wrote:
From: Brad Kowalczyk <brad@ibiscode.com> To: Jim Douglas <jdz99@hotmail.com> CC: php-install@lists.php.net Subject: Re: [PHP-INSTALL] PHP apps Date: Sat, 06 May 2006 16:53:55 +1000 Jim Douglas wrote:
To all, I have a JSP/Servlet based webapp that will rely on 2 diffferent PHP
apps
for specific services. I have everything working with the JSP/JAVA webapp and the first PHP app, but can't get the second one working. With my current config I have to redirect via html from the PHP
directory
to get to the JSP based app, I would prefer not to but that was the
only
way I could the PHP app integrated. <meta http-equiv="refresh" content="1;URL=http://www.xxx.org/mydir/"> Does the PHP bridge need to have a PHP directory as the default? How can I get the bridge to work so I can deploy several PHP apps to Tomcat ? I really need to be able to set the JSP/JAVA webapp as the default directory and access the PHP apps like this, www.xxx.org/PHPapp1, www.xxx.org/PHPapp2 etc....is this possible? This is my http.conf file <VirtualHost *:80> ServerAlias xxx.org *.xxx.org DocumentRoot /usr/opt/tomcat/webapps/PHPapp Alias / /usr/opt/tomcat/webapps/mywebapp/ </VirtualHost> Thanks, Jim
can't you simply create another Alias for each of the php apps? eg. Alias /app1 /path/to/app1 Alias /app2 /path/to/app2 and so long as apache knows to process .php files through mod_php all
is
sweet? I could be way off here and probably am, seems too obvious, I
have
never had to deal with a tomcat setup before. Cheers, Brad Kowalczyk
When I try this, DocumentRoot /usr/opt/tomcat/webapps Alias /myJSPapp /usr/opt/tomcat/webapps/myJSPapp/ Alias /PHPapp1 /usr/opt/tomcat/webapps/PHPapp1/ I can browse www.xxx.org/myJSPapp, no problem When I browse www.xxx.org/PHPapp1 I get a blank screen, "view sourse" has no code. Any suggestions? Thank, Jim ____________________________________________________ On Yahoo!7 Dating: It's free to join and check out our great singles! http://www.yahoo7.com.au/personals
Test page come back fine, nothing in the error log...thanks for your help. Jim

« previous php.install (#17314) next »