DISQUS

Zaphu Forum: Ubuntu LAMP Server Guide - Configure Apache, mySQL, and cgi-bin

  • Sonny · 2 years ago
    Hey, thanks for the awesome guide. Im a total newbie to ubuntu and my boss really wanted to set up an ubuntu web server for one of our upcoming projects. I know I still have a lot to learn as far as securing our server, etc, but you really got me off to a great start. Thanks again!

    Respectfully,
    Sonny
  • Ed · 1 year ago
    I'm a little unclear about Step 3 above about configuring a CGI directory. My original /etc/apache2/sites-available/default file had the following verbiage (Hardy):

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    Should I add a new paragraph with something like:

    ScriptAlias /cgi-bin/ /home/USERNAME/public_html/cgi-bin/
    <Directory /home/USERNAME/public_html/cgi-bin/>
    Options ExecCGI
    AddHandler cgi-script cgi pl
    </Directory>

    Or should I edit the existing paragraph on my modified "default" file to look a bit like this:

    ######################3
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ /home/USERNAME/Public/cgi-bin/
    ## <Directory "/usr/lib/cgi-bin"> # old
    <Directory "/home/USERNAME/Public/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    ## Added per zaphu
    AddHandler cgi-script cgi pl
    Order allow,deny
    Allow from all
    </Directory>
  • Ed · 1 year ago
    Yup, that didn't quite work, I got syntax error messages.

    * Starting web server apache2 Syntax error on line 20 of /etc/apache2/sites-enabled/whatever_you_want_to_call_profile:
    ScriptAlias takes two arguments, a fakename and a realname

    Adding the suggested verbiage as a new paragraph below the default profile's ScriptAlias paragraph also didn't fly:

    [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/zaphu at line 46 will probably never match because it overlaps an earlier ScriptAlias.

    I'll just blow away my newly minted local cgi directory and use the default ones in /usr/lib (if I ever get to the point where I'm using CGI) unless I can find clear instructions.

    It seems like merely commenting something out doesn't make it disappear as far as apache is concerned, very odd, there were times I had to remove lines to get the profile to work.

    Do you have to disable the webserver with "/etc/init.d/apache2 stop" and disable the profile with "a2dissite PROFILE_NAME" in order to edit your profile, then enable it again with "a2ensite PROFILE_NAME" and bring up the server with "/etc/init.d/apache2 start" to test your changes? Anyway, that's what I did. It would be easier if you could just edit the file of an active PROFILE and then simply reload the web server with "/etc/init.d/apache2 restart".

    BTW, one thing I would mention in a tutorial like this is that you have to set the right permissions for served files to be visible with a browser. I had to use a command like this from a terminal as a regular user:

    chmod -R a+xr ~/Public/

    Chmod changes permissions, "-R" makes it recursive (descends in to sub-directories), "a" means 'change this permission for ALL, "+rx" adds read and execute privileges (the later allows you to see into sub-folders).

    A little knowledge is a dangerous thing...
  • Sam · 2 years ago
    @Sonny - Glad I could help you out. In the future I want to post guides on securing Apache. I have one in the works regarding directory level Apache configuration using .htaccess files. Subscribe to our RSS feed to stay abreast of our latest posts.
  • Chris · 2 years ago
    Thanks, this helped out so much. I planned on creating a test server within my internal network before I tossed it onto a production server hosted elsewhere. Securing it won't be worth it then I suppose?
  • Anon · 2 years ago
    This guide is perfect. Did not have a single issue with this guide. Thanks
  • David Wen Riccardi-Zhu · 2 years ago
    Great guide. Had no problems following and I had everything set up in less than ten minutes. Looking forward to learning the ins and outs of administering a web server.
    Thanks,
    DWRZ
  • ed · 2 years ago
    For once, a page that not only Does What It Says On The Can, but also did it in a innovative way. Much impressed with the simplicity of the a2ensite etc., which i will use elsewhere now.

    Top job. Thanks a bundle.
  • Sam · 2 years ago
    @Chris, Anon, David Wen Riccardi-Zhu, and ed - Thanks for the feedback. I'm glad you found this guide helpful.
  • mafsi · 2 years ago
    hi & thanks for this tutorial. I want to ask you something: i want to use public_html dir to put more sites there:

    /public_html/site1
    /public_html/site2
    /public_html/site3

    do i have to repete steps to add my sites to /etc/apache2/sites-available & then to create the config file for each of it & edit the path?

    Thanks in advanced.
  • Sam · 2 years ago
    @mafsi - You have the right idea. Configuring multiple sites requires that you create a configuration file for each site in the sites-available directory and then enable each of these sites using the a2ensite command. Of course, you also have to create home directories for each site and restart apache. Let me know if this helps.
  • Jorah · 2 years ago
    Sam, this was great. I am starting to feel as if I can use my Ubuntu box for something other than just reading email!

    I have a question you may be able to help me with. I want to be able to run an in-house blog behind our router (with 5 computers running in the house, this isn't as crazy as it seems). I successfully installed WordPress on my new LAMP server, but when I try to view it from another machine, there is an error, even though I can see the default files in the home directory. What seems to be happening is that as the server serves the WordPress page, the URL is being converted from the IP address to 'localhost' which is fine when I'm working on the server machine, but not so fine when I try to view it from another box. If this is a WordPress problem, I'll look elsewhere. THANK YOU for a really well-written article, I'll be back to read more.
  • Jorah · 2 years ago
    Sam, please disregard my question about WordPress... I found the correct settings this morning. Thanks again for a great tutorial. I'm working through the DNS articles now!
  • Irene · 2 years ago
    Jorah,

    I am having the same problem (i.e. wp not accessible except on server machine because URL keeps switching localhost... on other machine).

    Would you let me know what the settings were?

    Thanks in advance,
  • Franklin · 2 years ago
    @Irene - When you log into the Wordpress as admin and navigate to options-general what do you see for Wordpress URL and Blog address? These should contain something like http://192.168.1.110/wordpress not localhost/wordpress.
  • Irene · 2 years ago
    Frank,

    thanks a lot. I found that to be the problem. Blog address had localhost. Stupid error when setting it up a while ago...

    Irene
  • Zeekstah · 1 year ago
    Hey, I love your article, but i have a problem when installing phpmyadmin...

    I've followed your tutorial to the letter (apart from installing gui)

    and when I do "sudo aptitude install phpmyadmin"
    I'm told that the dependency php5mcryp is uninstallable...

    please help!
  • Sam · 1 year ago
    @Zeekstah - Are you spelling this dependency php5mcryp correctly? I can't find anything on it on google. You've got me stumped.
  • Steve · 1 year ago
    The setup was very well presented. I appreciate you taking the time to do it. I am having a problem getting phpmyadmin to work. When I type my server IP/phpmyadmin I get "NOT FOUND the requested URL /phpmyadmin was not found on this server Apache/2.2.4 (Ubuntu) Server at 192.168.1.xxx port 80" Is there something not listed that I need to edit?
  • Sam · 1 year ago
    @Steve - Are you able to view the default apache site when you type the server IP address into a browser? If so then log on to the server and open a browser and try navigating to localhost/phpmyadmin. If this doesn't work, go back over the step 1 to make sure you didn't miss something. Check that the phpmyadmin script is located in /var/www/ and make sure that the site's configuration file in /etc/apache2/sites-available/ directory has an aliias pointing to the phpmyadmin script as per the directions in step 2.
  • Steve · 1 year ago
    I could see the site I made and set up in /home/xxx/public_html. It seems that in Ubuntu 7.1, phpmyadmin is not installed to /var/www/. Instead, it is installed to /usr/share/phpmyadmin. I have changed my alias to match. This gave me a permission error. I got by that and now it gives me a file roller prompt because it doesn't know how to handle a *.phtml. I haven't found an answer to that problem yet. Any suggestions would be great! thanks in advance.
  • Steve · 1 year ago
    I got it. I had to add symbolic links from /etc/apache2/mods-available/php5.conf php5.load in /etc/apache2/mods-enabled. Thanks again for a good setup.
  • optivex · 1 year ago
    thanks for this tutorial - good job :-)
  • Sam · 1 year ago
    @optivex - Thanks for the support.
  • Irwin · 1 year ago
    Great site. Have followed the instructions is no issues except the one with 7.10 putting the phpmyadmin in /usr/share/phpadmin. However, now I've run up against an issue trying to log onto phpmyadmin when trying to log in as root. I get an error #1045 - Access denied for user 'root'@'localhost' (using password: YES). I've tried the blank password, and the password I assigned to root before starting the appache/phpmyadmin install. Can't get passed it. Yes, I'm a newbe.
  • Lingam · 1 year ago
    NameVirtualHost *


    ServerName www.trial.com
    ServerAlias trial.com
    ServerAdmin webmaster@trial.com
    # DocumentRoot /home/railsfactory/trial/

    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all


    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all


    ProxyPass / balancer://railsapp/
    ProxyPassReverse / balancer://railsapp/

    ErrorLog /var/log/apache2/error.log
    # Log Level
    LogLevel warn
    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"

    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128



    the above is what i configured, but while browsing i have to type http://127.0.0.1:3000 but not http://127.0.0.1, why is that? can someone help me..
  • Sam · 1 year ago
    @Irwin - I am currently running into this problem too. It is a Ubuntu 7.10 issue since I didn't have this problem with 7.04. If I figure it out I will post an update.
  • irwin · 1 year ago
    I ended up having another issue with my setup that prompted me to start the whole install from the beginning, so I put the Ubuntu server CD in and booted up for a fresh install. This time when I came to the phpMyAdmin install, again thanks for the simple, clear, explanation of the steps, everything worked as it was supposed to.

    The only thing I can think of is that somewhere in the first install I must have "fat-fingered" something.

    Thanks again,
  • Andrew · 1 year ago
    Hey Sam,
    By far and the way the easiest tutorial pair I've found on the basics of installing and setting up a LAMP. It was extremely straight forward for me (with the exception of the installation detecting my keyboard wrong, leading to all sorts of weird effects.

    I might have made one change: instead of using Vi as the editor of choice, due to its complex way of editing files that's slightly intimidating for the newly initiated, I would have used Nano which is more straight forward.

    Aside from that, you did a fantastic job!

    Thanks,
    Andrew
  • Sam · 1 year ago
    @Andrew - Thanks for the support. I agree; I should have indicated that vi is difficult for the newly initiated to use. Nano is much easier to master.
  • Bob · 1 year ago
    I downloaded the server version ISO of Ubuntu 7.1 -- 499 megs. The install went normally and everything seemd to configure as noted. I moved on to the next session of setting up Apache. When I looked for an apache2 folder in the /etc/ folder it is not there. Did apache get installed? If not, what do I need to do to install it? Newbe BTW....

    Thanks, Bob
  • Sam · 1 year ago
    @Bob - It sounds to me like Apache is not installed. Try following this post to install Apache. You can also install apache from the command prompt using sudo aptitude install apache2 in the terminal.
  • Bob · 1 year ago
    In my original install I did follow your Ubuntu Lamp setup guide. I decided to do a complete reinstall to see what I had missed. In your section that comments: ", and a plethora of file copying, the install shell will ask you to select optional software to install. Select LAMP (using the arrow keys and spacebar)." This selection step never appeared. I will try the Apache install you recommend but I wonder now what else is missing.
  • sarvesh · 1 year ago
    hi sam,
    i am trying to follow trying to set an apache server.. and followed all the steps. Apache seems to work fine as i can run html files in my site directory using mozilla. But the problem is with cgi.
    CGI files are not working. i even changed the permissions to 777 for my site directory, cgi-bin directory and even for .cgi file
    Error log says

    [Wed Feb 20 20:41:55 2008] [error] [client 192.168.1.25] (8)Exec format error: exec of '/home/biflab/str_db/cgi-bin/abc.cgi' failed
    [Wed Feb 20 20:41:55 2008] [error] [client 192.168.1.25] Premature end of script headers: abc.cgi

    Please help... thanks for this wonderful guide.
  • Sam · 1 year ago
    @sarvesh - It sounds like you may have an error in the code of your cgi program.
  • Sam · 1 year ago
    @Bob - You have me stumped. I have no idea why the install options are not made available to you. Are you performing the install using the graphical shell or the command prompt? All I can suggest is to try to get a fresh copy of Ubuntu and try again. Perhaps the install shell you are using is slightly different then the one I used to write the tutorial.
  • Bob · 1 year ago
    Sam,

    Did another complete install and still did not see the LAMP server selection. When the first batch of files loaded and the disk ejected I ran sudo tasksel install lamp-server and finally got LAMP installed. Then followed your LAMP configuration guide. Appears to works fine using this method. Thanks for your help.

    Bob
  • 0xcc · 1 year ago
    @Lingham - You have to go to port 3000 because that is the default port for Rails. In order to change that you have to go into the config directory of your application and look in the environment.rb or test.rb or development.rb or production.rb file for something like HTTP_PORT (or look for 3000 and change that to 80)
  • Registador · 1 year ago
    Man... let me tell you, that this is the first site that i came across the last 10 or something days (more like nights, cause i work in the day :) since i tryed to change me home network (4 boxes + 1 portable + 2 PS2 + 1 Relook400 + 1 Pinnacle Showtime + 1 Asus Wlan Wireless router with disk, all with need of internet access) to pure Linux using Ubunto. I traveled along many many forums, websites, blogs and others, but this is the first i found that i can really understand.
    Linux seems to be great, the opensource concept seems to be great, the quality and stability surprised me way over what i expected, but i was getting tired of reading too much techno crap wich is made (written) for people who already understand this OS. I on the other hand used windows for over 20 years (set up a few networks in the process, with XP and Window Server) considering myself with some network knowledge and a power computer user. So i was optimistic regarding the fact that i had to learn a new OS and all the new way of handling things, but was very quickly loosing all my initial enthusiasm and joy. You site gave me new courage to continue my quest for the free world. And i really mean this seriously. This is an awesome site and the way you write is greatly appreciated bye people like me i suppose and many many more.
    My really truly congratulations for this huge amount of information and work that you put online for all of us. I hope and wish you all the luck in the world.
  • John Prado · 1 year ago
    Really useful guide.

    Thanks for the help!!
  • Sam · 1 year ago
    @Registador and John Prado - Thanks for the support. I am glad that some people are getting a lot out of these tutorials.
  • teqsun · 1 year ago
    This guide is AMAZING! Taught me all the stuff I should have known and didnt make me look too far to learn it.

    Thanks!
  • Bill Ammon · 1 year ago
    Thanks for the invaluable information!
  • Tom · 1 year ago
    thx for this useful guide,
    really helpful
  • Sam · 1 year ago
    @Bill Ammon, Tom, and teqsun - Thanks for the support.
  • JessMagz · 1 year ago
    hi everyone!

    I used to have a webserver running fine. But after upgrading to ubuntu 8.04 (from 7.10), my webserver is not functioning well. When i used http://127.0.0.1/ it displays "It Works"

    But then when I try http://localhost/, it will browse (in the status bar) http://www.localhost.com/ and returns an error like 'server cannot be contacted" or something like that.

    Please help me with this. What files should I edit and how would i edit them? I mean what changes should I make?

    Im using Ubuntu 8:04LTS

    Thank you.

    Best regards,
    Jess
  • Sam · 1 year ago
    @JessMagz - It sounds like you have a problem with your /etc/hosts file. Open it up. there should be a line that reads 127.0.0.1 localhost. If there isn't then add it. If there is an additional line that looks like ::1 localhost, comment it out. This line could be in the hosts file because you have the IPV6 network module installed. You may need to remove these. I hope this helps.
  • JessMagz · 1 year ago
    Thank you sir! I edited /etc/hosts and followed your advice. I added the line "127.0.0.1 localhost" and now it's working well. Thank you so much!
  • Djodja · 1 year ago
    Thank you so much for this fabulous walkthrough.

    Cheers mate
  • SANweaver · 1 year ago
    Hello,

    I have gone through a kazillion sites and cannot seem to resolve the issue I am having. Seeing how this is the most informative posting I have come across I will try my luck here.

    NO MATTER what I try and which userid I try it under I cannot get connected to the mysql database.
    I CAN connect using: mysql -u sa ~after which I can "show" but never edit.
    I need to change the root password, or at least add another account that I can setup a db to use for phpbb...but no method seems to work with mysql or mysqladmin.

    Any thoughts?

    Thanks, Bill
  • Sam · 1 year ago
    @Bill-Have you installed Apache, MySQL and PHP as per this post? If not, then I would recommend a fresh install. It sounds like perhaps at some point a root user was created but the corresponding password was lost and this is preventing you from accessing MySQL. I don't think I can be of much help other than suggesting a fresh start. Please reply to this comment if you solve the problem or discover more details that may help shed some light on the issue. Good luck.
  • Ergy · 1 year ago
    Dude this was the most amazing tutorial I have ever followed not one glitch was your fault. I am running this on 8.04 and I am eagerly waiting to see what else may have change but i haven't had much errors. Thank you!
  • caligula · 1 year ago
    this guy really knows his shit.. this is an excellent, virtually flawless guide. using it, i was able to install LAMP on an older 486 box with no hitches ...
    kudos to Sam
  • geostasis · 1 year ago
    Sam,

    A million thanks for putting this out there. This was a very clear path for this ubuntu newbie to follow.
  • Dan · 1 year ago
    I've setup page as done in this tutorial which is great. but! i enter the local ip address into my webrowser from another computer on the network to view it and i see...

    Index of /
    Name Last modified Size Description

    --------------------------------------------------------------------------------

    Index.html 06-Jul-2008 23:10 50

    --------------------------------------------------------------------------------


    Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5 with Suhosin-Patch Server at 192.168.1.3 Port 80


    I'm using ubuntu server 8.04

    just wanting to know why it doesnt go straight into that index.html file i created?

    Also how do i go about putting this page on the www? are there any tutorials on this or information i could get on it?
  • Sam · 1 year ago
    @Dan - I think the index.html file name should not be capitalized. Right now apache is not finding the index file and just returning the entire directory contents.
  • Dan · 1 year ago
    so how do i fix this?
  • Dan · 1 year ago
    AHA!

    nvm all is fine now and i can see my page on the net by its wan ip address :D i know what i need to do now. thanks for the help a great guide you have written.
  • Kathryn · 1 year ago
    Hey thanks for the tutorial. It was pretty good, but I installed Ubuntu 8.04 on my system and following your instructions I got almost everything up and running except the php module. The version of php I was able to get was php5, which did require some additional configuring of the settings in ubuntu server so that from the webmin panel I can now administer the PHP module, however, from the very begining, from following your instructions on that part of it, I was never able to pull up the corresponding web page that this tutorial directed me to (xxx.xxx.xxx.xxx/phpmyadmin) where (according to this tutorial) I have to log in.

    The message I get is "xxx.xxx.xxx.xxx has sent an incorrect or unexpected message. Error Code:-12263". When I clicked "ok" on the message it took me to the webmin manager. In another browser I got the message "Safari can’t open the page “http://xxx.xxx.xxx.xxx/phpmyadmin” because it couldn’t establish a secure connection to the server “xxx.xxx.xxx.xxx”."

    In the webmin panel under the apache server configuration file, when I inserted the "Include" and "Alias" links at the end of the file / page, and then returned to the apache server management panel, and selected "Apply Changes" I got the following error message "[Fri Aug 29 22:59:28 2008] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. Syntax error on line 301 of /etc/apache2/apache2.conf: Alias takes two arguments, a fakename and a realname"

    I don't understand what to do here. When I follow the php link, what page am I supposed to see? is it the webmin panel? And what do I do about the error messages?
  • nasser · 1 year ago
    very very clear Guide

    thank you very much
  • Brandon · 1 year ago
    Both of your tutorials that i've read are clear and clean. Very easy to read and understand for the newest of noobs..
    Thanks alot for taking the time to write em..
  • jkhintoncpbd · 1 year ago
    Hello, I have been trying your lamp server guide best one I've found yet very clearly written. I have 2 systems of 8.04 Kubuntu running the Lamp now. I have been trying to repeat this set up on my laptop using Xubuntu. I had first tried placing my web development files in the /var/www/mywebfolder when trying to write to this folder I kept running into the greyed out dialog boxes that stated they were read only. Then I found your guide and tried to copy the web files into my /home/james/mywebfolder this worked like a top. The permissions here were not greyed out and they said read or write. I then copied the /etc/apache2/sites-available default to a new file called etc/apache2/sites-available/zaphu then I made the changes as instructed in your guide when finished tried to save the file ran into the could not write to file error. I then checked the properties,permissions on this file and found the same greyed out dialog boxes stating read only. How can I change these greyed out boxes to read & write priviledges? Please help this is driving me nuts.
  • jkhintoncpbd · 1 year ago
    Hello, I am a new user of Ubuntu, you have a great guide for us newbies here Thank you very much. I do have a few problems. I now have 2 desktops running Kubuntu Lamps and have my existing web files loaded. I am trying to develop the same Lamp on my old notebook system using Xubuntu. I first tried coping my web files to the /var/www/mywebfolder as I did with the 2 Kubuntu systems. I ran into the can not write to folder error. I checked the folder properties,permissions and found the greyed out dialog boxes stating read only. I then found your guide and made a new folder in my /home/james/ mywebfolder directory. I was then able to copy all my existing web files to the ../ mywebfolder. I then proceded to copy the /etc/apache2/sites-available/default to the new /etc/apache2/sites-available/zaphu made the instructed changes and then tried to save. I ran into the same permissions problem and all the dialog boxes were greyed out so I could not write the changes. How can I open these files with read & write privilidges? Is this just a Xubuntu problem? Please help this is driving me nuts.
  • dstevens · 1 year ago
    Worked like a charm. Phpmyadmin installed and working. Cgi-bin installed & working - tested using short script from http://johnbokma.com/mexit/2007/01/05/simple-pe...

    Easy to follow, accurate, good job!
  • tinel · 1 year ago
    Great guide !!! Thanks.
    The only line that is missing is:
    sudo apt-get install mysql-server
  • David · 1 year ago
    Extremely useful
  • rActive · 1 year ago
    Great walkthru for a noob, well done and thanks
  • Mats · 1 year ago
    Yepp, this guide really helped me out alot. Thanks for making the time to help out!
  • piasek · 12 months ago
    Hey I have problem with phpmyadmin, apache2 is workig i have install mysql-server and phpmyadmin and when i try open phpmyadmin via webpage i got this error:

    Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpmyadmin/index.php) is not within the allowed path(s): (/home/piasek/workspace) in Unknown on line 0
    Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
    Fatal error: Unknown: Failed opening required '/usr/share/phpmyadmin/index.php' (include_path='.') in Unknown on line 0

    can u help me?
  • chee · 11 months ago
    Thank you for sharing
  • winelf · 11 months ago
    Thank you >*bow*< Before I found your information, I found lots of information on the web that was totally useless to me. It may be fine for those who actually don't sit down and break both thumbs, but for me it left huge things to the imagination. I have a very wild imagination so I was off the deep end most of the time. I was beyond depressed and actually thinking Windows might have an advantage (something I didn't want to give it) Then, I stumbled onto your site and am a very happy camper. I can not thank you enough. I hope I can return the favor one day.
  • Lupo · 11 months ago
    Thanks, I a NewBie and this GREAT STUFF. Now in need to work on Apache Security.
  • Jesse Eckert · 11 months ago
    Thanks for you help. I don't know where i would be with out it
  • Prashant · 9 months ago
    Thanks for the tutorial. It was a great help to me. I was struggling with trying to setup CGI for a whole day before I found your tutorial
  • Daniel · 9 months ago
    great well done was just wat i was looking for thanks
  • ludicrous · 8 months ago
    Well, thanks so much for the easy to understand instructions and I am able to see a newly created index file on my LAN but I still do not understand how to see my index. file from the wan. Do I need to complete steps two and three and then setup security?
  • ludicrous50 · 8 months ago
    Thanks for the easy to understand instructions. My next step is be able to see my newly created index file from the wan. Do I have to complete steps 2 and 3 and then setup security? Can you point me in a direction to get this understanding?
  • ludicrous50 · 8 months ago
    Thank you for this easy to do guide. Can you tell me what I have to do see this new index file on the wan? Do I need to complete steps 2 and 3 and evenually setup security or is security the reason I can not see it on the wan?
  • rus kizlar · 8 months ago
    Thank You
  • fouad kada · 7 months ago
    thanks a lot....however i found something missing...
    you need to also run the following command: sudo a2enmod userdir
    in order for it to work
  • Rabindra Karki · 7 months ago
    This is very very good stuff for new learner thanks
  • ubuntuuser09 · 7 months ago
    Very helpful, thank you.
  • gajan · 7 months ago
    hello hello. here is gajan. my style good. gajan big boy, gajan people love. fuck everybody her. gajan fuck linux in ass
  • Mike · 6 months ago
    Thanks. Great initial how-to.
  • CeeGee · 6 months ago
    Best and easiest help I have seen on the web today!!!

    THANKS!
  • Tomek5503 · 4 months ago
    The best one i could find!
  • Xtrigit · 4 months ago
    I am new to this and I am having some difficulties.

    1st: When I type in localhost or 127.0.0.1, i get "-bash: localhost: command not found"
    When I put my server's ip on the address bar, i get "It works" Is it necessary to correct the "command not found" problem from server?

    2nd. Step number 1, how do you create a directory? can you post the command, please?

    thanks. :)
  • chenxiaolong · 2 months ago
    mkdir /you/folder/you/want/to/create/ or sudo mkdir /folder/here/
  • Xtrigit · 4 months ago
    Where'd my question go? :S