Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th April 2008, 15:30
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 11th April 2008, 15:01
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Reinstalled LAMP, ipsconfig.

But the same problem!
Reply With Quote
  #3  
Old 11th April 2008, 15:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 11th April 2008, 17:01
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default

; 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!
Reply With Quote
  #5  
Old 11th April 2008, 22:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Any errors in Apache's error log?
Do you use PHP Safe Mode?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 12th April 2008, 01:48
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

Safe mode = On/Off - no matters! ;-O
Reply With Quote
  #7  
Old 12th April 2008, 18:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by Mole
I get a "topic not found" message.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 12th April 2008, 18:43
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #9  
Old 13th April 2008, 21:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Do you know in which file the function wp() is defined?
What's the output of
Code:
ls -la /wwwroot/web16/web
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 13th April 2008, 22:58
Mole Mole is offline
Member
 
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

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).
Reply With Quote
Reply

Bookmarks

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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access login enter ispconfig web ftp domain hostname Dekalb Installation/Configuration 1 3rd June 2007 14:22
Unable to open ISPConfig Web neu2linux Installation/Configuration 27 25th May 2006 15:09
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 05:20
ISPConfig Web Problems Ran2004 Installation/Configuration 2 8th October 2005 04:54
Accessing the ISPConfig Web Page nformosa Installation/Configuration 1 9th September 2005 15:13


All times are GMT +2. The time now is 03:36.


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