
16th April 2008, 10:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,181 Times in 3,200 Posts
|
|
Never edit the file Vhosts_ispconfig.conf manually! ISPConfig will remove all your changes. Instead, just uncheck the Suexec checkbox in ISPConfig under management > server > settings.
|

16th April 2008, 11:16
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
OK, thank You about Suexec!
But what about this error:
Code:
Fatal error: Call to undefined function wp() in /wwwroot/web3/web/wp-blog-header.php on line 18
|

16th April 2008, 17:06
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Something strange... what can be the problem?
When install new wordpress - the same error!
Server installed as needed, ispconfig installation successful, php.ini good, other pages run normal...except Wordpress based!
Maybe somebody have solution to resolve this problem?
|

16th April 2008, 21:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
How exactly did you install Wordpress?
|

17th April 2008, 09:37
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
migration - copy ALL files&directories to /wwwroot/webX/web
new - wget latest Wordpress archive, unzip it, copy ALL files&folders into /wwwroot/webX/web, then rename wp-config-sample.php to wp-config.php, create new db in mysql (create database wordpress), then grant access to user, Flush privilegies), edit wp-config.php file appropriate to my needs, run file. Usually the first error is that "ERROR: in wp-config.php can only contain numbers, letters, and underscores.", but, when this is corrected, then next error is about wp() function!
|

17th April 2008, 19:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
Can you post the vhost configuration of that web site?
|

17th April 2008, 20:56
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Code:
<VirtualHost XX.XX.XX.XX:80>
ServerName www.komunalserviss.lv:80
ServerAdmin webmaster@komunalserviss.lv
DocumentRoot /wwwroot/web3/web
ServerAlias komunalserviss.lv
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /wwwroot/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /wwwroot/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/wwwroot/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
</VirtualHost>
|

17th April 2008, 21:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
Take a look at chapter 2.4.3 on http://www.howtoforge.com/ispconfig-2.x-first-steps-p2 . As you're using SuSE, you should probably set $go_info["server"]["apache2_php"] to addhandler.
|

18th April 2008, 10:07
|
|
Member
|
|
Join Date: Apr 2008
Location: Latvia
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
it's done, now Vhosts_ispconfig.conf:
Code:
<VirtualHost 62.85.27.11:80>
ServerName www.komunalserviss.lv:80
ServerAdmin webmaster@komunalserviss.lv
DocumentRoot /wwwroot/web3/web
ServerAlias komunalserviss.lv
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /wwwroot/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /wwwroot/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/wwwroot/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
</VirtualHost>
But problem is not solved!
|

19th April 2008, 23:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,590 Times in 2,442 Posts
|
|
I'm at my wit's end. Does it work on other distributions than SUSE?
|
| 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 12:16.
|
Recent comments
11 hours 59 min ago
14 hours 54 min ago
16 hours 8 min ago
17 hours 32 min ago
19 hours 10 min ago
20 hours 38 min ago
21 hours 52 min ago
1 day 13 hours ago
1 day 14 hours ago
1 day 18 hours ago