![]() run file for Linux variants, the method I’m about to describe would be the same for Debian, Red Hat, Fedora, and other major Linux distributions. I must note, as XAMPP provides a compiled. In the entire post, we’ll see how you can install, configure, and get started with the XAMPP on a Ubuntu Linux system. Moreover, it is capable of sending and receiving HTTP requests. As it creates a localhost server environment on a local machine, you would not need any active internet connection to use XAMPP and the localhost server. Type in browser’s address bar and it should work.It uses web cache to load the heavy servers faster and supports CGI scripting, database manipulation. ![]() Restart xampp server by doing sudo /opt/lampp/lampp restartĥ. Next, you will need to tell Xampp server where to find the address you added above: sudo gedit /etc/hostsĪdd the following line: 127.0.0.1 mysite.localĤ. ServerAlias ErrorLog logs/mysite.local-error_logĬustomLog logs/mysite.local-access_log commonģ. ServerAdmin /opt/lampp/htdocs/mysite_folder The required entries are DocumentRoot and ServerName You can edit one or create new one by copy-pasting one of them. Usually, by default there are two virtual hosts in this file. Add new virtual host by opening the nf file sudo gedit /opt/lampp/etc/extra/nf sudo gedit /opt/lampp/etc/nfįind #Include etc/extra/nf and remove the # to un-comment this line Include etc/extra/nfĢ. Once you enable it you can skip this step next time. ![]() Enable virtual hosts by editing nf, if it is not enabled already. Bookmark it for yourself (which i am going to do after i have finished posting it ))ġ. I am posting it here for quick reference for myself. Every time i need to create a new virtual host in Ubuntu i have to google/search to find this solution as i cannot remember these paths properly.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |