HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Problems with Wordpress based web page after installing Ispconfig (http://www.howtoforge.com/forums/showthread.php?t=22197)

Mole 10th April 2008 14:30

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?

Mole 11th April 2008 14:01

Reinstalled LAMP, ipsconfig.

But the same problem!

till 11th April 2008 14:14

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

Mole 11th April 2008 16:01

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"

include_path = ".:/usr/share/php5:/usr/share/php5/PEAR"


I'd already follow instructions:
http://www.howtoforge.com/perfect_setup_opensuse_10.2
http://www.ispconfig.org/manual_installation.htm
and Wordpress install instructions.

Not running Wordpress for my web page, not for new Worpress!

falko 11th April 2008 21:21

Any errors in Apache's error log?
Do you use PHP Safe Mode?

Mole 12th April 2008 00:48

about errors - find here: http://wordpress.org/support/topic/1...=8#post-730381

Safe mode = On/Off - no matters! ;-O

falko 12th April 2008 17:36

Quote:

Originally Posted by Mole

I get a "topic not found" message.

Mole 12th April 2008 17:43

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!

falko 13th April 2008 20:22

Do you know in which file the function wp() is defined?
What's the output of
Code:

ls -la /wwwroot/web16/web
?

Mole 13th April 2008 21:58

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).


All times are GMT +2. The time now is 11:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.