installation in freehostia

thread: 5 messages  |  last: about 2 years ago  |  started: sunday, february 8, 2009, 3:39 pm pst


#1  |  Cloudos (Spain) Spain
Sunday, February 8, 2009, 3:39 PM PST

Hello!

I want to install qcodo in freehostia hosting. I have the next directory:

/www/pym.freehostia.com/qcodo/

In “qcodo” i have wwwroot and _devtools_cli. When I open http:///pym.freehostia.com/qcodo/ with the browser qcodo prints:



Warning: main(/pym.freehostia.com/qcodo/wwwroot//pym.freehostia.com//includes/qcodo/_core/qcodo.inc.php) [function.main]: failed to open stream: No such file or directory in /home/www/pym.freehostia.com/qcodo/wwwroot/includes/prepend.inc.php on line 22

Fatal error: main() [function.require]: Failed opening required '/pym.freehostia.com/qcodo/wwwroot//pym.freehostia.com//includes/qcodo/_core/qcodo.inc.php' (include_path='.:/usr/local/lib/php') in /home/www/pym.freehostia.com/qcodo/wwwroot/includes/prepend.inc.php on line 22


I have the next values in wwwroot/includes/configuration.inc.php:

define ('__DOCROOT__', '/pym.freehostia.com/qcodo/wwwroot/');
           define ('__VIRTUAL_DIRECTORY__', '');
           define ('__SUBDIRECTORY__', '/pym.freehostia.com/');


Where is the problem??

Thanks a lot!

#2  |  George P (Athens, GR) Greece
Sunday, February 8, 2009, 5:18 PM PST

no ending slash needs

#3  |  Cloudos (Spain) Spain
Monday, February 9, 2009, 7:06 AM PST

Thanks!

I have deleted the ending slash and it's the same...

#4  |  George P (Athens, GR) Greece
Monday, February 9, 2009, 2:05 PM PST

as i can see to work now as it is, you have to:
define ('__DOCROOT__', '/home/www/pym.freehostia.com');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__SUBDIRECTORY__', '/qcodo/wwwroot');


i believe that it will work
=====
but this is not right
you have to copy the files of wwwroot dir to your doc root dir.
you dont need _devtools_cli dir online.

first of all make a info.php in the doc root with

<?php
phpinfo
();
?>

from there you can see yours doc root directory.
pym.freehostia.com is not you doc root dir.

#5  |  Cloudos (Spain) Spain
Tuesday, February 10, 2009, 9:38 AM PST

understood! it works!

I copied the files of wwwroot dir to my doc root dir. Then:

define ('__DOCROOT__', 'home/www/pym.freehostia.com/');
           define ('__VIRTUAL_DIRECTORY__', '');
           define ('__SUBDIRECTORY__', '');


And it works :D

OK, thanks a lot !!


Well, next hole:

Opening index.php...


WARNING: magic_quotes_gpc and magic_quotes_runtime need to be disabled


Freehostia is a shared web hosting, so i can't change the file php.ini. I created a .htacess in /home/www/pym.freehostia.com/ with the next line:

php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off

But now I have a pretty 500 Internal Server Error! Why??

Thanks a lot!



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.