On Mon, Nov 30, 2009 at 9:47 PM, rakesh kumar <[email protected]> wrote:
> Sir i know PHP but didn't work on linux. I have been working on php only on > windows. I have books also but i never saw this thing that if i want to run > php scripts i should be saved in any specified folder. I know it is a > server > side script but didn't have experienced it too much. Please tell me if i > need to go for training for my some queries then .................. > On windows you must have used wamp or xammp, you would have placed the .php files in some directory like wamp/www or something similar. It is the location where apache looks for the php files as it cannot randomly search your hard disk for files ;-). Similarly on Linux there are specific locations where apache looks for these files. This may vary from system to system and even you may change it. Look at /etc/httpd/conf/httpd.conf. DO NOT try to change anything. It may leave your apache unworkable. This location is often called 'Document root'. Default locations on various systems: 1. Fedora/centos: /var/www/html 2. Ubuntu: /var/www 3. openSUSE: /srv/www/htdocs You can contact me off-list also, if you found anything difficult to understand. -- Roshan Kumar Singh http://roshansingh.wordpress.com http://sourceforge.net/projects/gscribble _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
