Thursday, May 3, 2007

How to enable forwarding, ip_forwarding, ip_forward on Linux

(Tested on FC3 - Fedora Core 3)
You can every time you boot the operating system Linux to execute the command
echo "1" > /proc/sys/net/ipv4/ip_forward

But why, if there was a chance configured indicate that include forward packets operating system to be loaded.
1. Open file /etc/sysctl.conf
2. Edit option net.ipv4.ip_forward=1
3. Save file.

Enjoy!
___________________________________
© Ramzaj

Wednesday, April 11, 2007

How to change password SYSDBA (Interbase/Firebird)

Important

In some installations Interbase / Firebird start of the utility gsec is possible only at an input in system on behalf of the exclusive user (for example, root in system Linux) or the user on behalf of whom there is a start of server process Interbase / Firebird. On server systems Windows for use of the utility gsec, usually, you should be a member of group Power User () or other more competent group.

If you are assured, that you have enough privileges, but use gsec comes to an end with messages of type « unavailable database - unable to open database » - probably, the server is not started.

Let's assume you have decided to replace password SYSDBA on i4cur5tr.

1. Pass to the interpreter of the command line and to replace a current directory with that in which there are utilities of the command line.
2. Type the following (on all platforms, except for Windows, the text is sensitive to the register of letters):

gsec-user sysdba-password masterkey

After pressing key Enter, you should observe the invitation of the utility gsec:

GSEC>

3. Type the command:

modify sysdba-pw i4cur5tr

4. Press Enter. New value of the password - i4cur5tr, зашифровывается also is saved, the previous value - masterkey, now is void.
5. For an output from gsec, use the command:

quit

Enjoy!!!
© Ramzaj

How to: enable support Firebird / Interbase after install PHP on Linux (create interbase.so)

Once there was a need to add to the PHP installed on the server operating system Fedora Core 3 for Databases Interbase, and Firebird precisely 1.5, as it is the server has been installed. It turns out that PHP was installed and configured during the installation of the operating system. To solve the problem of the need to get interbase.so library. I have PHP version 4.3.9, it had to seek it is a version of the source. It was the gunzip source and compilation BUT WITHOUT INSTALLATION!
./configure --with-interbase=shared
make

END, NOT make install. The catalogue modules appears interbase.so. The copy in a folder, which contains similar library for PHP and edit php.ini place where PHP will seek library parameter determines extension_dir Section Dynamic Extensions write line extension = interbase.so Then restart Apache (service httpd restart or there you), and enjoy.
© Ramzaj