Laravel 8.52 application unable to load application(page not found) without appending index.php/ infront of the url - laravel

I am running on Laravel 8.52 application. Web is hosted by Apache 2.4.41. the folder directory of my web root is /var/www/new.com/html
drwxrwxr-x 8 www-data www-data 4096 Feb 2 19:24 assets
drwxrwxr-x 12 www-data www-data 4096 Feb 7 15:39 core
-rwxrwxr-x 1 www-data www-data 1739 Feb 2 19:25 index.php
core is the folder that housed my laravel application. index.php is the laravel index file.
/var/www/new.com/html/core$ ls -la
total 960
drwxrwxr-x 12 www-data www-data 4096 Feb 7 15:39 .
drwxrwxr-x 6 www-data www-data 4096 Feb 7 20:08 ..
drwxrwxr-x 10 www-data www-data 4096 Feb 2 19:24 app
-rwxrwxr-x 1 www-data www-data 1686 Feb 2 19:24 artisan
drwxrwxr-x 3 www-data www-data 4096 Feb 2 19:24 bootstrap
-rwxrwxr-x 1 www-data www-data 2335 Feb 2 19:24 composer.json
-rwxrwxr-x 1 www-data www-data 355511 Feb 2 19:24 composer.lock
drwxrwxr-x 2 www-data www-data 4096 Feb 2 19:24 config
drwxrwxr-x 5 www-data www-data 4096 Feb 2 19:24 database
-rwxrwxr-x 1 www-data www-data 220 Feb 2 19:45 .editorconfig
-rwxrwxr-x 1 www-data www-data 977 Feb 6 23:51 .env
-rwxrwxr-x 1 www-data www-data 111 Feb 2 19:24 .gitattributes
-rwxrwxr-x 1 www-data www-data 191 Feb 2 19:24 .gitignore
-rwxrwxr-x 1 www-data www-data 707 Feb 7 00:07 .htaccess
-rwxrwxr-x 1 www-data www-data 730 Feb 2 19:24 package.json
-rwxrwxr-x 1 www-data www-data 521192 Feb 2 19:24 package-lock.json
-rwxrwxr-x 1 www-data www-data 1202 Feb 2 19:24 phpunit.xml
drwxrwxr-x 2 www-data www-data 4096 Feb 6 23:12 public
-rwxrwxr-x 1 www-data www-data 3780 Feb 2 19:24 README.md
drwxrwxr-x 4 www-data www-data 4096 Feb 2 19:24 resources
drwxrwxr-x 2 www-data www-data 4096 Feb 2 19:24 routes
-rwxrwxr-x 1 www-data www-data 563 Feb 7 15:39 server.php
drwxrwxr-x 6 www-data www-data 4096 Feb 2 19:24 storage
-rwxrwxr-x 1 www-data www-data 181 Feb 2 19:24 .styleci.yml
drwxrwxr-x 4 www-data www-data 4096 Feb 2 19:24 tests
drwxrwxr-x 49 www-data www-data 4096 Feb 2 19:25 vendor
-rwxrwxr-x 1 www-data www-data 549 Feb 2 19:24 webpack.mix.js
my apache virtual host config is
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster#new.com
ServerName new.com
ServerAlias www.new.com
DocumentRoot /var/www/new.com/html
DirectoryIndex index.php
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/www.new.com.crt
SSLCertificateKeyFile /etc/ssl/private/www.new.com.key
<Directory "/var/www/new.com/html">
Options FollowSymLinks MultiViews
Order Allow,Deny
Allow from all
</Directory>
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
and i dont use .htaccess on the web root folder.
the problem is, I can load the domain successfully. e.g https://www.new.com
but there is a laravel app called admin can't loaded through https://www.new.com/admin
it returned page not found, The requested URL was not found on this server.
However, it can loaded successfully, if I enter https://www.new.com/index.php/admin
so how do I go about fixing it, without additionally enter the /index.php/
Thanks.
Cheers.
I have tried configuring .htaccess at the web root folder, but none of the parameters that i tested work.
I have tried remove the virtual host config and use /var/www/html as the web root folder instead.
I have tried just the port 80 only.
Not of the above the method works. It should be clear that the problem could be lie with laravel and not apache2.
here is my index.php at the webroot.
<?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is maintenance / demo mode via the "down" command we
| will require this file so that any prerendered template can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists(__DIR__.'/core/storage/framework/maintenance.php')) {
require __DIR__.'/core/storage/framework/maintenance.php';
}
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
require __DIR__.'/core/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/core/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(

