
10th April 2008, 14:30
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Problems with Wordpress based web page after installing Ispconfig
hello!
Is there need for extra configuration to make Wordpress based web page run on my webserver?
Before I installed Ispconfig - the web page run OK!
Now the web page returns such error:
Fatal error: Call to undefined function wp() in /wwwroot/web16/web/wp-blog-header.php on line 18
Original post in wordpress.org forum about this problem:
http://wordpress.org/support/topic/1...=8#post-730381
Can anybody help me?
|

11th April 2008, 14:01
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Reinstalled LAMP, ipsconfig.
But the same problem!
|

11th April 2008, 14:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,068
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
There is no additional configuration needed, I run several wordpress blogs on my server. I followed just these instructions to install them:
http://codex.wordpress.org/Installing_WordPress
Downloaded the wordpress tar.gz to the web folder with wget, unpacked it and then followed the installation instructions.
Which include path have you set in your php.ini file in /etc/php5/apache2/php.ini
|

11th April 2008, 21:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Any errors in Apache's error log?
Do you use PHP Safe Mode?
|

12th April 2008, 17:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
|
Originally Posted by Mole
|
I get a "topic not found" message.
|

12th April 2008, 17:43
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
http://wordpress.org/support/topic/167447
But - see my first post here, this is what I get when opening index.php.
When I try to run http://www.XXX.XX/wp-admin/install.php, I got:
PHP Fatal error: Call to undefined function __() in /wwwroot/web3/web/wp-admin/includes/file.php on line 3
This is what I see in error.log for this www and when I turn Show errors On!
|

13th April 2008, 20:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Do you know in which file the function wp() is defined?
What's the output of
Code:
ls -la /wwwroot/web16/web
?
|

13th April 2008, 21:58
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Output of:
ls -la /wwwroot/web16/web:
drwxrwxrwx 8 ozolinsg web3 4096 2008-04-13 22:21 .
drwxr-xr-x 8 ozolinsg web3 4096 2008-04-12 04:00 ..
-rwxrwxrwx 1 wwwrun www 6840320 2008-02-21 03:28 animatedcollapse.js
-rwxrwxrwx 1 wwwrun www 5770 2008-04-04 00:26 animatedcollapse.js.2
drwxrwxrwx 2 ozolinsg web3 4096 2008-04-11 17:19 error
-rwxrwxrwx 1 wwwrun www 0 2008-03-25 12:00 google84972b5ff715b037.html
-rwxrwxrwx 1 wwwrun www 285 2008-04-11 17:55 .htaccess
-rwxrwxrwx 1 wwwrun www 288 2008-04-09 13:15 index.html
-rwxrwxrwx 1 wwwrun www 98 2008-02-21 02:59 index.php
-rwxrwxrwx 1 wwwrun www 49224 2008-02-21 02:59 komunalserviss.jpg
-rwxrwxrwx 1 wwwrun www 15407 2008-02-21 02:59 license.txt
-rwxrwxrwx 1 wwwrun www 7726 2008-02-21 02:59 readme.html
-rwxrwxrwx 1 wwwrun www 7086080 2008-02-21 03:29 sks
drwxr-xr-x 2 ozolinsg web3 4096 2008-04-12 04:00 stats
drwxrwxrwx 2 wwwrun www 4096 2008-04-08 17:39 test
drwxrwxrwx 7 wwwrun www 4096 2008-02-21 02:57 wp-admin
-rwxrwxrwx 1 wwwrun www 34648 2008-02-21 02:59 wp-app.php
-rwxrwxrwx 1 wwwrun www 138 2008-02-21 02:59 wp-atom.php
-rwxrwxrwx 1 wwwrun www 1022 2008-02-21 02:59 wp-blog-header.php
-rwxrwxrwx 1 wwwrun www 3000 2008-02-21 02:59 wp-comments-post.php
-rwxrwxrwx 1 wwwrun www 162 2008-02-21 02:59 wp-commentsrss2.php
-rwxrwxrwx 1 wwwrun www 841 2008-04-08 16:02 wp-config.php
drwxrwxrwx 6 wwwrun www 4096 2008-02-21 02:58 wp-content
-rwxrwxrwx 1 wwwrun www 886 2008-02-21 02:59 wp-cron.php
-rwxrwxrwx 1 wwwrun www 130 2008-02-21 02:59 wp-feed.php
drwxrwxrwx 4 wwwrun www 4096 2008-04-09 19:28 wp-includes
-rwxrwxrwx 1 wwwrun www 1577 2008-02-21 02:59 wp-links-opml.php
-rwxrwxrwx 1 wwwrun www 16939 2008-02-21 02:59 wp-login.php
-rwxrwxrwx 1 wwwrun www 5763 2008-02-21 02:59 wp-mail.php
-rwxrwxrwx 1 wwwrun www 306 2008-02-21 02:59 wp-pass.php
-rwxrwxrwx 1 wwwrun www 199 2008-02-21 02:59 wp-rdf.php
-rwxrwxrwx 1 wwwrun www 259 2008-02-21 02:59 wp-register.php
-rwxrwxrwx 1 wwwrun www 138 2008-02-21 02:59 wp-rss2.php
-rwxrwxrwx 1 wwwrun www 136 2008-02-21 02:59 wp-rss.php
-rwxrwxrwx 1 wwwrun www 11138 2008-02-21 02:59 wp-settings.php
-rwxrwxrwx 1 wwwrun www 3624 2008-02-21 02:59 wp-trackback.php
-rwxrwxrwx 1 wwwrun www 62826 2008-02-21 02:59 xmlrpc.php
Function is in file functions.php which is in wp-includes directory!
Here is my /wp-blog-header.php:
<?php
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
else $path = 'wp-admin/';
require_once( dirname(__FILE__) . '/wp-includes/classes.php');
require_once( dirname(__FILE__) . '/wp-includes/functions.php');
require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
wp_die("There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress › Error");
}
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
endif;
?>
What else I can say - if i comment out wp(); like this #wp();, then trying to open web page shows error that now is 'PHP Fatal error: Call to undefined function gzip_compression() in"...
BUT - i have these 2 functions in /pathtomywebhomedorectory/wp-includes/functions.php
function gzip_compression() {
if ( !get_option( 'gzipcompression' ) ) {
return false;
}
if ( ( ini_get( 'zlib.output_compression' ) == 'On' || ini_get( 'zlib.output_compression_level' ) > 0 ) || ini_get( 'output_handler' ) == 'ob_gzhandler' ) {
return false;
}
if ( extension_loaded( 'zlib' ) ) {
ob_start( 'ob_gzhandler' );
}
}
and
function wp($query_vars = '') {
global $wp, $wp_query, $wp_the_query;
$wp->main($query_vars);
if( !isset($wp_the_query) )
$wp_the_query = $wp_query;
}
Any suggestions?
Recopied ALL files X times - the same problem...
Therefore I'm wondering - maybe is there some problems with ispconfig and wordpress? Other web pages running OK (html, php).
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 10:16.
|
Recent comments
1 day 12 hours ago
1 day 14 hours ago
2 days 2 hours ago
2 days 5 hours ago
2 days 9 hours ago
2 days 15 hours ago
3 days 1 hour ago
3 days 2 hours ago
3 days 11 hours ago
3 days 12 hours ago