I am Om

Icon

Om Prakash Singh is Here

Resetting the Root Password for mysqld on Unix Systems

 

“These are taken from the mysql website and is for refrence and documentation purpose”

On Unix, use the following procedure to reset the password for all MySQL root accounts. The instructions assume that you will start the server so that it runs using the Unix login account that you normally use for running the server. For example, if you run the server using the mysql login account, you should log in as mysql before using the instructions. Alternatively, you can log in as root, but in this case you must start mysqld with the --user=mysql option. If you start the server as root without using --user=mysql, the server may create root-owned files in the data directory, such as log files, and these may cause permission-related problems for future server startups. If that happens, you will need to either change the ownership of the files to mysql or remove them.

  1. Log on to your system as the Unix user that the mysqld server runs as (for example, mysql).

  2. Locate the .pid file that contains the server’s process ID. The exact location and name of this file depend on your distribution, host name, and configuration. Common locations are /var/lib/mysql/, /var/run/mysqld/, and /usr/local/mysql/data/. Generally, the file name has an extension of .pid and begins with either mysqld or your system’s host name.

    You can stop the MySQL server by sending a normal kill (not kill -9) to the mysqld process, using the path name of the .pid file in the following command:

    shell> kill `cat /mysql-data-directory/host_name.pid`
    

    Use backticks (not forward quotation marks) with the cat command. These cause the output of cat to be substituted into the kill command.

  3. Create a text file containing the following statements. Replace the password with the password that you want to use.

    UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
    FLUSH PRIVILEGES;
    

    Write the UPDATE and FLUSH statements each on a single line. The UPDATE statement resets the password for all root accounts, and the FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.

  4. Save the file. For this example, the file will be named /home/me/mysql-init. The file contains the password, so it should not be saved where it can be read by other users.

  5. Start the MySQL server with the special --init-file option:

    shell> mysqld_safe --init-file=/home/me/mysql-init &
    

    The server executes the contents of the file named by the --init-file option at startup, changing each root account password.

  6. After the server has started successfully, delete /home/me/mysql-init.

You should now be able to connect to the MySQL server as root using the new password. Stop the server and restart it normally.

 

Filed under: Politics

10 reasons why India will not and must not become a superpower

 

During his animated one-hour lecture on ten reasons why India will not and must not become a superpower at Toronto’s Munk Centre, Dr. Ramachandra Guha lamented that in the present lower house of the Indian Parliament, not more than five members would have read a 1949 speech given by Dr. B.R. Ambedkar, the chief architect of India’s constitution, that advised the citizens of a yet-to-be-born republic to eschew three pitfalls.


• Abandon the bloody methods of revolution because that leads to anarchy
• Abandon Bhakti (devotion) in politics because that leads to dictatorship, and finally,
• Political democracy cannot last unless there lies at the base of it social democracy

For good measure, Dr. Guha added that not a single minister in Dr. Manmohan Singh’s cabinet would have read the speech.


In his seminal book, India after Gandhi, Dr. Guha quotes Ambedkar’s warning about India remaining a “mere political democracy”.


In the speech made to the Constituent Assembly in 1949 (that led to the formation of the Indian Republic in 1950) Ambedkar had cautioned, “In politics, we will have equality, and in social and economic life, we will have inequality. In politics, we will be recognizing the principle of one man-one vote and one vote, one value. In our social and economic life, we shall, by reason of our social and economic structure, continue to deny the principle of one man, one value. How long shall we continue to live this life of contradictions? How long shall we continue to deny equality in our social and economic life? If we continue to deny it for long, we shall do so only by putting our political democracy in peril.”


Given the vast territory he had set out to cover during his presentation, Dr. Guha didn’t have the luxury of time to get into the finer points or quote from his works. However, he did provide a panoramic view of the challenges India faces. Terming himself as a polemicist of the centrist kind, he set about explaining the ten reasons in an impassioned manner uncharacteristic of an academic, although quite characteristic of him.


According to Dr. Guha, the ten reasons that India will not and must not become a superpower are:


• Maoists extremism

• Right-wing fundamentalism
• Corruption
• Institutional degeneration
• Growing gap between the rich and the poor
• Environmental degradation
• Chimera of a socially conscious press
• Fragmentation of the polity
• Border disputes
• Disturbed neighbourhood

