On Sun, Dec 27, 2009 at 3:20 PM, Rajagopal Swaminathan <[email protected]> wrote: > Greetings, > > On Sun, Dec 27, 2009 at 1:09 PM, aishwarya . <[email protected]> wrote: >>> >>> hi sir there is problem on saving php files in ubuntu >>> can any one tell is there any idea to save correctly >>> it saying u could not save the file in var/www/kk.php >>> > > I am NOT a developer. Primarily an admin > > Alternatively someone who is experienced in web development would like > to post a tutorial explaining the workflow of a web based project > using tools like IDE, SCM, profilers, the concept of > Development-test-production environment etc in a simple way which > would enormously benefit the students / newcomers to development. > > I use crude methods sometimes to hack away for minot changes in php > scripts et. al. and the change perms etc as required which I know is > not a proper workcycle. How I wish somebody shares that domain > knowledge with us. > > In return I will try and help out people with HA clustering, and the > such when it comes to admin (Centos, RHEL esp.) > > Most of the tutorials I have seen is mostly about using specific tool > and very basic. they do not cover too much (I have seen some thing > like that in exlipse a little bit) > > I will also help in reviewing, testing out the methods to my abilities.
1. php scripts are executed by web server (apache httpd) of the web application. 2. The files should be accessible from webroot (/var/www/ in your installation, /usr/local/apache/htdocs is another location which is commonly used) 3. With files stored in a directory under webroot, and webserver started, you can access the files through a browser: http://127.0.0.1/yourscript.php OR http://127.0.0.1/mydocuments/myscript.php 4. Usually webroot is owned by root. You can organize your working scripts following way: mkdir /home/yourloginname/myapplication sudo ln -s /home/yourloginname/myapplication /var/www/myapplication 5. Now you can create, edit and save files in /home/yourloginname/myapplication directory and run the files by http://127.0.0.1/myapplication/myscript.php ==OR you change ownership of webroot (/var/www in your case) chown yourlogin /var/www (which is not recommended)=== Hope this helps. மா சிவகுமார் எல்லோரும் எல்லாமும் பெற வேண்டும் http://masivakumar.blogspot.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