Related

Cant access images and files in laravel public directory - 403 Forbidden - digitalocean

I deployed my laravel project on digital ocean LEMP .
What is the problem I have?
The problem I have is that images, css and js files are not loaded from public folder. It seems like I have a problem with permissions.
I have these folders in Public folder:
img,
photos,
css,
js,
After inspect i find this error :
Status Code: 403 Forbidden
This is the root folder permission:
drwxrwxr-x 13 www-data www-data 4096 Nov 9 16:36 laravelproject
Project folders permissions:
-rw-rw-r-- 1 www-data www-data 3851 Nov 9 16:29 README.md
drwxrwxr-x 10 www-data www-data 4096 Nov 9 16:29 app
-rwxrwxr-x 1 www-data www-data 1686 Nov 9 16:29 artisan
drwxrwxr-x 3 www-data www-data 4096 Nov 9 16:29 bootstrap
-rw-rw-r-- 1 www-data www-data 2116 Nov 9 16:29 composer.json
-rw-rw-r-- 1 www-data www-data 344507 Nov 9 16:29 composer.lock
drwxrwxr-x 2 www-data www-data 4096 Nov 9 16:29 config
drwxrwxr-x 5 www-data www-data 4096 Nov 9 16:29 database
-rw-rw-r-- 1 www-data www-data 743285 Nov 9 16:29 package-lock.json
-rw-rw-r-- 1 www-data www-data 768 Nov 9 16:29 package.json
-rw-rw-r-- 1 www-data www-data 1202 Nov 9 16:29 phpunit.xml
drwxr-xr-x 10 www-data www-data 4096 Nov 9 16:29 public
drwxrwxr-x 9 www-data www-data 4096 Nov 9 16:29 resources
drwxrwxr-x 2 www-data www-data 4096 Nov 9 16:29 routes
-rw-rw-r-- 1 www-data www-data 563 Nov 9 16:29 server.php
drwxrwxr-x 5 www-data www-data 4096 Nov 9 16:29 storage
drwxrwxr-x 4 www-data www-data 4096 Nov 9 16:29 tests
drwxrwxr-x 60 www-data www-data 4096 Nov 9 16:31 vendor
-rw-rw-r-- 1 www-data www-data 679 Nov 9 16:29 webpack.mix.js
Public folder Content Permissions:
drwxr-xr-x 5 www-data www-data 4096 Nov 9 16:29 assets
drwxr-xr-x 4 www-data www-data 4096 Nov 9 16:29 backend
drwxr-xr-x 4 www-data www-data 4096 Nov 9 16:29 css
-rwxr-xr-x 1 www-data www-data 0 Nov 9 16:29 favicon.ico
drwxr-xr-x 3 www-data www-data 4096 Nov 9 16:29 fonts
drwsr-sr-x 5 www-data www-data 4096 Nov 9 16:29 img
-rwxr-xr-x 1 www-data www-data 1735 Nov 9 16:29 index.php
drwxr-xr-x 2 www-data www-data 4096 Nov 9 16:29 js
drwxr-xr-x 2 www-data www-data 4096 Nov 9 16:29 langs
-rwxr-xr-x 1 www-data www-data 173 Nov 9 16:29 mix-manifest.json
-rwxr-xr-x 1 www-data www-data 24 Nov 9 16:29 robots.txt
drwxr-xr-x 3 www-data www-data 4096 Nov 9 16:29 vendor
-rwxr-xr-x 1 www-data www-data 1183 Nov 9 16:29 web.config
Nginx log
2021/11/09 19:00:57 [error] 48608#48608: *92 access forbidden by rule
In case someone faced an issue like this.
If you're running Linux, most likely it's a read/write permission problem, to solve these problems, do the following:
Before doing the steps below, be sure to be outside of your Laravel folder
Assuming that your user should be the owner, type the following command:
sudo chown -R user:www-data /path/of/your/laravel/project
Then give the user and webserver permissions as follows:
sudo find /var/www/project -type f -exec chmod 664 {} ;
then run:
sudo find /var/www/project -type d -exec chmod 775 {} ;
After you run those commands, go to your Laravel folder and give the webserver rights to read/write to your bootstrap/cache and storage folder:
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
It should solve not only your problem but also solves your project security.