He explained that but for business magnets, editors of national newspaper chains and federal politicians, not many in India really share the grandiose vision of the nation becoming a superpower.

 

Filed under: Politics

Adding routes in AIX

Configuring a gateway in AIX

To configure a machine to act as a gateway, use these instructions.

For clarity, this procedure assumes that the gateway machine
connects two networks, and that the gateway machine has already been minimally
configured on one of the networks.

  1. Install and configure the second network adapter.
  2. Choose an IP address for the second network interface.
  3. Add a route to the second network.
  4. To use a machine as an internetwork router over TCP/IP networks,
    type:

    no -o ipforwarding=1
The gateway machine can now access both of the networks to which it
is directly attached.

  1. Table 1. Configuring gateway tasks
    Task SMIT fast path Command file Web-based System Manager Management Environment
    Displaying the Routing Table smit lsroute netstat -rn1 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    —> Statistics.
    Adding a Static Route smit mkroute route add destination gateway2 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    . Complete the following in Add/Change a static
    route
    : Destination Type, Gateway
    address
    , Network interface name (drop-down
    menu), Subnet mask, Metric (Cost),
    and the Enable active dead gateway detection check
    box. Click Add/Change Route.
    Removing a Static Route smit rmroute route delete destination gateway2 Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    . Select a route, and click Delete Route.
    Flushing the Routing Table smit fshrttbl route flush Software —> Network —> TCPIP
    (IPv4 and IPv6)
    —> TCPIP Protocol Configuration —> TCP/IP —> Configure
    TCP/IP
    —> Advanced Methods —> Static
    Routes
    —> Delete All.

 

Filed under: AIX, IBM , ,

AIX commands you should not leave home without

Kernel

How would I know if I am running a 32-bit kernel or 64-bit kernel?

To display if the kernel is 32-bit enabled or 64-bit enabled, type:

bootinfo -K

How do I know if I am running a uniprocessor kernel or a multiprocessor kernel?

/unix is a symbolic link to the booted kernel. To find out what kernel mode is running, enter ls -l /unix and see what file /unix it links to. The following are the three possible outputs from the ls -l /unix command and their corresponding kernels:

/unix -> /usr/lib/boot/unix_up 		# 32 bit uniprocessor kernel
/unix -> /usr/lib/boot/unix_mp 		# 32 bit multiprocessor kernel
/unix -> /usr/lib/boot/unix_64 		# 64 bit multiprocessor kernel

Note:
AIX 5L Version 5.3 does not support a uniprocessor kernel.

How can I change from one kernel mode to another?

During the installation process, one of the kernels, appropriate for the AIX version and the hardware in operation, is enabled by default. Let us use the method from the previous question and assume the 32-bit kernel is enabled. Let us also assume that you want to boot it up in the 64-bit kernel mode. This can be done by executing the following commands in sequence:

ln -sf /usr/lib/boot/unix_64    /unix
ln -sf /usr/lib/boot/unix_64    /usr/lib/boot/unix

bosboot -ad  /dev/hdiskxx
shutdown -r

The /dev/hdiskxx directory is where the boot logical volume /dev/hd5 is located. To find out what xx is in hdiskxx, run the following command:

 lslv -m hd5

Note:
In AIX 5.2, the 32-bit kernel is installed by default. In AIX 5.3, the 64-bit kernel is installed on 64-bit hardware and the 32-bit kernel is installed on 32-bit hardware by default.

Hardware

How would I know if my machine is capable of running AIX 5L Version 5.3?

AIX 5L Version 5.3 runs on all currently supported CHRP (Common Hardware Reference Platform)-based POWER hardware.

How would I know if my machine is CHRP-based?

Run the prtconf command. If it’s a CHRP machine, the string chrp appears on the Model Architecture line.

How would I know if my System p machine (hardware) is 32-bit or 64-bit?

To display if the hardware is 32-bit or 64-bit, type:

bootinfo -y

How much real memory does my machine have?

To display real memory in kilobytes (KB), type one of the following:

bootinfo -r    
lsattr -El sys0 -a realmem 

Can my machine run the 64-bit kernel?

64-bit hardware is required to run the 64-bit kernel.

What are the values of attributes for devices in my system?

To list the current values of the attributes for the tape device, rmt0, type:

lsattr -l rmt0 -E

To list the default values of the attributes for the tape device, rmt0, type:

lsattr -l rmt0 -D

To list the possible values of the login attribute for the TTY device, tty0, type:

lsattr -l tty0 -a login -R

To display system level attributes, type:

lsattr -E -l sys0

How many processors does my system have?

To display the number of processors on your system, type:

lscfg | grep proc

How many hard disks does my system have and which ones are in use?

To display the number of hard disks on your system, type:

lspv

How do I list information about a specific physical volume?

To find details about hdisk1, for example, run the following command:

lspv hdisk1
			

How do I get a detailed configuration of my system?

Type the following:

lscfg

The following options provide specific information:

-p Displays platform-specific device information. The flag is applicable to AIX 4.2.1 or later.
-v Displays the VPD (Vital Product Database) found in the customized VPD object class.

For example, to display details about the tape drive, rmt0, type:

lscfg -vl rmt0

You can obtain very similar information by running the prtconf command.

How do I find out the chip type, system name, node name, model number, and so forth?

The uname command provides details about your system.

uname -p Displays the chip type of the system. For example, PowerPC.
uname -r Displays the release number of the operating system.
uname -s Displays the system name. For example, AIX.
uname -n Displays the name of the node.
uname -a Displays the system name, nodename, version, machine ID.
uname -M Displays the system model name. For example, IBM, 9114-275.
uname -v Displays the operating system version.
uname -m Displays the machine ID number of the hardware running the system.
uname -u Displays the system ID number.

AIX

What version, release, and maintenance level of AIX is running on my system?

Type one of the following:

oslevel -r
lslpp -h bos.rte

How can I determine which fileset updates are missing from a particular AIX level?

To determine which fileset updates are missing from 5300-04, for example, run the following command:

oslevel -rl 5300-04

What SP (Service Pack) is installed on my system?

To see which SP is currently installed on the system, run the oslevel -s command. Sample output for an AIX 5L Version 5.3 system, with TL4, and SP2 installed would be:

oslevel -s
5300-04-02

Is a CSP (Concluding Service Pack) installed on my system?

To see if a CSP is currently installed on the system, run the oslevel -s command. Sample output for an AIX 5L Version 5.3 system, with TL3, and CSP installed would be:

oslevel -s
5300-03-CSP	

How do I create a file system?

The following command will create, within volume group testvg, a jfs file system of 10MB with mounting point /fs1:

crfs -v jfs -g testvg -a size=10M -m /fs1
		

The following command will create, within volume group testvg, a jfs2 file system of 10MB with mounting point /fs2 and having read only permissions:

crfs -v jfs2 -g testvg -a size=10M -p ro -m /fs2	

How do I change the size of a file system?

To increase the /usr file system size by 1000000 512-byte blocks, type:

chfs -a size=+1000000 /usr

Note:
In AIX 5.3, the size of a JFS2 file system can be shrunk as well.

How do I mount a CD?

Type the following:

mount -V cdrfs -o ro /dev/cd0  /cdrom

How do I mount a file system?

The following command will mount file system /dev/fslv02 on the /test directory:

mount /dev/fslv02 /test

How do I mount all default file systems (all standard file systems in the /etc/filesystems file marked by the mount=true attribute)?

The following command will mount all such file systems:

mount {-a|all}

How do I unmount a file system?

Type the following command to unmount /test file system:

umount /test

How do I display mounted file systems?

Type the following command to display information about all currently mounted file systems:

mount

How do I remove a file system?

Type the following command to remove the /test file system:

rmfs /test

How can I defragment a file system?

The defragfs command can be used to improve or report the status of contiguous space within a file system. For example, to defragment the file system /home, use the following command:

defragfs /home

Which fileset contains a particular binary?

To show bos.acct contains /usr/bin/vmstat, type:

lslpp -w /usr/bin/vmstat

Or to show bos.perf.tools contains /usr/bin/svmon, type:

which_fileset svmon

How do I display information about installed filesets on my system?

Type the following:

lslpp -l
		

How do I determine if all filesets of maintenance levels are installed on my system?

Type the following:

instfix -i | grep ML

How do I determine if a fix is installed on my system?

To determine if IY24043 is installed, type:

instfix -ik IY24043

How do I install an individual fix by APAR?

To install APAR IY73748 from /dev/cd0, for example, enter the command:

instfix -k IY73748 -d /dev/cd0
			

How do I verify if filesets have required prerequisites and are completely installed?

To show which filesets need to be installed or corrected, type:

lppchk -v

