Questions tagged [public-html]

141 questions
0
votes
0 answers

Directory Indexing - CPanel 500 server error

On CPANEL, I turned directory indexing from default to no indexing and its now showing 500 internal server error. Then I turned it back to default but I am still facing the same error. How can I correct this?
kel
  • 31
  • 4
0
votes
2 answers

Upload file to WWW directory from WordPress theme

I am trying to upload a PHP file to WordPress root folder (www or public_html). How can I do it ? I want to implement it on my theme. I tried with move_uploaded_file , but it's not uploading anywhere.
0
votes
0 answers

Laravel 5 htaccess on shared web. Works both with /public/ URL and without

I am using Laravel 5.4 on shared web hosting. Site is running fine, without any functional problems. I am forcing HTTPS + WWW always. But there are issue with URL path after redirect from invalid/non-existing page. Instead of…
Kristaps J.
  • 325
  • 3
  • 10
0
votes
0 answers

How can I access files outside of "public_html" with webclient or FTP in C#?

I'm just wondering if theres a way to access and read files outside of your "public_html" area of your website/website server with correct and proper credentials, I have previously succeeded in streaming data from file within "public_html" and such…
0
votes
1 answer

Which server directory to place webapp files for a node js application

So I feel like this is a simple question that has just been evading me so hopefully I can get some help here. I have developed a nodejs webapp, the directory structure can be seen in the screenshot below. Eventually, this app will implement a…
crazyCoder
  • 1,552
  • 3
  • 20
  • 25
0
votes
1 answer

Redirect everything to public_html

I can't believe I couldn't find the solution by myself, but here it is. I want Apache to redirect every request like example.com/page.php to example.com/http/page.php. I've found many options on the Internet and on StackOverflow, but none of them…
Urffly
  • 85
  • 1
  • 7
0
votes
1 answer

Rewriting from public_html to root

I try to read many of the answer regarding htaccess but I could not find my way out. Image this architecture in webhosting: root/public_html/subfolder Now with the following code in htaccess file (placed in public_html) I can manage that when the…
0
votes
1 answer

Difference between move_uploaded_file & ftp_put

If i would like to upload an image for example from the client side via php script. which would be better to use as a method move_uploaded_file or ftp_put & why? Another questions; If i would like to create a folder at the so_called public_html or…
M. Nabil
  • 31
  • 1
  • 10
0
votes
0 answers

Tomcat interfering with other website in public_html

I am trying to install Islandora on an server running both drupal and Fedora. Fedora runs on Tomcat, which seems to take of the public_html directory. I believe it is related to this…
detachedhead
  • 173
  • 2
  • 8
0
votes
1 answer

Which directory/folder should I upload my index.html (homae page) in?

this picture features the cpanel of the website I own. Check the image carefully and you will find out that there's "nothing" to be shown in "public_html" folder. But when ever I visit my domain (www.tumajnuri.com) I see the advertising banner of…
Tumaj Nuri
  • 37
  • 7
0
votes
1 answer

Why is my custom php.ini file not loaded site wide while placed in /public_hml?

I created a custom php.ini ... it's located in /public_html. Shouldn't it be valid and used for the whole site and directories under public_html ? It seems not to be loaded e.g. in /public_html/cms/usr I looked for answers on the internet or other…
AFvS
  • 17
  • 3
0
votes
2 answers

Change document root folder in shared server with .htaccess

I'm the admin of an apache server (on a hosting package that allows me to host multiple domains), I've got one domain in public_html (let's call it www.ROOTwebsite.com) and 9 other domains hosted in a folder in the same directory level as the…
0
votes
1 answer

What's the Command to purge/delete all contents in all "public_html" folders?

What's the Command in CentOS to purge/delete all contents in ALL "public_html" folders for all users at once? (I have my web server that I just cloned to make it into a mail server, but I don't want too keep all the public_html files)
0
votes
1 answer

Securing $HOME and public_html on Ubuntu server 14.04 running Apache2 + userdir

I am running Apache2 + userdir on Ubuntu Server 14.04. Users are authenticated against AD and can successfully login to this server via SSH. Each user $HOME has 700 permissions to disallow users to change and read other users files. Directory…
Simon
  • 158
  • 1
  • 7
0
votes
1 answer

Tomcat executes JSP files for only one user

I am working on a server with Apache and Tomcat, which were configured by other person (otherguy). When I put a JSP file (hello.jsp) under the public_html/ folder of 'otherguy', and then I try to access it from the browser…