Laravel Spark - missing PHP file PreventRequestsDuringMaintenance

I have an old version of Spark running so decided to upgrade my license and start testing a new installation. First, I installed a vanilla Laravel, that worked.
Next, I followed the documentation from https://spark.laravel.com/docs/11.0/installation and I am on Ubuntu 18.04. There were some issues with an older version of node and npm but I finally have them figured out. All commands are successfully, so after doing PHP artisan migrate I checked the website but I am seeing:
Target class [App\Http\Middleware\PreventRequestsDuringMaintenance] does not exist.
Illuminate\Container\Container::build
vendor/laravel/framework/src/Illuminate/Container/Container.php
And indeed, when I checked the folder:
root#spark10:/var/www/html/spark/app/Http/Middleware# ls -al
total 44
drwxr-xr-x 2 www-data www-data 4096 Oct 31 20:46 .
drwxr-xr-x 4 www-data www-data 4096 Oct 31 09:17 ..
-rw-r--r-- 1 www-data www-data 469 Oct 31 09:17 Authenticate.php
-rw-r--r-- 1 www-data www-data 335 Oct 31 09:17 CheckForMaintenanceMode.php
-rw-r--r-- 1 www-data www-data 294 Oct 31 09:17 EncryptCookies.php
-rw-r--r-- 1 www-data www-data 568 Oct 31 18:34 RedirectIfAuthenticated.php
-rw-r--r-- 1 www-data www-data 340 Oct 31 09:17 TrimStrings.php
-rw-r--r-- 1 www-data www-data 354 Oct 31 09:17 TrustHosts.php
-rw-r--r-- 1 www-data www-data 441 Oct 31 09:17 TrustProxies.php
-rw-r--r-- 1 www-data www-data 307 Oct 31 09:17 VerifyCsrfToken.php
Interestingly, when I examine the PreventRequestsDuringMaintenance.php online, I see:
https://github.com/laravel/laravel/commit/e471dd1cf09907b2d325f5ef4a9aefc4b1f2e5c5#diff-f98b07c0f713c816a5c288db58fcd03aab070df160a3bf47b6feb035d3f8ca2c
that it is renamed from CheckForMaintenanceMode to PreventRequestsDuringMaintenance
I created a new file PreventRequestsDuringMaintenance.php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware;
class PreventRequestsDuringMaintenance extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* #var array
*/
protected $except = [
//
];
}
And while I am writing this question, I see I messed up some names and after fixing that I see the Spark login. So I fixed it already, still posting this question because it might help some other poor chap.

Apache will not deliver resources in sub directories of /var/www/html

