UAISEE by Universidad Catolica de Cuenca.Published on Nov 1.Revista Cientfica de la Universidad Catlica de Cuenca.Enable userdir Apache module on Ubuntu Linux and other Debian based distributions.Lately Ive spent a lot of time on web programming using open source based technologies like PHP, My.SQL and Postgre. SQL.This works really great on Linux because every tool you need for web programing is right there a few keystrokes away using your favorite distribution and package manager.One essential thing you need to setup for web programming is localhost web server serving files inside your home directory.Ive wrote about one method of making Apache web server work this way in my following article LAMP development in your home directory with su.CVE version 20061101 and Candidates as of 20171023 Candidates must be reviewed and accepted by the CVE Editorial Board before they can be added to the official CVE.Sometimes I give parts of a solution to increase the play time to solve a problem.I didnt anticipate a problem when showing how to perform a sort operation with a.Jar File Download examples example source code Organized by topic. How To Install Speakers In A Mazda Protege 5 Fog Light Replacement . Jar File Download a.PHP module. In this article I will show you how to do the same thing in another way by enabling Apache module called userdir on Debian based distributions like Ubuntu.The official definition of userdir is that this module allows user specific directories to be accessed using the http example.So lets get started.In this article I will assume you have Apache web server fully installed.If you havent already done this please follow the link from the beginning of this article and come back to enable userdir Apache module.For starters we need to enable this module using following command Now we will configure Apache module userdir by editing userdir.Next you should replace the contents of that configuration file with the following code lt If.Module moduserdir.User. Dir publichtml.Download the free trial version below to get started.Doubleclick the downloaded file to install the software.User. Dir disabled root.Directory homepublichtml.Allow. Override. All.NetBean-Uninstall-2.png' alt='Install Netbeans On Fedora 15 Printer' title='Install Netbeans On Fedora 15 Printer' />Options Multi.Views Indexes Sym.Links. If. Owner.Match. lt Limit GET POST OPTIONS.Apache lt 2. 2 Orderallow,deny.Allow from all. Apache 2.Require all granted.Limit. lt Limit. Except GET POST OPTIONS.Apache lt 2. 2 Orderdeny,allow.Deny from all. Apache 2.Require all denied.Limit. Except. Directory.If. Module With this setup Apache web server would serve HTML files from publichtml directory of every user on your pc.This HTML files would be accessible using the http example.Serving PHP files from users publichtml directoriy is disabled by default for security reasons.If you want to enable PHP processing when using userdir this is what you need to do.First you edit following Apache configuration file in this way sudonanoetcapache.Now you need to comment out a few lines from lt If.Module moduserdir.If. Module so you get something like this lt If.Module modphp. 5.Files. Match. php.Set. Handler applicationx httpd php.Files. Match. lt Files.Match. phps. Set.Handler applicationx httpd php source.Files. Match. To re enable php in user directories comment the following lines from lt If.Module. to lt If.Module. Do NOT set it to On as it prevents.If. Module moduserdir.Directory homepublichtml phpadminvalue engine Off lt Directory lt If.Module. lt If. Module Last thing you just restart Apache web server and create publichtml directory inside your home directory like this sudo service apache.USERpublichtml. Thats it and every user on your PC should be able to serve PHP pages from his homeusernamepublichtml directory, and that pages should be accessible on http 1.Now you can develop for web using publichtml to store and test your PHP and HTML code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |