To elaborate slightly on the FAQ, the famous equation E_0 = m_0 \, c^2 (rest energy equals rest mass times the square of the speed of light) only applies to particles, or systems of particles, with non-zero mass, because its derivation from the more general equation
E^2 = (pc)^2 + (m_0c^2)^2
applies specifically to the case where momentum, p, is zero. We can't talk about the rest energy of a photon because a photon has no rest frame (it isn't possible to choose a spacetime coordinate system in which the photon is not moving because in any frame we do choose, the photon will be moving with the speed c). Since the photon has no (rest) mass, we can simplify the above equation for the photon to
E = pc.
(On the other hand, a system of photons, not all moving in the same direction, does have a rest mass because we can choose a reference frame (spacetime coordinate system) in which there's no total velocity, e.g. if we have two photons traveling in opposite directions, we can pick a point between them in which the vector sum of their velocities, and momenta, in opposite directions is zero. Velocity, momentum and acceleration are all vectors; they have a magnitude and direction, whereas speed is a scalar, just a number.)
But acceleration due to gravity (the rate at which the velocity of a particle changes, i.e. how much its path is bent) doesn't depend on the mass of the particle being accelerated. If, like whichever of the Apollo astronauts it was, you drop a feather and a rock on the moon (where there's no air to impede the fall of the feather) they hit the moondust at the same time. Gravity is an unusual force in this respect, and, because of this, in general relativity isn't even considered a force, but rather the "curvature" of spacetime. The mass of the sun curves spacetime, and whatever moves through space in time (regardless of its own mass) moves along a curve called a geodesic, which is the "next best thing" or "most direct route" through curved spacetime.
To get an intuitive idea of what a geodesic means in general, it's best to start with a 2-d surface such as the surface of the earth. If you go in what looks at the small scale like a straight line on the earth, you're following a geodesic; these are the paths which on the surface of a sphere will--if you follow them far enough--bring you back to where you started (but that's not a general property of geodesics, it just happens to be true for geodesics on a sphere).