ispCP - Board - Support
php not parsing on migrated domains, on newly created it does? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: php not parsing on migrated domains, on newly created it does? (/thread-11184.html)

Pages: 1 2


RE: php not parsing on migrated domains, on newly created it does? - Freakez - 07-15-2010 11:40 PM

So if you create the domains with toadd, and don't sync you old virtual data, you get the default page for the domain?

Did you check the /var/log/apache2/suexec.log? Have you changed something in /var/www/fcgi/domain.tld/php5/php.ini on you old server?


RE: php not parsing on migrated domains, on newly created it does? - joximu - 07-15-2010 11:41 PM

Ok, let's sum up.

- ispcp works (the web gui)
- newly created domains also work
- old, moved domains do not:
only php does not working or also html?
what happens instead of php? error 500?
what's in the error-log of the respective domain
(or in the general-error.log and the suexec.log)

/J


RE: php not parsing on migrated domains, on newly created it does? - momfer - 07-16-2010 12:08 AM

(07-15-2010 11:41 PM)joximu Wrote:  Ok, let's sum up.

- ispcp works (the web gui)
- newly created domains also work
- old, moved domains do not:
only php does not working or also html?
what happens instead of php? error 500?
what's in the error-log of the respective domain
(or in the general-error.log and the suexec.log)

/J

>>- ispcp works (the web gui)
Yes

>>newly created domains also work

Yes

>>only php does not working or also html?
Only php

>>what happens instead of php? error 500?
error 500

In de de domain-log: [warn] FastCGI: (dynamic) server "/var/www/fcgi/domain.nu/php5-fcgi-starter" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

[warn] FastCGI: (dynamic) server "/var/www/fcgi/domain.nu/php5-fcgi-starter" (uid 2529, gid 2529) restarted (pid 3623)

Suex.log:

(vu2588/vu2588) gid: (2588/vu2588) cmd: php5-fcgi-starter
[2010-07-15 18:00:50]: uid: (vu2000/vu2000) gid: (vu2000/vu2000) cmd: php5-fcgi-starter
[2010-07-15 18:01:05]: uid: (vu2588/vu2588) gid: (2588/vu2588) cmd: php5-fcgi-starter

Thats about it no real errors in any log

php also works after i migrated the mysql dbase and regenerated the files and users
php fails after rsyncing Just the /var/www/virtual

checked the permissions/rights the seemed to be right


RE: php not parsing on migrated domains, on newly created it does? - Freakez - 07-16-2010 12:10 AM

And if you don't sync you old virtual data, do you get the default page for the domain?


RE: php not parsing on migrated domains, on newly created it does? - momfer - 07-16-2010 02:27 AM

(07-16-2010 12:10 AM)Freakez Wrote:  And if you don't sync you old virtual data, do you get the default page for the domain?

Yes

But If I just sync/isolate the /htdocs and not the whole /var/www/virtual it seems to work well
I guess I should go that way although it would be nice to sort out the Real Problem
Any more ideas?

thx


RE: php not parsing on migrated domains, on newly created it does? - joximu - 07-16-2010 06:20 AM

so, if you upload a test.php (just <?php echo "yes!" ?> on an old domain via FTP then this works?

Otherwise I'd also check the /var/www/fcgi/*old-domains*/ folders...

/J


RE: php not parsing on migrated domains, on newly created it does? - momfer - 07-16-2010 08:01 AM

(07-16-2010 06:20 AM)joximu Wrote:  so, if you upload a test.php (just <?php echo "yes!" ?> on an old domain via FTP then this works?

Otherwise I'd also check the /var/www/fcgi/*old-domains*/ folders...

/J

On a old migrated domain uploaded via ftp the phpinfo test doesnt work only error 500
Newly created domain it does.

I will check /var/wwwfcgi folders, do I check for the permissons/rights??


RE: php not parsing on migrated domains, on newly created it does? - joximu - 07-16-2010 03:36 PM

here you have an example...

Code:
# ls -laR /var/www/fcgi/dom1.net/
/var/www/fcgi/dom1.net/:
drwxr-xr-x 3 vu2002 vu2002 4096 2009-12-30 22:09 .
dr-xr-xr-x 7 root   root   4096 2009-12-30 23:25 ..
drwxr-x--- 2 vu2002 vu2002 4096 2009-12-30 22:09 php5
-r-xr-x--- 1 vu2002 vu2002  200 2009-12-30 22:09 php5-fcgi-starter

/var/www/fcgi/dom1.net/php5:
drwxr-x--- 2 vu2002 vu2002  4096 2009-12-30 22:09 .
drwxr-xr-x 3 vu2002 vu2002  4096 2009-12-30 22:09 ..
-rw-r----- 1 vu2002 vu2002 45989 2009-12-30 22:09 php.ini

and one for the virtual folders:

Code:
# ls -la /var/www/virtual/dom1.net/
drwxrwx--- 11 vu2002 www-data 4096 2010-01-23 10:14 .
dr-xr-xr-x  6 root   root     4096 2010-07-16 01:03 ..
drwxr-xr-x  5 vu2002 vu2002   4096 2009-12-30 22:49 backup
drwxr-xr-x  2 vu2002 vu2002   4096 2009-12-30 22:09 cgi-bin
drwxrwxr-x  3 vu2002 vu2002   4096 2009-12-30 22:09 errors
drwxrwxr-x  3 vu2002 vu2002   4096 2010-03-15 10:18 htdocs
-rw-r--r--  1 root   root       31 2010-01-23 10:14 .htgroup
-rw-r--r--  1 root   root      121 2010-01-23 10:13 .htpasswd
drwxrwx---  2 vu2002 www-data 4096 2009-12-30 22:09 logs
drwxrwx---  2 vu2002 www-data 4096 2009-12-30 22:09 phptmp

/J