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)
-   -   ISP Services wouldn't restart any service, possibly Domain Host configuration issue. (http://www.howtoforge.com/forums/showthread.php?t=2529)

Kamran Shah 14th February 2006 12:36

ISP Services wouldn't restart any service, possibly Domain Host configuration issue.
 
I am experiencing problem changing status of a service in ISP Services, it wouldn't restart any service listed in ISP Services. As I don't know what is the problem I have mentioned three symptoms and trying symptomatic approach. Please advise, your help will be much appreciated.

Symptom 1:
When I change a service value to Restart which was previously On and click on Save, it refreshes the page but the status keeps displaying Restart all the time until I change it back to On and save it again. I believe this is not working and not really restarting the services.

Only thing I can think of can possibly be the domain name and host name configuration as this is the only thinkg I changed in past at some point.

Symptom 2:
They way i have configured domain name is below, can anyone please confirm if this is correct configuration.

DNS points portal.domainname.com to my Public IP Address.
Unix hostname I have configured as is portal.domainname.com
/etc/hosts contains "192.168.0.1 portal.domainname.com"
- (Not sure if I should specify public IP Address anywhere in hosts or ISPConfig?)
ISP Config Server Settings Domain is portal.domainname.com while hostname is default as www with IP Address as 192.168.0.1.
- (Not sure if it should be portal and domain should be domainname.com?)

Symptom 3:
Also if I try using with a hosted domain or IP address like https://www.blahblah.com:81/ instead of https://portal.domainname.com:81/, I cannot use anything i Management part of ISP Config, everythig else works.

falko 14th February 2006 14:23

Quote:

Originally Posted by Kamran Shah
I am experiencing problem changing status of a service in ISP Services, it wouldn't restart any service listed in ISP Services. As I don't know what is the problem I have mentioned three symptoms and trying symptomatic approach. Please advise, your help will be much appreciated.

Symptom 1:
When I change a service value to Restart which was previously On and click on Save, it refreshes the page but the status keeps displaying Restart all the time until I change it back to On and save it again. I believe this is not working and not really restarting the services.

Which distribution do you use? Are there errors in /home/admispconfig/ispconfig/ispconfig.log?

Only thing I can think of can possibly be the domain name and host name configuration as this is the only thinkg I changed in past at some point.

Quote:

Originally Posted by Kamran Shah
Symptom 2:
They way i have configured domain name is below, can anyone please confirm if this is correct configuration.

DNS points portal.domainname.com to my Public IP Address.
Unix hostname I have configured as is portal.domainname.com
/etc/hosts contains "192.168.0.1 portal.domainname.com"
- (Not sure if I should specify public IP Address anywhere in hosts or ISPConfig?)

This seems to be correct. Don't use the public IP address because you're behind a router.
Quote:

Originally Posted by Kamran Shah
ISP Config Server Settings Domain is portal.domainname.com while hostname is default as www with IP Address as 192.168.0.1.
- (Not sure if it should be portal and domain should be domainname.com?)

Use portal as hostname and domainname.com as domain.

Quote:

Originally Posted by Kamran Shah
Symptom 3:
Also if I try using with a hosted domain or IP address like https://www.blahblah.com:81/ instead of https://portal.domainname.com:81/, I cannot use anything i Management part of ISP Config, everythig else works.

Have a look here: http://www.howtoforge.com/forums/showthread.php?t=534

Kamran Shah 14th February 2006 14:46

No errors in log and still can't restart services.
 
Quote:

Originally Posted by falko
Which distribution do you use? Are there errors in /home/admispconfig/ispconfig/ispconfig.log?

I am using Fedora Core 4 and do not see any errors in log file. When I change the service to Restart all I see in Log file is as below.

14.02.2006 - 13:37:27 => INFO - Signalfile Set: update

I have also changed host & domain and restarted ISPConfig servery using /etc/init.d/ispconfig_server restart but didn't make any difference.

Kamran Shah 14th February 2006 15:06

Not sure if this is the correct permissions for config.inc.php, can anyone please cofirm?

-rwxr-xr-x 1 admispconfig admispconfig 7438 Jan 9 01:29 go_info.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 354 Jan 9 01:29 copyright.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 1768 Jan 9 01:29 banner.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 6275 Jan 9 01:29 app.inc.php
-rw------- 1 admispconfig admispconfig 5801 Jan 9 01:29 config.inc.php

Kamran Shah 14th February 2006 15:09

Quote:

Originally Posted by Kamran Shah
Not sure if this is the correct permissions for config.inc.php, can anyone please cofirm?

-rwxr-xr-x 1 admispconfig admispconfig 7438 Jan 9 01:29 go_info.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 354 Jan 9 01:29 copyright.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 1768 Jan 9 01:29 banner.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 6275 Jan 9 01:29 app.inc.php
-rw------- 1 admispconfig admispconfig 5801 Jan 9 01:29 config.inc.php

Although "chmod 755 config.inc.php" and restarting ISPConfig server did not fix problem of restarting services.

falko 14th February 2006 19:22

Quote:

Originally Posted by Kamran Shah
Not sure if this is the correct permissions for config.inc.php, can anyone please cofirm?

-rwxr-xr-x 1 admispconfig admispconfig 7438 Jan 9 01:29 go_info.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 354 Jan 9 01:29 copyright.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 1768 Jan 9 01:29 banner.inc.php
-rwxr-xr-x 1 admispconfig admispconfig 6275 Jan 9 01:29 app.inc.php
-rw------- 1 admispconfig admispconfig 5801 Jan 9 01:29 config.inc.php

This is the correct setting. If you change the perimissions to 755, then anyone can read that file (and you have your root MySQL login in there!). Please change it back to 600:
Code:

chmod 600 config.inc.php
Did you install your Fedora Core 4 system following this tutorial? http://www.howtoforge.com/perfect_setup_fedora_core_4

Kamran Shah 14th February 2006 19:48

Quote:

Originally Posted by falko
This is the correct setting. If you change the perimissions to 755, then anyone can read that file (and you have your root MySQL login in there!). Please change it back to 600:
Code:

chmod 600 config.inc.php
Did you install your Fedora Core 4 system following this tutorial? http://www.howtoforge.com/perfect_setup_fedora_core_4

I have changed permissions of config.inc.php to 600 as originally it was.

I certainly followed Fedora Core 4 documentation from above turorial, which is probably only but perfect. It was a while ago though, and I have installed update to the latest version which was again successful without any errors.

till 14th February 2006 20:03

Please execute:

rm -f /root/ispconfig/.ispconfig_lock

then:

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

Did you get any errors when you execute the second command?

Kamran Shah 15th February 2006 00:56

Quote:

Originally Posted by till
Please execute:

rm -f /root/ispconfig/.ispconfig_lock

then:

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

Did you get any errors when you execute the second command?

I performed following and got Segmentation fault

[root@portal ~]# rm /root/ispconfig/.ispconfig_lock -rf
[root@portal ~]# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
start
Segmentation fault

falko 15th February 2006 09:28

If you get segmentation faults, you should have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=807


All times are GMT +2. The time now is 06:33.

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