Xenial -> Apache2 403 forbidden
Simon Quigley
sqawesome99 at gmail.com
Mon Dec 7 21:28:13 UTC 2015
A good thing to look into would be chmod. Do man chmod in the terminal
for more details, but this should change permissions.
On Mon, Dec 7, 2015 at 3:00 PM, CEO of OpenTEK[nologie internasional,
Pty.Ltd.] <opentek at ok.de> wrote:
> Dear friends...
>
> I've found a very weird error. The html pages appear properly but php page
> always appear "403 forbidden".
>
> I have googled to find the solutions by myself but I can't any.
>
> I use xenial ubuntu. Apache:
> root at sussy:~# apache2 -v
> Server version: Apache/2.4.17 (Debian)
> Server built: 2015-11-23T18:52:09
>
> root at sussy:~# cd /etc/apache2/sites-available
> root at sussy:/etc/apache2/sites-available# ls
> 000-default.conf default-ssl.conf opentekbiz.conf
> root at sussy:/etc/apache2/sites-available# cat opentekbiz.conf
> <Directory "/var/www/html">
> Options FollowSymLinks
> AllowOverride None
> Require all granted
> </Directory>
> root at sussy:/etc/apache2/sites-available# a2ensite
> Your choices are: 000-default default-ssl opentekbiz
> Which site(s) do you want to enable (wildcards ok)?
> opentekbiz
> Site opentekbiz already enabled
> root at sussy:/etc/apache2# ls conf-enabled
> other-vhosts-access-log.conf php5-cgi.conf serve-cgi-bin.conf
> root at sussy:/etc/apache2# ls mods-enabled
> alias.conf authn_file.load authz_user.load cgid.conf dir.load
> mpm_worker.conf proxy.conf setenvif.load
> alias.load authz_core.load autoindex.conf cgid.load env.load
> mpm_worker.load proxy.load socache_shmcb.load
> auth_basic.load authz_groupfile.load autoindex.load dav.load mime.conf
> negotiation.conf session.load status.conf
> authn_core.load authz_host.load cache.load dir.conf mime.load
> negotiation.load setenvif.conf status.load
> root at sussy:/etc/apache2#chmod -Rv 755 /var/www/html
> mode of ‘/var/www/html’ retained as 0755 (rwxr-xr-x)
> mode of ‘/var/www/html/index.html’ changed from 0644 (rw-r--r--) to 0755
> (rwxr-xr-x)
> mode of ‘/var/www/html/index.php’ retained as 0755 (rwxr-xr-x)
> root at sussy:/etc/apache2# php -v
> PHP 5.6.16-1 (cli)
> Copyright (c) 1997-2015 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
>
>
> As you can see at http://opentek.biz/index.php
>
> Please tell me my mistake.
>
> Thank you very much in advance.
>
> --
> Let us cut your costs for your business: http://www.opentek.biz
> Ilham Firdaus (CEO).
> BBpin: 5A7D47B1;
> Whatsapp+WeChat+XL: 087786015010;
> Facebook: opentek.tv ;
> Twitter: opentekno ;
> LinkedIn: opentekno ;
> Skype: opentek.biz;
> Yahoo-ID: openteknologieinternasional at yahoo.de;
> GoogleTalk: openteknologieinternasional at gmail.com;
> EMail: ceo at opentek.biz , opentek at ok.de ;
> Mobile: 0062-823 1664 7794, 0062-819 10 353 243;
> Head Quarter:
> OpenTEK[nologie internasional, Pty.Ltd.]
> Jalan Sukarno-Hatta, nomor 766.
> Komplek Graha Panyileukan Asri, Blok C, nomor 2.
> Bandung. Republic of Indonesia - 40614.
>
> --
> www.Ok.de - die kostenlose E-Mail Adresse
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
Have a nice day,
Simon Quigley
tsimonq2
Contact for the Ubuntu US Wisconsin LoCo Team
Lubuntu Quality Assurance Tester
More information about the ubuntu-users
mailing list