This paper presents the optical guiding of a laser beam in plasma by using a preformed plasma channel. The density ramp in plasma density due to the plasma pressure has also been considered. The effect of ponderomotive force has been taken into account which originates due to the intensity gradient present in the laser beam. This force produces a plasma gradient by expelling plasma electrons from a high-field to a low-field region, providing heavy ions remain immobile. Plasma oscillations result from a gradient in plasma density that excites an electron plasma wave. The equation governing the plasma wave excitation has been found by using linear perturbation theory. An in-phase mixing of an incident laser beam with this plasma wave generates its second harmonics. Laguerre–Gaussian laser profile has been used for harmonic production. Moment theory has been used to obtain a differential equation for beam waist, which has been solved numerically by Runge–Kutta's fourth-order method. The effect of different modes of Laguerre–Gaussian profile, beam intensity, plasma density, channel depth, and slope of density ramp has been explored.