Permission of HTDOCS on Ubuntu

Ketika membuat file di htdocs pada ubuntu memang sulit untuk yang baru mengenal ubuntu, isunya karena permission, Nah oleh karena itu kita akan mencoba bagaimana membuat sebuah file di htdocs, bagaimana caranya? yuk ikuti langkah berikut:

Langkah-1
Buka terminal dengan tekan bersamaan ctrl + alt + t.

Langkah-2
Ketik pada terminal who am i

Langkah-3

sudo chown -R username:username /opt/lampp/htdocs

Langkah-4
Masukkan password username

Langkah-5
Update httpd.conf, user daemon menjadi user oktobuntu

sudo gedit /opt/lampp/etc/httpd.conf

<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User oktobuntu
Group daemon
</IfModule>

Langkah-6
done.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s