Grow your CSS skills. Land your dream job.

Who uses LAMP, who uses XAMPP?

  • NIX
    # June 29, 2013 at 2:16 am

    The web root is var/www but the permission bit is what I’m confused on. Are all these settings in httpd.conf?

    # June 29, 2013 at 11:47 pm

    No; it’s a linux thing. Nothing to do (specifically) with Apache.

    Linux is all about users/permissions. You and Apache are different users (Apache probably runs under “apache” or “www-data”), and you’re probably in different user groups, too. When you add/create files in the web root, Apache might not have the necessary privileges to access them.

    open a terminal and do

    $ ls -la /var/www
    $ ps aux | grep apache

    post the results from each command.

    NIX
    # June 30, 2013 at 12:18 am

    Well, that would be the problem. After 3 years, I’m still a Linux novice.

    I will do as soon as I’m on my laptop.

    NIX
    # July 4, 2013 at 2:54 pm

    First command shows this:

    total 20
    drwxr-xr-x. 5 root root 4096 May 17 06:22 .
    drwxr-xr-x. 20 root root 4096 May 24 13:12 ..
    drwxr-xr-x. 2 root root 4096 May 17 06:23 cgi-bin
    drwxr-xr-x. 6 root root 4096 Jun 25 13:07 html
    drwxr-xr-x. 2 root root 4096 May 15 17:28 usage

    Second shows this:

    apache 1575 0.0 0.2 550636 10756 ? S Jul03 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 1576 0.0 0.2 550636 9868 ? S Jul03 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 1578 0.0 0.2 550636 10028 ? S Jul03 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 1579 0.0 0.2 550636 9824 ? S Jul03 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 1580 0.0 0.2 550636 10028 ? S Jul03 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 4349 0.0 0.2 550636 9864 ? S 01:11 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 4352 0.0 0.2 550636 9864 ? S 01:11 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 4353 0.0 0.2 550636 9876 ? S 01:11 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 4354 0.0 0.2 550500 9116 ? S 01:11 0:00 /usr/sbin/httpd -DFOREGROUND
    apache 4355 0.0 0.2 550500 9116 ? S 01:11 0:00 /usr/sbin/httpd -DFOREGROUND
    joe 5208 0.0 0.0 109184 880 pts/0 S+ 12:52 0:00 grep –color=auto apache

    # July 4, 2013 at 3:55 pm

    okay; apache is running under the `apache` group. try adding your user to the apache group:

    $ sudo usermod -a -G apache Joe_Temp
    $ #or whatever your user name is

    you _might_ need to add group write permissions (but try first; no need unless there’s problems):

    $ sudo chmod -R 0775 /var/www

    # May 30, 2014 at 8:51 pm

    I installed WAMP (widows version onLAMP) on my windows machine but I couldn’t get it to work, since I had IIS installed and didn’t want to remove it. I tried to change the port but no luck. Then I decided to get my hand more dirty so I installed Linux mint which is pretty awesome and XAMPP. It was really straightforward.

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".