I currently have a server running Ubuntu 18.04 with Apache2. I am not able to access png's and svg files in sub directories. Example: /var/www/html/icons/new.svg when the page is located in /var/www/html/index.php. However, Apache will deliver images from within the page directory so all photos within /var/www/html will be delivered.
The error code for the images is just a plain 404. I am able to access pages within /var/www/html/sub/index.php. All images are using relative links if that matters.
I do have a non verified ssl on my server but even on plain http it doesn't deliver if that matters.
It's probably a dumb question but thanks for your time anyways.
All Code worked on a local wamp server before being put on a lamp server.
Example Code:
<img src="icons/new.svg"> <!--Wont work-->
<img src="logo.svg"> <!--Will Work-->
Inside /var/www/html
drwxr-xr-x 6 root root 4096 Jun 26 18:04 .
drwxr-xr-x 3 root root 4096 Jun 22 18:55 ..
drwxr-xr-x 4 root root 4096 Jun 26 17:50 icons
-rw-r--r-- 1 root root 4340 Jun 26 18:11 index.php
-rw-r--r-- 1 root root 4172 Jun 26 18:11 logo.svg
-rw-r--r-- 1 root root 1856 Jun 26 18:11 mainstyle.css
drwxr-xr-x 2 root root 4096 Jun 26 17:50 PHP
drwxr-xr-x 2 root root 4096 Jun 26 17:50 plandetails
drwxr-xr-x 2 root root 4096 Jun 26 17:50 planicons
-rw-r--r-- 1 root root 295915 Jun 26 18:11 searchbkg.jpg
-rw-r--r-- 1 root root 7366 Jun 26 18:11 searchbkg.svg
Inside the icons folder
drwxr-xr-x 4 root root 4096 Jun 26 17:50 .
drwxr-xr-x 6 root root 4096 Jun 26 18:04 ..
-rw-r--r-- 1 root root 446 Jun 26 18:37 arrowleft.svg
-rw-r--r-- 1 root root 446 Jun 26 18:37 arrowrt.svg
-rw-r--r-- 1 root root 7863 Jun 26 18:37 bestoffer.svg
-rw-r--r-- 1 root root 4024 Jun 26 18:37 free.svg
-rw-r--r-- 1 root root 477 Jun 26 18:37 informationbubble.svg
-rw-r--r-- 1 root root 3404 Jun 26 18:37 new.svg
drwxr-xr-x 2 root root 4096 Jun 26 17:50 plans
drwxr-xr-x 2 root root 4096 Jun 26 17:50 prices
-rw-r--r-- 1 root root 2272 Jun 26 18:37 save.svg
Updated /var/www/html perms
drwxr-xr-x 6 root root 4096 Jun 26 18:04 .
drwxr-xr-x 3 root root 4096 Jun 22 18:55 ..
drwxr-xr-x 4 root root 4096 Jun 26 17:50 icons
-rw-r--r-- 1 root root 4340 Jun 26 18:37 index.php
-rw-r--r-- 1 root root 4172 Jun 26 18:37 logo.svg
-rw-r--r-- 1 root root 1856 Jun 26 18:37 mainstyle.css
drwxr-xr-x 2 root root 4096 Jun 26 17:50 PHP
drwxr-xr-x 2 root root 4096 Jun 26 17:50 plandetails
drwxr-xr-x 2 root root 4096 Jun 26 17:50 planicons
-rw-r--r-- 1 root root 295915 Jun 26 18:37 searchbkg.jpg
-rw-r--r-- 1 root root 7366 Jun 26 18:37 searchbkg.svg
For anyone wondering I used the combination of the help below and this
This is not a php question, this is an apache question and is a matter of permissions, try:
chmod a+rx /var/www/html/sub/
and
chmod a+r /var/www/html/*
EDIT:
Your Virtual Host should be:
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>

run laravel application on red hat

I am trying to run laravel application on RHEL-7.3 for that I have installed apache and php I have uploaded the code inside /var/www/html folder I set the permission of laravel 777 and storage folder 777.
I can run the code using php artisan serve but in error log I get the error
[Sun Jul 02 09:15:19.810149 2017] [:error] [pid 10328] [client 182.72.84.254:58880] PHP Fatal
error: Uncaught UnexpectedValueException: The stream or file
"/var/www/html/kyowebservice/storage/logs/laravel.log" could not be opened: failed to open
stream: Permission denied in
I don't know what permission do I need to put in order to run laravel in red hat.
ls -la inside laravel :
drwxr-xr-x. 5 root root 98 Jul 2 08:59 .
drwxrwxrwx. 4 root root 33 Jul 2 08:59 ..
-rwxr-xr-x. 1 root root 20 Jul 2 06:38 info.php
drwxr-xr-x. 12 ec2-user ec2-user 4096 Jul 2 08:47 kyolabdemo
-rwxr-xr-x. 1 ec2-user ec2-user 97966762 Jul 2 08:44 kyolabdemo.zip
drwxr-xr-x. 12 ec2-user ec2-user 4096 Jul 2 10:13 kyowebservice
drwxr-xr-x. 13 apache apache 4096 Jul 2 08:55 laravel
ls -la insdie kyowebservice:
drwxr-xr-x. 12 ec2-user ec2-user 4096 Jul 2 10:13 .
drwxr-xr-x. 5 root root 98 Jul 2 08:59 ..
-rwxr-xr-x. 1 ec2-user ec2-user 1905 Jul 2 08:05 api
drwxr-xr-x. 10 ec2-user ec2-user 4096 Jul 2 08:05 app
-rwxr-xr-x. 1 ec2-user ec2-user 1646 Jul 2 08:05 artisan
drwxr-xr-x. 3 ec2-user ec2-user 54 Jul 2 08:05 bootstrap
-rwxr-xr-x. 1 ec2-user ec2-user 1305 Jul 2 08:05 composer.json
-rwxr-xr-x. 1 ec2-user ec2-user 128082 Jul 2 08:05 composer.lock
drwxr-xr-x. 2 ec2-user ec2-user 228 Jul 2 10:17 config
drwxr-xr-x. 5 ec2-user ec2-user 72 Jul 2 08:05 database
-rwxr-xr-x. 1 root root 236 Jul 2 10:15 .env
-rw-r--r--. 1 root root 31 Jul 2 10:13 .env6
drwxr-xr-x. 8 ec2-user ec2-user 163 Jul 2 08:05 .git
-rwxr-xr-x. 1 ec2-user ec2-user 61 Jul 2 08:05 .gitattributes
-rwxr-xr-x. 1 ec2-user ec2-user 103 Jul 2 08:05 .gitignore
-rwxr-xr-x. 1 ec2-user ec2-user 503 Jul 2 08:05 gulpfile.js
-rwxr-xr-x. 1 ec2-user ec2-user 69411 Jul 2 08:05 index.html
-rwxr-xr-x. 1 ec2-user ec2-user 69411 Jul 2 08:05 index.html.1
-rwxr-xr-x. 1 ec2-user ec2-user 212 Jul 2 08:05 package.json
-rwxr-xr-x. 1 ec2-user ec2-user 1026 Jul 2 08:05 phpunit.xml
drwxr-xr-x. 8 ec2-user ec2-user 191 Jul 2 08:05 public
-rwxr-xr-x. 1 ec2-user ec2-user 1918 Jul 2 08:05 readme.md
drwxr-xr-x. 5 ec2-user ec2-user 45 Jul 2 08:05 resources
-rwxr-xr-x. 1 ec2-user ec2-user 567 Jul 2 08:05 server.php
drwxr-xr-x. 5 ec2-user ec2-user 46 Jul 2 08:05 storage
drwxr-xr-x. 2 ec2-user ec2-user 49 Jul 2 08:05 tests
drwxr-xr-x. 29 ec2-user ec2-user 4096 Jul 2 08:06 vendor
I found solution for this question it has nothing to do with linux permission. In redhat there is something called SElinux. I disabled SE linux in Redhat and it worked, for that I edited file :/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
I edited SELINUX=disabled and then restart server and laravel will work.

Difference access between the server and my computer mac

I retrieve a project in symfony 1.4 . The project is currently running on an Ubuntu server (LAMP). When I run the project on my Mac , the photos do not appear yet the path is good . I think it is a problem of access rule but i am not an expert.
I Thank You in advance to help me.
As attachment files of my mac and the server.
On my mac :
-rwxrwxrwx 1 vincentmoulene _www 204 17 fév 22:43 README.md
drwxrwxrwx 17 vincentmoulene _www 578 14 jan 22:51 apps
drwxrwxrwx 5 vincentmoulene _www 170 4 mar 22:26 cache
drwxrwxrwx 8 vincentmoulene _www 272 26 fév 11:17 config
-rw-r--r-- 1 vincentmoulene _www 4478 3 mar 17:08 connection_sequel.spf
drwxrwxrwx 5 vincentmoulene _www 170 4 mar 22:26 data
-rwxrwxrwx 1 vincentmoulene _www 3263056 6 fév 12:20 emoovio_2015-02-06.sql
-rwxrwxrwx 1 vincentmoulene _www 3325677 16 fév 18:08 emoovio_2015-02-16.sql
-rwxrwxrwx 1 vincentmoulene _www 11510 14 jan 20:44 index.html
drwxrwxrwx 8 vincentmoulene _www 272 6 fév 16:58 lib
drwxrwxrwx 57 vincentmoulene _www 1938 26 fév 16:02 log
-rw-r--r-- 1 vincentmoulene _www 1364 2 mar 12:19 main.cf
drwxrwxrwx 4 vincentmoulene _www 136 14 jan 21:15 nbproject
drwxrwxrwx 4 vincentmoulene _www 136 14 jan 22:49 plugins
drwxrwxrwx 6 vincentmoulene _www 204 6 fév 16:58 sfFormExtraPlugin
-rwxrwxrwx 1 vincentmoulene _www 446 14 jan 20:44 symfony
drwxrwxrwx 6 vincentmoulene _www 204 6 fév 16:58 test
drwxrwxrwx 17 vincentmoulene _www 578 2 mar 15:29 web
On the server :
drwxrwxrwx 12 777 root 4096 Feb 26 10:08 ./
drwxr-xr-x 3 root root 4096 Dec 17 13:17 ../
drwxrwxrwx 14 www-data www-data 4096 Feb 3 2014 apps/
drwxrwxrwx 4 777 www-data 4096 Feb 25 14:55 cache/
drwxrwxrwx 3 www-data www-data 4096 Dec 29 10:35 config/
drwxrwxrwx 4 www-data www-data 4096 Dec 29 10:35 data/
-rwxrwxrwx 1 root root 11510 Dec 17 13:17 index.html*
drwxrwxrwx 7 www-data www-data 4096 Feb 3 2014 lib/
drwxrwxrwx 3 www-data www-data 4096 Feb 25 15:19 log/
drwxrwxrwx 2 www-data www-data 4096 Feb 2 2014 nbproject/
drwxrwxrwx 3 www-data www-data 4096 Feb 3 2014 plugins/
-rwxrwxrwx 1 www-data www-data 446 Feb 20 2013 symfony*
drwxrwxrwx 5 www-data www-data 4096 Feb 3 2014 test/
drwxrwxrwx 8 www-data www-data 4096 Aug 28 2014 web/
First, I got a functional site to improve it. This site is currently in production and runs on a LAMP stack (Ubuntu 14.04 , ....) .
To work on it , I recover the project . I work on Mac ( MAMP ) .
Indeed, the concern I have is that some pages are not available ... Therefore, I tried to change the rights but to no avail .
Then I tried to run two possibilities:
1) using Apache / Mysql run as www (Apache) and mysql ( mysql) : You do not -have permission to access this server /.../on (error 403).
2) using Apache / Mysql run as user (Apache) and user ( mysql) : The requested URL was not found /.../ on this server (error 404).
And in my apache_error.log : Directory index forbidden by Options directive:

Resources