All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Isolating a WordPress wesbite within a sub-directory of another

Is it possible to isolate a website within a sub-directory of another on a WHM server? And by isolate, I mean in the event that website within the sub-directory is compromised any malware is contained ...
Levi Cole's user avatar
  • 101
1 vote
1 answer
877 views

Nginx doesn't pick the right php-stack in location

UPDATE 28.02.2019 The problem is the following part inside my server block: # Don't use `$uri` here, see https://github.com/yandex/gixy/issues/77 rewrite /wp-admin$ $scheme://$host$...
Edward Black's user avatar
0 votes
2 answers
3k views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
farfie's user avatar
  • 3
0 votes
1 answer
12k views

How to Protect a Folder from Browser access but allow PHP scripts to acess it

So I currently have a folder located at /var/www/pictures, with /var/www being the document root for my web server. I want to have the pictures folder to throw a 403 forbidden error if a user tries to ...
Allfer2's user avatar
  • 23
0 votes
0 answers
491 views

How to approach SSL encryption with file uploads

I added SSL to a site I'm putting together, and it caused a huge error that I have no idea how to approach. The user logs into the site, which allows them to upload files to the server into a ...
donutsorelse's user avatar
0 votes
1 answer
837 views

How to use a load balancer with apache with php based applications?

I have found that i need to add another server to my setup but my web application is designed with php. Basically, in my application, there is a mkdir command that makes a directory for the user. If i ...
user2604065's user avatar
0 votes
3 answers
4k views

500 error after dragging joomla website out of subdirectory

I recently dragged a website I built with joomla out of a subdirectory and now the whole website just shows a 500 internal error, can't even log into the backend. I've already tried changing the log ...
kjh's user avatar
  • 101
1 vote
4 answers
370 views

Can someone explain a bit about Unix folder permissions and safety?

Why would I change folder permissions to 755 or 777 for example? I read that it means read write and execute but what I want to know, can anyone steal php codes depending on these permissions? Thank ...
Darius's user avatar
  • 335
1 vote
1 answer
196 views

PHP scripts run only in webroot directory,and return 500 error in other dirs

I have uploaded a folder with php scripts and they run only when they are in the webroot directory,Everytime i try to execute php script in some internal dir,i get internal server error,even if it ...
a44's user avatar
  • 23
0 votes
1 answer
278 views

How to set a PHP ini config setting for a specific (virtual) URL path in the apache conf?

I want to set a specific upload_max_filesize setting for a specific URL on my webserver. The URL path is not a real path since it is a apache rewritten seo friendly path. This does seems not to work:...
powtac's user avatar
  • 639
-1 votes
1 answer
6k views

AWS:EC2:: Why my web folder is called "html"? [closed]

My environment is: Amazon linux 64 bit I have a few questions... I don't know if it's Ubuntu or Red Hat, is there any way to check? And I need to run PHP and MySQL, thus I installed httpd. is httpd =...
heathub's user avatar
  • 113
3 votes
2 answers
2k views

WordPress on a subdirectory with Nginx: access to dashboard?

I want to setup a WordPress blog, but not with a typical configuration: The main site is at www.example.com. As of now, it just has a static index.html file with an image, we will use probably an ...
javipas's user avatar
  • 1,342
0 votes
3 answers
669 views

get php files from Directory Listing

in my website there are PHP files that i include in other php files... they perform different tasks like connecting to my DB and various other functions... now i know the given path of my files.. so i ...
user avatar
0 votes
1 answer
8k views

where is the php folder located in macosx?

I'm needing to modify my php config on my mac but for the life of me I can't find the files! Can anyone help me?
iamjonesy's user avatar
  • 249
5 votes
1 answer
12k views

Nginx: Rewrite rule for subfolder

I have a subdomain where I want to keep projects I am working on, in order to show these projects to clients. Here is the configuraion file from /etc/nginx/sites-available/projects: server { ...
Misha Reyzlin's user avatar
2 votes
2 answers
7k views

How to protect a folder in Apache but allow PHP scripts to access it?

I've been thinking a lot about this and can't find a way to do it, maybe it's not possible or maybe I just can't think of way. That's why I'm posting this here right... Basically, I need to protected ...
rfgamaral's user avatar
  • 960