Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Delphi4PHP NNTP Newsgroups > embarcadero.public.delphiphp.deployment
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

embarcadero.public.delphiphp.deployment This group is for discussing deployment of applications with Delphi for PHP.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11th September 2008, 15:53
Rainer Kerber
Guest
 
Posts: n/a
Default application doesn't run at web server

I have made a simple web application. After deploying on a web server I get the following error:

*Quote:*

*Warning: require_once(vcl/PEAR/peardatagrid.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\web\104005\beta.kerber-netz.de\Datenbank\vcl\vcl.inc.php on line 145*


*Fatal error: require_once() [function.require]: Failed opening required 'vcl/PEAR/peardatagrid.inc.php' (include_path='c:\system\web\php\includes') in D:\web\104005\beta.kerber-netz.de\Datenbank\vcl\vcl.inc.php on line 145*

At my local computer it works fine, but not at the web server. The application is very simple: 4 components Komponenten: Database, Datasource, Table und DBGrid. And the Database is MySQL.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11th September 2008, 16:33
Jose Leon
Guest
 
Posts: n/a
Default Re: application doesn't run at web server

> {quote:title=Rainer Kerber wrote:}{quote}
> I have made a simple web application. After deploying on a web server I get the following error:
>
> *Quote:*
>
> *Warning: require_once(vcl/PEAR/peardatagrid.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\web\104005\beta.kerber-netz.de\Datenbank\vcl\vcl.inc.php on line 145*
>
>
> *Fatal error: require_once() [function.require]: Failed opening required 'vcl/PEAR/peardatagrid.inc.php' (include_path='c:\system\web\php\includes') in D:\web\104005\beta.kerber-netz.de\Datenbank\vcl\vcl.inc.php on line 145*
>
> At my local computer it works fine, but not at the web server. The application is very simple: 4 components Komponenten: Database, Datasource, Table und DBGrid. And the Database is MySQL.


You need to modify your php.ini to add the path where PEAR resides, inside the VCL folder, to the include_path setting, if you cannot modify that file, let me know and I will provide an alternative method.

Regards
--
José León
qadram software
C/Juan Ramón Jiménez, 15 Entlo. 2
03203 Elche ALICANTE (SPAIN)
T: +34 965 45 48 48
F: +34 965 45 48 48
M: +34 618 28 13 69
http://www.qadram.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12th September 2008, 10:44
Rainer Kerber
Guest
 
Posts: n/a
Default Re: application doesn't run at web server

Hello,

> {quote:title=Jose Leon wrote:}{quote}
> You need to modify your php.ini to add the path where PEAR resides, inside the VCL folder, to the include_path setting, if you cannot modify that file, let me know and I will provide an alternative method.


It is not my own server. It would be nice, when you write the alternative method.

Greetings

Rainer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12th September 2008, 12:30
Jose Leon
Guest
 
Posts: n/a
Default Re: application doesn't run at web server

> {quote:title=Rainer Kerber wrote:}{quote}
> Hello,
>
> > {quote:title=Jose Leon wrote:}{quote}
> > You need to modify your php.ini to add the path where PEAR resides, inside the VCL folder, to the include_path setting, if you cannot modify that file, let me know and I will provide an alternative method.

>
> It is not my own server. It would be nice, when you write the alternative method.
>
> Greetings
>
> Rainer

Then you will need to do it from your script, a nice place would be vcl.inc.php, checkout this page:

http://es.php.net/manual/en/function...clude-path.php

Specifically this sample:

<?php
$path = '/usr/lib/pear';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>

And change $path by the real path where the subfolder PEAR is located.

Regards
--
José León
qadram software
C/Juan Ramón Jiménez, 15 Entlo. 2
03203 Elche ALICANTE (SPAIN)
T: +34 965 45 48 48
F: +34 965 45 48 48
M: +34 618 28 13 69
http://www.qadram.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12th September 2008, 18:15
Rainer Kerber
Guest
 
Posts: n/a
Default Re: application doesn't run at web server

Hello.

> {quote:title=Jose Leon wrote:}{quote}
> You need to modify your php.ini to add the path where PEAR resides, inside the VCL folder, to the include_path setting, if you cannot modify that file, let me know and I will provide an alternative method.


The provider has changed the settings. Now I get get the following error:

> {quote:title=Error Message:}{quote}
> The Provide has changed the settings. But now, I get the next error:
> Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?
> URL:file///c:/system/web/php/includes/vcl/xajax/xajax_js/xajax.js


The provider says, the path is correct.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 15th September 2008, 08:11
Jose Leon
Guest
 
Posts: n/a
Default Re: application doesn't run at web server

> {quote:title=Rainer Kerber wrote:}{quote}
> Hello.
>
> > {quote:title=Jose Leon wrote:}{quote}
> > You need to modify your php.ini to add the path where PEAR resides, inside the VCL folder, to the include_path setting, if you cannot modify that file, let me know and I will provide an alternative method.

>
> The provider has changed the settings. Now I get get the following error:
>
> > {quote:title=Error Message:}{quote}
> > The Provide has changed the settings. But now, I get the next error:
> > Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?
> > URL:file///c:/system/web/php/includes/vcl/xajax/xajax_js/xajax.js

>
> The provider says, the path is correct.

Does your webserver has two drive units?

Regards
--
José León
qadram software
C/Juan Ramón Jiménez, 15 Entlo. 2
03203 Elche ALICANTE (SPAIN)
T: +34 965 45 48 48
F: +34 965 45 48 48
M: +34 618 28 13 69
http://www.qadram.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 15th September 2008, 17:14
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

FWIW The path has to be visible from the web. If you can't access the files from your browsers command line then the scripts won't be able to either.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 05:10.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use