Posts: 12
Threads: 1
Joined: Nov 2010
2010-11-28, 08:53:26
(This post was last modified: 2010-11-29, 07:29:43 by macu.)
Hello! Sorry for my English, please! *confused*
I get an error during installation. When I copied all the files to my site and set proper permissions with chmod, I've tried to go to my site. Script redirected me to /admin/install.php, but I get an 404 error. When I watched logs of my server, I found this:
Quote:[Sun Nov 28 01:45:01 2010] [error] [client 188.120.225.89]
File does not exist: /home/surendil/data/www/188.120.225.89
I'm not good in PHP and configuring servers, so could you help me, please?
Please, sorry for my English ^^
Posts: 1,204
Threads: 30
Joined: Jun 2010
Make sure you uploaded all files correctly.
The best method is to upload archive, and unpack it directly on the server.
You could turn on GS debugging (in gsconfig.php) and look inside log file (data/others) what is exact problem, because log entry you showed doesn't say anything useful about missing file.
Addons: blue business theme, Online Visitors, Notepad
Posts: 12
Threads: 1
Joined: Nov 2010
yojoe, I've unpacked archive directly on the server, as you advised me. Also I've enabled debugging and I get the following:
Quote:[28-Nov-2010 13:08:40] PHP Notice: Undefined variable: SITEURL in /home/surendil/data/www/surendil.ru/admin/inc/common.php on line 97
[28-Nov-2010 05:08:41] PHP Fatal error: Call to undefined function dom_import_simplexml() in /home/surendil/data/www/surendil.ru/admin/inc/basic.php on line 149
My PHP version is 5.2.14, SimpleXML (Rev. 299016) is enabled.
What should I do now?
Please, sorry for my English ^^
Posts: 1,204
Threads: 30
Joined: Jun 2010
I've got a strange feeling that even if your php version is 5.x, server still uses 4.x.
Otherwise you shouldn't get second error.
Launch phpinfo function and see if I'm right. If yes, force php 5 to work using mod rewrite.
Make sure there are no rewrite rules already working for your domain.
Addons: blue business theme, Online Visitors, Notepad
Posts: 12
Threads: 1
Joined: Nov 2010
2010-11-29, 05:16:08
(This post was last modified: 2010-11-29, 05:24:38 by macu.)
I watched 5.x version in phpinfo()
But I'm not sure of mod rewrite, now I'll try to learn what is it and I'll try to force PHP work using it :-) Thank you very much for your advices!
Edit: If the list of loaded modules in apache2handler contains mod_rewrite, that PHP uses it, am I right? If yes, I don't know what should I do now :-) You may look configuration of my server at http://surendil.ru/phpinfo.php
Please, sorry for my English ^^
Posts: 1,204
Threads: 30
Joined: Jun 2010
You have two choices depending on method of php is running
Code: AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 .php
AddHandler cgi-php5 .php
or
Code: AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi/php5
AddHandler application/x-httpd-php5 php
The code has to be inserted at the beginning of .htaccess file, staying in root of your website's directory
Be carfeul as GS "creates" its own .htaccess, thus you might have to edit it and and one of the above rules inside it, after GS installs itself.
Addons: blue business theme, Online Visitors, Notepad
Posts: 12
Threads: 1
Joined: Nov 2010
I don't know, what method of PHP is running, so I tried both. In first case I get source code of script; in second -- my browser tries to download entire .php file :-)
I'm so sorry for my stupid questions, but I really liked GetSimple and I'd like to use it to build my own website ^^
Please, sorry for my English ^^
Posts: 1,204
Threads: 30
Joined: Jun 2010
I;m running out of ideas.
Try with
Code: AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php .html .htm
AddHandler application/x-httpd-php .html .htm
This should set php5 to handle php files, and default php engine for html files
Or use only first line
Code: AddHandler application/x-httpd-php5 .php
I can't come up with more solutions, because I don't know anything about your hosting and its config.
Maybe php5 is set as default, maybe not. Apache might as well be badly configured, and so on.
Try with a different CMS which requires simple xml and php5 to work.
This may shred some light on the problem.
Addons: blue business theme, Online Visitors, Notepad
Posts: 12
Threads: 1
Joined: Nov 2010
Thank you for your help, I can't express my gratitude for your support and help :-) Thanks a lot again!
But the problem isn't solved. I tried to exec my own script which uses SimpleXML and I get the same error. No I'll try to reinstall and reconfigure both PHP and Apache myself ^^
I'll tell you if this will work :-)
Please, sorry for my English ^^
Posts: 12
Threads: 1
Joined: Nov 2010
Yeah! dom.so wasn't installed :-)
Please, sorry for my English ^^
Posts: 1,848
Threads: 86
Joined: Aug 2009
what does the mod dom.so do?
- Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 12
Threads: 1
Joined: Nov 2010
I can be mistaken, but I think dom.so is just a runtime library, which implements DOM (DOM PHP in PHP4) extension. Following documentation, it is compiled and built in by default, but it was disabled in my web-server configuration, so the dom_import_simplexml() function (which is a part of DOM) was not available.
Please, sorry for my English ^^
|