How do I get a dump of the header of the loader section and the symbol entries in symbolic representation?

Type the following:

dump -Htv

How do I determine the amount of paging space allocated and in use?

Type the following:

lsps -a

How do I increase a paging space?

You can use the chps -s command to dynamically increase the size of a paging space. For example, if you want to increase the size of hd6 with 3 logical partitions, you issue the following command:

chps -s 3 hd6
			

How do I reduce a paging space?

You can use the chps -d command to dynamically reduce the size of a paging space. For example, if you want to decrease the size of hd6 with four logical partitions, you issue the following command:

chps -d 4 hd6
			

How would I know if my system is capable of using Simultaneous Multi-threading (SMT)?

Your system is capable of SMT if it’s a POWER5-based system running AIX 5L Version 5.3.

How would I know if SMT is enabled for my system?

If you run the smtctl command without any options, it tells you if it’s enabled or not.

Is SMT supported for the 32-bit kernel?

Yes, SMT is supported for both 32-bit and 64-bit kernel.

How do I enable or disable SMT?

You can enable or disable SMT by running the smtctl command. The following is the syntax:

smtctl [ -m off | on [ -w boot | now]]

The following options are available:

-m off Sets SMT mode to disabled.
-m on Sets SMT mode to enabled.
-w boot Makes the SMT mode change effective on next and subsequent reboots if you run the bosboot command before the next system reboot.
-w now Makes the SMT mode change immediately but will not persist across reboot.

If neither the -w boot or the -w now options are specified, then the mode change is made immediately. It persists across subsequent reboots if you run the bosboot command before the next system reboot.

How do I get partition-specific information and statistics?

The lparstat command provides a report of partition information and utilization statistics. This command also provides a display of Hypervisor information.

Volume groups and logical volumes

How do I know if my volume group is normal, big, or scalable?

Run the lsvg command on the volume group and look at the value for MAX PVs. The value is 32 for normal, 128 for big, and 1024 for scalable volume group.

How to create a volume group?

Use the following command, where spartition_size sets the number of megabytes (MB) in each physical partition where the partition_size is expressed in units of MB from 1 through 1024. (It’s 1 through 131072 for AIX 5.3.) The partition_size variable must be equal to a power of 2 (for example: 1, 2, 4, 8). The default value for standard and big volume groups is the lowest value to remain within the limitation of 1016 physical partitions per physical volume. The default value for scalable volume groups is the lowest value to accommodate 2040 physical partitions per physical volume.

mkvg -y name_of_volume_group -s partition_size list_of_hard_disks

How can I change the characteristics of a volume group?

You use the following command to change the characteristics of a volume group:

chvg

How do I create a logical volume?

Type the following:

mklv -y name_of_logical_volume name_of_volume_group number_of_partition

How do I increase the size of a logical volume?

To increase the size of the logical volume represented by the lv05 directory by three logical partitions, for example, type:

extendlv lv05 3
			

How do I display all logical volumes that are part of a volume group (for example, rootvg)?

You can display all logical volumes that are part of rootvg by typing the following command:

lsvg -l rootvg

How do I list information about logical volumes?

Run the following command to display information about the logical volume lv1:

lslv lv1

How do I remove a logical volume?

You can remove the logical volume lv7 by running the following command:

rmlv lv7

The rmlv command removes only the logical volume, but does not remove other entities, such as file systems or paging spaces that were using the logical volume.

How do I mirror a logical volume?

  1. mklvcopy LogicalVolumeName Numberofcopies
  2. syncvg VolumeGroupName

How do I remove a copy of a logical volume?

You can use the rmlvcopy command to remove copies of logical partitions of a logical volume. To reduce the number of copies of each logical partition belonging to logical volume testlv, enter:

rmlvcopy testlv 2

Each logical partition in the logical volume now has at most two physical partitions.

Queries about volume groups

To show volume groups in the system, type:

lsvg

To show all the characteristics of rootvg, type:

lsvg rootvg

To show disks used by rootvg, type:

lsvg -p rootvg

How to add a disk to a volume group?

Type the following:

extendvg   VolumeGroupName   hdisk0 hdisk1 ... hdiskn

How do I find out what the maximum supported logical track group (LTG) size of my hard disk?

You can use the lquerypv command with the -M flag. The output gives the LTG size in KB. For instance, the LTG size for hdisk0 in the following example is 256 KB.

/usr/sbin/lquerypv -M hdisk0
256

You can also run the lspv command on the hard disk and look at the value for MAX REQUEST.

What does syncvg command do?

The syncvg command is used to synchronize stale physical partitions. It accepts names of logical volumes, physical volumes, or volume groups as parameters.

For example, to synchronize the physical partitions located on physical volumes hdisk6 and hdisk7, use:

syncvg -p hdisk4 hdisk5
			

To synchronize all physical partitions from volume group testvg, use:

syncvg -v testvg
			

How do I replace a disk?

  1. extendvg VolumeGroupName hdisk_new
  2. migratepv hdisk_bad hdisk_new
  3. reducevg -d VolumeGroupName hdisk_bad

How can I clone (make a copy of ) the rootvg?

You can run the alt_disk_copy command to copy the current rootvg to an alternate disk. The following example shows how to clone the rootvg to hdisk1.

alt_disk_copy -d  hdisk1

Network

How can I display or set values for network parameters?

The no command sets or displays current or next boot values for network tuning parameters.

How do I get the IP address of my machine?

Type one of the following:

ifconfig -a

host Fully_Qualified_Host_Name

For example, type host cyclop.austin.ibm.com.

How do I identify the network interfaces on my server?

Either of the following two commands will display the network interfaces:

lsdev -Cc if
ifconfig -a

To get information about one specific network interface, for example, tr0, run the command:

ifconfig tr0

How do I activate a network interface?

To activate the network interface tr0, run the command:

ifconfig tr0 up

How do I deactivate a network interface?

For example, to deactivate the network interface tr0, run the command:

ifconfig tr0 down

Note: Last but not the least, if you want online help for any of the command. type: man command_name, and
if you do not know the man file associated with a command type man -k command_name, and to ask man to find
the man files from the specified direcotry, type: man -M dir_name command_name

Filed under: Uncategorized

Creating a DVD repository on AIX,.

Do yourself a favour and get a spot of space (couple of GBs) and get all your media onto this file system with the following commands:

1. Put the first media CD/DVD into your drive – you do not have to mount it.
2. Make sure you have you file system mounted.
3. Look at what filesets are on the media you are about to build:
gencopy -d /dev/cd0 -t /repository-filesystem -U -X -L all | wc -l
gencopy -d /dev/cd0 -t /repository-filesystem -U -X -L all | more
4. Write it out to a file somewhere:
gencopy -d /dev/cd0 -t /repository-filesystem -U -X -L all >/tmp/filename.txt
5. Do the actual copy/repository build:
gencopy -d /dev/cd0 -t /repository-filesystem -U -X all
6. Stick in the next cd/dvd:
7. Redo steps 1 to 6 until you are done.
8. TAKE NOTE that the actual build takes quite some time.
9. ALSO, make sure you have enough space on /var and /tmp to accommodate the lists the o/s builds to do the media build.
Once done, you will have 1 file system with ALL your media filesets in it.
Then do your ‘smitty install’ and check if you can get your rsct.basic.rte sorted.

Filed under: Uncategorized

Things to learn from JAPAN.

                     

1. THE CALM

Not a single visual of chest-beating or wild grief. Sorrow itself has been elevated.

 

2. THE DIGNITY

Disciplined queues for water and groceries. Not a rough word or a crude gesture.

 

3. THE ABILITY

The incredible architects, for instance. Buildings swayed but didn’t fall.

 

4. THE GRACE

People bought only what they needed for the present, so everybody could get something.

 

5. THE ORDER

No looting in shops. No honking and no overtaking on the roads. Just understanding.

 

6. THE SACRIFICE

Fifty workers stayed back to pump sea water in the N-reactors. How will they ever be repaid?

 

7. THE TENDERNESS

Restaurants cut prices. An unguarded ATM is left alone. The strong cared for the weak.

 

8. THE TRAINING

The old and the children, everyone knew exactly what to do. And they did just that.

 

9. THE MEDIA

They showed magnificent restraint in the bulletins. No silly reporters. Only calm reportage.

 

10. THE CONSCIENCE

It was reported that when the power went off in stores, people put things back on the shelves and left quietly

Filed under: Opinion

if you get the error “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”

 install the following files with yourapache, php and mysql installation, mine got fixed by this, hope yours too will.

 

 sudo apt-get install  phpmyadmin libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql

 

 

 

Filed under: Uncategorized

http with php on use_dir.

Well, it made me do a lot of googling to find how to do set apache2 with php on debian, actaully i think it was working, but since i was trying with userdir, and it was not working, so checked in /etc/apache2/mods-available/php5.conf

    # To re-enable php in user directories comment the following lines
    # (from <IfModule …> to </IfModule>.) Do NOT set it to On as it
    # prevents .htaccess files from disabling it.

and then everything was so easy. Well btw, if facing a problem of php file being downloaded the solution is pretty simple. This could be because Debian’s config puts “application/x-httpd-php php” in its mime.types file, but fortunately the fix is easy. Clear your browser’s cache and restart the browser, and then try again.

Installing Apache 2 and PHP 5 on Debian

 

Lately a lot of folks on #Apache have requested help with installation of Apache 2[.2] and PHP 5 on Debian-based systems.   

Even though this is a rather straightforward process, we have so far neglected to document it. This page provides that documentation.   

 

Preparing your system

 

Before getting started, you should prepare your system, and before preparing your system, you should prepare yourself. You should know: What do you want to achieve? What technology is best to achieve that goal? What constraints are there?   

Now that you know that you want to create a website, using Apache 2, PHP 5 and MySQL, that your knowledge is your only constraint, and that this wiki will help you learn more, you can start preparing your system by typing [either as root, or prefixed with sudo]:   

  

apt-get update

 

This will download the latest lists of packages, to make sure you install the current versions of the software.   

 

Installing the Software

 

Installing the required packages is as straightforward as installing any other package on Debian; the trick is knowing what packages you need:   

  

apt-get install apache2-mpm-prefork libapache2-mod-php5

 

This should actually suffice. Debian’s package mangement system should now automatically chose the missing packages which need to be installed. If you’re running the latest version of Debian [as of this writing: Etch], you might want to also install the latest [and best] version of apache, by explicitly specifying apache2.2-common in the above install command.  

If you also need MySQL, adding php5-mysql and mysql-server-5.0, should do the rest of the magic.

After that install is complete, visiting http://localhost/ in your browser should prove that you now have a running web server.

 

Configuring PHP

 

As Debian is trying to be extra-friendly, it splits a single package up into all possible and impossible modules. In Apache’s case those modules are called libapache2-mod-something and their configuration files are saved in /etc/apache2/mods-available. To enable a module, you’d type something like:

 

a2enmod php5

 

Which will simply symlink /etc/apache2/mods-available/php5.conf and /etc/apache2/mods-available/php5.load to /etc/apache2/mods-enabled/.

If you had php4 installed you might get the following error when restarting apache:

 

Forcing reload of web server (apache2)...apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php4.load: Cannot load /usr/lib/apache2/modules/libphp4.so into server: /usr/lib/apache2/modules/libphp4.so: cannot open shared object file: No such file or directory
 failed!

 

To solve this disable the php4 module:

 

a2dismod php4

 

 

For debian Lenny (5.0) and lower

 

You’re half done now. The last two things that need to be taken care of are to correct Debian’s default PHP configuration for Apache. You can do this by editing /etc/apache2/mods-available/php5.conf:

 

Change:

AddType application/x-httpd-php .php

to:

<FilesMatch \.php$>
  SetHandler application/x-httpd-php
</FilesMatch>

and save the changes.

 

And now you’ll have to tell Apache to reload its configuration and thus enable PHP:

 

/etc/init.d/apache2 restart

That’s it. You should now be able to run PHP scripts on your newly installed web server.

Filed under: Uncategorized

Dilbert: Strip of the day

Dilbert.com

Filed under: dilbert

Dilbert: Strip of the Day

Dilbert Strip

Filed under: Uncategorized

Tweets

  • @MTVIndia yeh hai humare desh ka touth wah wah wah wah.... This is sarcasm 3 weeks ago
  • My horse http://t.co/F8UgJidI 3 weeks ago
  • Never give up your dreams. Give up your goals, plans, strategy, tactics, and anything that's not working but never give up your dreams. 3 weeks ago
  • Its we the people who are to be blamed for everything wrong happening here... We elected this govt. we should @least voted 1 month ago
  • @sardesairajdeep its in the interest of this nation and so is lokpal. So please just listen.. U r much intelligent but they too.. ;) 1 month ago

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Follow

Get every new post delivered to your Inbox.