php


Laravel website upload on cPanel error


I have been trying to upload the Laravel website on a shared hosting .in the cPanel, file manager root directory I made a folder called Laravel and kept all the files except public files which I have kept in the public_html. I changed my index.php to ../laravel/bootstrap now as far as I know it should be showing a SQL error but it not. It is showing me a blank white page.
When I click on the source code there is no source code. It is totally empty like it is not able to access the views of my Laravel folder and in error logs the error is:
'/ [Tue Mar 21 15:56:28.259166 2017] [core:crit] [pid 19184] (13)Permission denied: [client 182.64.66.54:54866] AH00529: /home/tncpscouriers/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/tncpscouriers/public_html/' is executable, referer: http://tncpscouriers.com"
I have made sure about the PHP version, which is 5.6 and I have double checked the permissions. I have no idea about what the content of .htaccess file should be but this is my .htaccess file:
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
```
Try this
If your application is built in php version 7 then use this .htaccess file.
AddHandler application/x-httpd-php70 .php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
for rest of the php version<7, use this .htaccess file.
AddHandler application/x-httpd-php56 .php .php5 .php4 .php3
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Related Links

how do i allign my div containers using css
mysql data retrieving in multiple tables
wordpress footer.php - Parse error: syntax error, unexpected $end
How to convert mysql to mysqli database connection in the constructor
How to check the inputted date in the form is in yyyy-mm-dd format or not in core php? [duplicate]
special character from array is not working in csv file using php
Replace symbol with preg_replace
Replacing text inside html tags using php curl
Save photo to SQLite database and have PHP read it and display it
Pods - display link to relationship post
Add new context variables to lithium\template\view\adapter\File
How to unit test file_put_contents() with file read/write permitions
How to decrypt password in Laravel 4 when selecting a record from the database using the Eloquent Model Class?
Find subarray in multidimensional array
yii:how to run a function before run submitbutton
WordPress mouse over select option

Categories

HOME
oracle
firebase
svn
keyboard
yaml
systemd
message-queue
code-formatting
typeerror
moodle-api
swift2
hspi
yeoman-generator-angular
colors
amazon-emr
sap-fiori
sslhandshakeexception
ex
webstore
django-rq
mahout-recommender
fresco
pywinauto
asciimath
exe
pst
perfino
backendless
android-service
ccavenue
pyspark-sql
amazon-cloudtrail
unmarshalling
docx4j
substance
toad
ms-media-foundation
custom-keyboard
cmis
restful-architecture
android-canvas
bluemixtools
runtimeexception
gitolite
system-on-chip
oauth2-playground
hdiv
absolute
rightnow-crm
simple-schema
scala-collections
nslayoutconstraint
finder
nsrunloop
seccomp
eclemma
ajaxmin
apache-pig-grunt
node-glob
rails-engines
accessibilityservice
outlook.com
python-cffi
css-paged-media
darwin
alwayson
fiware-bosun
iodocs
xml-signature
lumia-imaging-sdk
git-reset
forio-contour
webaii
windows-taskbar
hyphen
grails-2.3
sql-view
indesign-server
axacropdf
semantic-merge
sfinae
fitch-proofs
netstream
litespeed
asio
snackjs
datacontracts
firefly-mv
nosetests
directshow.net
servlet-container
qcar-sdk
gaelyk
suphp
bass
explicit
3-tier
ppc
levels
community-server
word-automation

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App