Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    151

    Default Config file editing problems

    In all of my servers with cPanel on them (none of them are remote), there are issues with cPGS editing config files. On new installations of games installed through WHM or cPGS, changing any of the fields in cPGS such as hostname or rcon and then clicking Save Changes, does absolutely nothing. Nothing gets changed. However, if you edit the configuration from the Advanced Config Editor in cPGS, the changes get saved.

    Is anyone else having this issue? All of my machines are Linux CentOS 5.x

  2. #2
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,846

    Default

    This was caused by a debugging statement left in one of the 0.7.1 releases and somehow it's still getting pulled down. The line should be right about 1343 in cpgsd.pl, looks like

    &shutdown;

    Just delete it and restart cpgsd.
    I'll go through all 30 something mirror servers today and see if I can find the culprit. Put in a ticket if you want me to fix any servers with the issue.
    Need to put in a support ticket for cPGS ? Click on the url below and follow the bottom most link "Submit a Support Request without Logging In"
    https://tickets.cpanel.net/submit/index.cgi?support=1

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    40

    Default

    Is it safe to assume the file path is /var/cpanel/cpgsd.pl

    I've got nothing on 1343, or was that not supposed to be a specific line number.

  4. #4
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,846

    Default

    Search /var/cpanel/cpgsd.pl for "sub formsave", inside that function is code that looks like:
    Code:
                    }
                }
            }
            close($custom_startup);
        }
    
    ############### bad line here
       &shutdown;
    ###############
    
        my $m = "cPGS\:\:$game";
        my $servdir = get_server_dir($game);
    remove the &shutdown line if you see it. If it's not there, just restart cPGSD with /var/cpanel/cpgsd.pl and it should take care of it. I'm trying to get the current startup changes added to all games and will release a full new version to get these bad copies off the update mirrors once and for all.
    Need to put in a support ticket for cPGS ? Click on the url below and follow the bottom most link "Submit a Support Request without Logging In"
    https://tickets.cpanel.net/submit/index.cgi?support=1

Similar Threads & Tags
Similar threads

  1. Replies: 11
    Last Post: 12-11-2009, 12:34 PM
  2. Replies: 2
    Last Post: 02-01-2006, 09:51 AM
  3. Editing FTP config?
    By jak in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2005, 11:51 PM
  4. Editing Config.pm in /usr/local/???/
    By Charter in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-21-2004, 02:35 AM
  5. db.test config when Editing DNS zones
    By felix220 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-23-2002, 06:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube