How to change default 19368 port of control panel interface.
To change default 19638 port it is enough to change it in /etc/ensim/epl.conf file and restart epld service. In other configuration files it will be substituted accordingly.
Note that the sites configuration files are located in /etc/httpd/conf/virtual/ and include “RedirectMatch” directive that contain redirect to 19638 port.
Tags: 19368, change, Control, Default, interface, Panel, Port
License Invalid in PPCP after the Network Card change
Parallels Pro Control Panel license is tied to a MAC-address. Therefore, when you change your network card, PPCP does not recognize the license as valid anymore.
Resolution
Just rename /etc/appliance/.license/.LIC_file and /etc/appliance/.license/.MLK_file so that the license would be treated as a new one by PPCP:
# mv /etc/appliance/.license/.MLK_file /etc/appliance/.license/.MLK_file.bak
# mv /etc/appliance/.license/.LIC_file /etc/appliance/.license/.LIC_file.bak
Reference: http://parallels.com
Tags: Card, change, Invalid, License, Network, PPCP
Apache crash during high load with Parallels Pro Control Panel
Apache crash on high load with the following error in the error log: “No space left on device:” The problem may be caused by small number of semaphores in system. To increase the number of semaphores please take the following steps:
Login to your PPCPL server as root. Open the /etc/sysctl.conf file using a text editor
Locate the kernel.sem parameter and double current values. If the parameter is not defined in the /etc/sysctl.conf file you can obtain current values by executing the following command:
After obtaining current values, double them and add to the /etc/sysctl.conf file so that the line looks like
kernel.sem = 512 32000 100 512
Please note, values for your installation may varry. Execute sysctl in order the changes to take effect.
Tags: Apache, Control, crash, Panel, Parallels, Pro
Search and substitute
You can easily search for data in the buffer using the vim search command. To enter a search string, press the forward slash (/) key.
The substitute command allows you to quickly replace (substitute) one word for another in the text. To get to the substitute command you must be in command line mode.
The format for the substitute command is:
There are a few modifications you can make to the substitute command to substitute more than one occurrence of the text:
:s/old/new/g to replace all occurrences of old in a line
:#,#s/old/new/g to replace all occurrences of old between two line numbers
:%s/old/new/g to replace all occurrences of old in the entire file
:%s/old/new/gc to replace all occurrences of old in the entire file, but prompt for each occurrence.
Tags: Search, substitute
Linux assigns the file permissions of the new file using your default UID and GID. To allow others access to the file, you need to either change the security permissions for the everyone security group or assign the file a different default group that contains other users.
This can be a pain in a large environment if you want to create and share documents among several people. Fortunately, there’s a simple solution for how to solve this problem.
There are three additional bits of information that Linux stores for each file and directory.
The set user id (SUID): When a file is executed by a user, the program runs under the permissions of the file owner.
The set group id (SGID): For a file, the program runs under the permissions of the file group. For a directory, new files created in the directory use the directory group as the default group.
The sticky bit: The file remains (sticks) in memory after the process ends.
The SGID bit is important for sharing files. By enabling the SGID bit, you can force all new files created in a shared directory to be owned by the directory’s group and now the individual user’s group.
The SGID is set using the chmod command. It’s added to the beginning of the standard three digit octal value (making a four-digit octal value), or you can use the symbol s in symbolic mode.
Tags: Files, Sharing