Questions tagged [public-html]

141 questions
0
votes
1 answer

Laravel 7, how to avoid image upload to app/public/ but instead public_html directory

I am trying to upload the image to ./../public_html directory in laravel 7. However, the image always goes to lsapp/app/public/ directory. In my Controller, $storagePath = $request->donation_poster->storeAs('public/donation-poster',…
0
votes
0 answers

public_html permission error for htaccess

i'm seeing following error continuously in the cPanels error log: [core:crit] [pid 36081] (13)Permission denied: [client 66.240.192.138:59520] AH00529: /home//public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is…
Nishu Ali
  • 13
  • 6
0
votes
0 answers

PHP SSH2 Connection, ssh2_exec does not seem to support Executing dirname(__DIR__) or $_SERVER['DOCUMENT_ROOT'] on Remote Server

I been trying for hours to get the name of the public folder on a remote server using an ssh2 connection. On some servers the public directory is "public_html" but others may be "htdocs". I don't want to hard code the name in my code, much better to…
Jim Dandy BOA
  • 533
  • 7
  • 13
0
votes
1 answer

Laravel8 storage link won't work on production

I have problems with the storage link in Laravel8, everything was working correctly until I moved the project from localhost to hosting, it works with public_html and I have it structured as…
0
votes
1 answer

how to manage routing of 2 different angular apps in the same public_html folder

i have 2 angular apps on the same directory (public_html) one is the main app which has its own routes. and the second is folder inside the main app which also have routes. i have a problem when i want to navigate to a route in the seconds app and…
Or Shalmayev
  • 295
  • 1
  • 12
0
votes
1 answer

Accidently deleted files in cPanel home directory

I just wanted to delete the files under the public_html folder. But accidentally I deleted all the files under the home directory, like- etc, logs, mail, public_html, public_ftp, ssl, tmp, www. I have no backup. Now, I just created the public_html…
0
votes
1 answer

Laravel 8 project deploy to shared hosting - security issues and public_html folder

I was able to deploy my laravel 8 application as and addon domain on inmotion shared hosting based on the following article https://medium.com/backenders-club/how-to-host-a-laravel-project-on-a-shared-hosting-via-cpanel-d955d32c528e However, there…
0
votes
0 answers

Find real index file in public directory in live server. main index encrypted

In my Public_html directory. there is an index file which code showing like the following screenshot: I want to edit my menu. How can I get my main HTML file.. and what is this actually? I can browse my domain easily. There is not any problem but I…
0
votes
1 answer

How do you disable a parent directory but not a child sub directory in /public_html

My basic problem is I am using node.js server in a vps apache server. So in my .htaccess file in the /public_html directory RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$…
nlstm
  • 75
  • 5
0
votes
1 answer

How to link directory to public_html?

I have ~/public_html and few subdirectories with sites inside. But I have also ~/projects with all my projects (not only websites). I'm trying to link ~/projects/X with ~/public_html/X. ln -s ~/projects/X ~/public_html/X But I have error 403,…
ciembor
  • 7,189
  • 13
  • 59
  • 100
0
votes
1 answer

Load Server Side in iFrame instead of URL

Is it possible iframe a source file from the server instead of a URL meaning instead of ---> Instead of