Questions tagged [public-html]

141 questions
2
votes
1 answer

symfony in a home directory on debian with apache & userdir.conf

After installing symfony in a user's directory (/home/user/public_html/my-project), the web directory does not appear by querying http://nameserver.com/~user/my-project and the following apache error appears by querying…
Laurent
  • 21
  • 1
2
votes
2 answers

TYPO3 create folder mount out of fileadmin

How can I create a folder and give backend user access rights to it, but not inside fileadmin folder, as I don't want this folder to be accessed by browsers. Or is there a way to create a folder inside fileadmin, but not being public?
Donald M
  • 59
  • 5
2
votes
1 answer

How to structure public_html folder

My project is currently accessible like that: website.com/development/views/index.php My question is should I use URL rewriting to hide /development and /views and put index.php in the main /public_html folder or get rid of the /development folder?…
bbking7
  • 85
  • 1
  • 8
2
votes
2 answers

Cpanel - subdomain outside public_html

I had two domains on one hosting account, managed by cpanel. During the second domain installation I opted to use root folder outside public_html because the second site was going to have independent ftp administration not related to the one of the…
lrd
  • 302
  • 2
  • 12
2
votes
4 answers

rails: use ruby in public/index

I'd like to use ruby in my public index.html (e.g. for the stylesheet or a form). But I can't figure out how to do this :S If I rename it to index.html.erb or index.erb it's not recognized by rails. instead my root from the routes is used (which is…
Andre Zimpel
  • 2,323
  • 4
  • 27
  • 42
2
votes
2 answers

Find filepath to public_html directory or it's equivalent using PHP

I'm creating a .php file that will be uploaded to the root directory of a server. I need that .php file to then figure out the path to the public_html folder or it's equivalent. I need to do this because I want my .php file to be able to be uploaded…
Winston
  • 76
  • 1
  • 4
2
votes
2 answers

trying to upload a file to Ftp but getting the error: "file name not allowed"!

So I was trying to upload a 1kb text file to my ftp server but this error comes up: The remote server returned an error: (553) File name not allowed. so what's wrong with my code? WebClient upload = new WebClient(); upload.Credentials = new…
Porphan
  • 153
  • 4
  • 11
1
vote
3 answers

Public git repository

Is it possible to have a git repository on a ssh server public? I have an account on a ssh server and want to use it to store a git repository for a project. We work with 2 people on the project but I can't give the other member my password to the…
Jeremy Knees
  • 652
  • 1
  • 7
  • 21
1
vote
7 answers

Why won't my web browser reflect changes I made on the server?

This is as simple as it gets. My school provides us with a personal storage that can be used for a webpage. Its the standard http://www.example.com/~studentname type deal. Previously, I would make changes to an index.html file and upload in using…
Derrick
  • 2,356
  • 5
  • 32
  • 43
1
vote
2 answers

How to locate public folder using PHP?

I am writing installation script in PHP and part of my application may be installed in the folder that is one level above the public folder. Usually, public folder is called "public_html" but that may not always be the case. Is there some easy way…
igorilla
  • 11
  • 1
  • 2
1
vote
1 answer

apache cannot access public_html on CIFS

I have my computer on network, and whole homedir is mounted at login with CIFS. When I access http://localhost everything works fine, but when I access http://localhost/~user it fails. # cat /etc/mtab ..... //192.168.1.5/user/ /home/user cifs…
user1097726
  • 61
  • 1
  • 6
1
vote
2 answers

Changing the name of the public_html folder

I have two folders for a particular web site. There is the main www.mysite.com site which is at home/user/public_html and then I have a sub domain -> dev.mysite.com for the latest under development version of the site at /home/user/dev_html Maybe…
shadylane
  • 87
  • 2
  • 10
1
vote
3 answers

Laravel 9: Can Not Read Images From Storage Directory

I have a Laravel 9 project and I just uploaded this project into server. Now for this project everything works fine except the images that are coming from storage directory. For example, I tried creating and storing the captcha images at…
Pouya
  • 117
  • 1
  • 14
1
vote
1 answer

Why do you have to specify the publish directory for a Netlify build?

The docs say: https://docs.netlify.com/configure-builds/overview/ Publish directory: Directory (relative to the root of your repo) that contains the deploy-ready HTML files and assets generated by the build. If a base directory has been specified,…
mfaani
  • 33,269
  • 19
  • 164
  • 293
1
vote
0 answers

lots of 0kb file in cpanel hosted public_html dir

i'm supposed to take over an old laravel project which is hosted (and presumably previously managed) using cpanel. i can see a lots of 0kb files in the public_html dir. for ex: 55ojAH FnhBRE ioZ5MP myApp_dNWuzR myApp_TdfPsE etc. i'm guessing those…
Pingu Kutu
  • 357
  • 2
  • 5
  • 11
1
2
3
9 10