Questions tagged [public-html]
141 questions
1
vote
1 answer
IIS User Directory like linux public_html
I am familiar with Linux, less with IIS. I have been using Linux/Apache to share user directories for a while set up like this:
/home/user1/public_html
/home/user2/public_html
etc.
...and users can type in a URL to view their public files…

bitwiz
- 13
- 1
- 4
1
vote
3 answers
Symlink not linking hidden files
I need to link the contents of a folder to my public_html folder.
If I use the following command:
ln -s ~/site/web/* ~/public_html/
The files are linked successfully but it doesn't link any hidden files i.e: .htaccess
If I use the following…

Dan
- 1,565
- 3
- 23
- 43
1
vote
0 answers
How to suexec public_html/cgi-bin without the "~user/" in url
Apache 2.4.29 (Fedora)
Perl v5.26.1
I have a website which is run, for several reasons, out of the public_html directory of the user "jaf". Apache is set up to run cgi scripts in this directory tree as the local user ("jaf"). So, for instance…

jaf0faj
- 11
- 2
1
vote
1 answer
Laravel 5.5 Shared hosting changing from /public to /public_html - partially working
I have read through a thread on [Laracasts thread] (https://laracasts.com/discuss/channels/general-discussion/where-do-you-set-public-directory-laravel-5?page=2) but not sure of the current right solution especially for Laravel 5.5 ? (note: i do not…

Mohd M
- 11
- 1
- 2
1
vote
1 answer
PHP pages getting 404 in public_html
I have a couple of PHP-based projects (that are working fine locally), but I'm looking to host on the same server as my Wordpress site/portfolio.
I have put those folders in public_html folder in my file structure but they are generating a 404 error…

Alex Herrera
- 11
- 2
1
vote
1 answer
public_html folder replaced with public_ftp in cPanel
I created an ftp account for a user to access the public_html folder and used filezilla to login in and double check to make sure it took me to the right directory which it did not. I went back to double check the path and found that the public_html…

sammyb123
- 505
- 1
- 7
- 22
1
vote
1 answer
Laravel project in subfolder of public_html gives trouble with .htaccess redirect
I've set up my VPS server and am trying to set up a Laravel project.
I have a /public_html/ folder with an index.html that's shown when visiting the website URL.
I have a laravel project in: /public_html/project_one/
The original index.php is…

mesqueeb
- 5,277
- 5
- 44
- 77
1
vote
1 answer
Where is Safe Place to Save File In Virtual Host Cpanel
I will develop website that saving documents in Cpanel. If I save documents in public html people just access through http://example.com/file.doc document will get accessed.
Where do I put documents so only my web application can access the…

Faisal
- 308
- 4
- 19
1
vote
1 answer
Laravel 5.1 hosting in cpanel/CWP
I have tried to host a laravel 5.1 application in CentOS Web Panel (CWP) using a single account for the application. I am not trying to host multiple site in single account. I have already setup my site in
/home/myaccount/project/website/
and my…

PaladiN
- 4,625
- 8
- 41
- 66
1
vote
2 answers
Change the location of the public(www) Apache folder on debian 8
I am facing a peculiar problem with apache2 running on debian 8. I followed a couple of tutorials to install it and everything worked great. The problem is that i have partitioned the disk as 9gb for the system files, 1gb swap and 30gb for the home…

PaulB
- 1,554
- 2
- 16
- 34
1
vote
1 answer
Putting angular templating in the public folder
For a job that I am interviewing for they use the hottowel generator from John Papa. I have been working through it. The organization is nice. I am confused about the public folder containing the html files. At my bootcamp and on the express…

Winnemucca
- 3,309
- 11
- 37
- 66
1
vote
1 answer
Where to put PHP files, root directory or public_html directory?
I saw alot of frameworks like Laravel, Zend, Symfony .... and I noticed that they put php files in the root directory, but when I saw WordPress and vBulletin and alot of famous scripts, and I noticed that they put the php files in the public…

Mathew Hany
- 13,310
- 4
- 19
- 16
1
vote
1 answer
Laravel linking image to base path
looking to move all of my user uploaded images outside of the public view.
I have my structure as so:
Mamp
htdocs
buildsanctuary
/app
/public_html
/ images
/user_images
I used to link to images with:
{{ asset('/')}}…

Lovelock
- 7,689
- 19
- 86
- 186
1
vote
0 answers
Javascript website issue
I'm very new to Javascript and programming all together. I've been trying to get this Javascript code to run on my website and I just can't get it to work.
var yourName = prompt("What is your name?");
if(yourName.length < 10) {
confirm("Your name…

Martin
- 11
- 1
1
vote
1 answer
mod_rewrite parameters for Silex being in a subdirectory
I was figuring out how to clean the URL for my Silex app being in a subdir of my apache server. This is the actual path: /domains/mydomain.com/public_html/silex with the following subdirs:
public_html/
css/
images/
js/
.htaccess
…

Omnhio
- 231
- 1
- 6