Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ubuntu]

An open source operating system based off of Linux.

0
votes
0answers
16 views

How can I encrypt an image folder of my website that can show images to the visitors of my website but the folder will be encrypted inside server [on hold]

My OS is Ubuntu and web server is lighttpd. I have a image hosting site. Images uploaded by users on my website are stored in /var/www/html/site1/uploads. I want to encrypt the uploads folder so if ...
1
vote
0answers
31 views

Non subdomain is “not private” but subdomain is

I am trying to setup a website for my app domain using an Ubuntu/Apache server hosted on Linode and Cloudflare. The setup works for www.my.app but not for just my.app without the www. My ...
0
votes
1answer
261 views

HTTPS + IP not redirecting to configured Domain Name and gives “Your connection is not private” [Nginx/Ubuntu]

I am using NGINX for 301 redirects on Ubuntu and reverse proxy for my Web Application and aim is to redirect traffic to non-www url such as https://mywebapplication.example. So with my current ...
1
vote
2answers
68 views

Not able to see public_html from the AWS EC2 instance when accessed via PuTTY

I cannot find the public_html file from the PuTTY terminal when accessed through SSH giving valid public-private-key(PPK) file, But when accessed from the FileZilla Client software, I can see the ...
1
vote
1answer
78 views

Subdomains getting redirected to root directory of virtualhost

I'm trying to have 3 different domains and subdomains on my VPS: pd.example.com intranet.example.com example.com I have configured them, but for some reason each subdomain is getting redirected to ...
4
votes
1answer
455 views

Nginx rewrite problem - displaying same page with or without .php extension after rewrite

I have implemented the following Nginx code: location / { try_files $uri $uri.php $uri/ @extensionless-php; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =...
1
vote
0answers
28 views

nginx proxy pass to standalone application

I'm trying to use pass traffic which is going to www.example.com/subfolder to a standalone application running on the same machine. Here is what I have: server { listen 80 default_server; ...
1
vote
0answers
158 views

Set default file and folder permission for new files and folders - apache , ubuntu

I checked the file and folder permission of /var/www/html/ using stat -c '%A %a %n' * Folders : 775 Files: 664 drwxrwxr-x 775 includes -rw-rw-r-- 664 index.php -rw-rw-r-- 664 maintenance.html ...
3
votes
1answer
415 views

XenForo SEO Friendly URL returns 404 on forum page

I have my .htaccess file in the base directory of the installation of XenForo. When I enable SEO Friendly URLs, it returns error 404 only on the forums and members pages. htaccess file: # ...
3
votes
1answer
449 views

Trouble replacing old SSL certificate on Nginx

Disclaimer: This is my first ProWebmasters post. I thought this would be an appropriate place for this question but if it is not I'm happy to remove it. We use SSL For Free for our business site. We ...
2
votes
1answer
228 views

Can uploaded files override Apache permissions?

I teach web development courses to liberal arts majors, and the web server (Ubuntu Apache) is located in my office. At the beginning of each semester, I create public_html directories for each of my ...
1
vote
0answers
169 views

Slow website by Plesk [closed]

Have a good quality server with good performance. Till now I don't had this kinde of problem. So,I have installed Plesk panel,four months ago. I develop an ecommerce project using Laravel framework. ...
2
votes
0answers
43 views

Email sending to only one of two form addresses

I'm trying to find possible places to look for an issue that I'm struggling with on my website. Scenario: Ubuntu server uses sendmail and configured mail relay to go through our O365 servers. This ...
1
vote
0answers
61 views

Why is my Ubuntu server not sending emails from my website visitors through PHP? [closed]

I have hosted my website on my Ubuntu server. I have added an email forum on my website so visitors can send emails to me. But it is not working anymore. Here's the full php code <?php $...
1
vote
0answers
93 views

Node.js app without going through an Apache Proxy [closed]

I currently have my server set up to use an Apache proxy all the data from the domain "territory.cf" to my Socket.io Node.JS server. But, this system is very slow and the game I am running can't run ...
4
votes
0answers
243 views

Ubuntu 14.04 can't enable .htaccess

I'm developing a website local and just switched from Windows to Ubuntu 16.04 - Sadly my .htaccess doesn't seems to work since rewrite rules don't apply and sources can't be found. I activated: sudo ...
2
votes
1answer
44 views

Domains hosted on Ubuntu Server(Plesk) can only send outgoing mails

I have a dedicated server(Ubuntu 16.04.1 LTS) with Plesk installed. I have few domains hosted on the server. I am only able to send outgoing mails(from webmail), none of the domains are able to ...
3
votes
3answers
1k views

Apache2 Ubuntu 16.04 Impossible To Get CORS Working

When visiting my website I get an error in console tab (using Firefox). The error is: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at somewebsite. (...
5
votes
2answers
1k views

How can I copy files from my machine to Amazon EC2?

I am able to ssh into my Amazon EC2 instance with ssh -i node.pem ubuntu@35.164.71.227 I am trying to copy over a folder called gametest from my laptop to the instance in a folder called gametest. I ...
5
votes
1answer
543 views

How to create user in phpmyadmin to connect two servers?

IP my Website: 192.168.19.33 and IP Database server is: 192.168.19.41. How to create user account in phpmyadmin for the connection between the two servers? And how to edit this setting: ...
2
votes
1answer
785 views

ErrorDocument Not Working

I've been trying to solve this problem, I have a virtual machine with the same setup as my production server. The ErrorDocument line in 000-default.conf works on my VM, however it doesn't work on my ...
3
votes
2answers
65 views

How do you isolate/silo websites on an Ubuntu w/ LEMP stack?

I have an Ubuntu server with NGINX/PHP/MySQL with multiple website hosted on it. Several of them are Wordpress websites for friends, so they can upload their own plugins and potentially malicious ...
2
votes
1answer
1k views

Cakephp 3 installation on Ubuntu doesn't have permission to access index.php

I have installed Cakephp on my ubuntu webserver (well copied it in var/www/html) following this tutorial https://askubuntu.com/questions/628938/how-to-install-cakephp-in-ubuntu-14-04 I am also using ...
3
votes
1answer
84 views

Fix OpenSSL CCS vulnerability on Ubuntu 14.04

I just installed an SSL certificate from Let's Encrypt on one of my domains. Everything was fine, green lock icon on Chrome. But just to be sure, I checked the domain on ssllabs.com. And to my ...
3
votes
1answer
533 views

Overriding a redirect with an A record — What am I doing wrong?

We have a GoDaddy account and are using a redirect as a placeholder for our main site as dictated by management. They want "dev" and "staging" to access our application but everything else to go to ...
0
votes
0answers
926 views

Access a client's website via VPS IP address (Froxlor Server Management Panel)

Many control panels (cPanel, vestaCP, etc) allow users to access their site using the server's ip address like this: 123.456.789.011/~some-domain.com Where 123.456.789.011 is the ip address of the ...
1
vote
1answer
53 views

Default Apache webroot different to what I expect; seems to be /var/www/html rather than /var/www

I have a new installation of Apache in Ubuntu 14.04.2 The /etc/apache2/apache2.conf file contains: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None ...
0
votes
0answers
642 views

NGinx Downloading instead of Serving

I have nginx setup on my ubuntu server as the web server with 3 config files (minus the site configs) All of my sites now download a application/octet-stream file rather than serving up the pages. ...
0
votes
1answer
286 views

Nginx Php-Fpm Global Configuration

So, ive got everything set with 6 wp websites sitting on my lemp stack. I have noticed that every single one of their nginx configurations are the same. Is there a way I can globalize said ...
1
vote
1answer
1k views

php5-fpm ping and status pages error out? LimitInternalRecursion error?

Not sure if I'm out of bounds here, but I originally posted this on ask Ubuntu here I have php5-fpm running just fine. My entire site is running as expected, almost no issues. However, I am unable to ...
3
votes
2answers
3k views

How do I get a better PHP version to work with Plesk?

I've had an issue for quite a while now that I don't know how to fix. I'm running a VPS with Ubuntu 12.04 LTS, it has the latest version of Plesk (12.0.18 Update #34). Annoyingly, it only has PHP ...
3
votes
1answer
254 views

Magento Backup using mysqldump

I have website using magento installed in ubuntu ec2 server. I would like to do a backup of the whole magento website. I stumbled on an article that tells me to run this command http://www....
2
votes
2answers
2k views

Add domain to VPS (DNS?)

I have a VPS and some domains. I want to add one of my domains to the VPS. My VPS provider has send me his Nameservers like ns1.example.com and ns2.example.com and I changed these DNS records in my ...
2
votes
1answer
2k views

Amazon EC2 Ubuntu instance setting up domain name

I had a domain transferred to amazon using their Rout 53. at the begining when i went to the IP address 54.69.253.182, or ec2-54-69-253-182.us-west-2.compute.amazonaws.com my site would show up. ...
2
votes
0answers
315 views

How to filter GET requests with Nginx, keep getting 504 after [GET] “/manager/html”

I was recently unable to reach my website, receiving a 504 time-out error instead. I checked the logs and found a GET request for /manager/html. I realize this was a failed attempt to reach a control ...
1
vote
1answer
447 views

RewriteRule not working properly in my Ubuntu server 14.04 running in Windows Azure

In my server I kept signup.php and in .htaccess I kept this thing - RewriteRule ^/registration/?$ http://www.example.com/signup$1 [R] But this is not redirecting www.example.com/registration/ to ...
1
vote
1answer
838 views

Can't change HTTP Vary header from PHP

I have a test server running CentOS, and changing the Vary header there through PHP via: header('Vary: Accept'); works as expected (it's added to the Accept-Encoding value that Apache already adds ...
1
vote
1answer
45 views

Page requesting content from another IP

I was running a drupal website on Server 01 with IP1 on the domain name example.com with the configuration centos 6 and apache. As we were having a traffic spike, we wanted a more powerful machine. ...
4
votes
1answer
5k views

Updated Apache from 2.2 to 2.4 and now my sub domains are broken

Upon trying to visit any of my subdomains here is the error recieve in my error.log file: [Tue Jul 15 11:17:42.924790 2014] [core:alert] [pid 17309] [client 108.162.241.152:26427] /var/www/.htaccess: ...
2
votes
0answers
197 views

What is the best way to automate “domain parking”? [closed]

Assume I have a domain http://go.example.com/abcdefg when example.com is server running on NGINX. The main task of that server is to proxy pass all visitors to other server and then, this other server ...
2
votes
1answer
4k views

CheckCaseOnly doesn't work, while CheckSpelling does

I'm trying to globally set CheckCaseOnly on to make my webservers folders case insensitive. It doesn't work though? I don't need it to correct spelling - thus I'm not using CheckSpelling. Apache2.4 ...
11
votes
4answers
96k views

How to enable use of .htaccess in Apache on Ubuntu?

I'm trying to enable use of htaccess file in Ubuntu 14.04 (Apache 2.4.7). I know that this question has many possible duplicates, but none of them helped me yet. .htaccess ErrorDocument 404 /404....
1
vote
0answers
1k views

In nano 000-default.conf (as root user) in Apache2 on EC2 Ubuntu Instance on AWS page is blank? [closed]

When I SSH into my ubuntu server on EC2 in Amazon Web Services, and I change to the root user using sudo su, I navigte to /etc/apache2/sites-available to make changes to the 000-default.conf file ...
2
votes
1answer
2k views

How to allow www.example.com and example.com on EC2 Ubuntu Instance on AWS

I have an EC2 Ubuntu Instance that I have Apache2 installed on (along with php, mysql, mycrypt for a Laravel project). I have set up the correct nameservers, and www.example.com is coming up online. ...
2
votes
2answers
1k views

Can't Make Changes via FTP on my Ubuntu Server

I'm very new to server management, I literally just set this up for the first time a couple weeks ago, no idea what I'm doing. In order to allow WordPress to run updates, apparently everything needs ...
4
votes
1answer
9k views

What steps are required to enable SSL on Apache2 with Ubuntu?

I am developing a strategy game for web where there there will be a lot of client-server traffic for sending attacks, moves, etc. Right now I send messages from the client to the server via HTTP, and ...
1
vote
1answer
4k views

Nginx writing separately to two different logs

I've recently taken over as Sysadmin of a site, and the first thing I noticed was that there were two Nginx access_logs defined: access.log and access_new.log, and they were both being written to. ...
1
vote
0answers
19 views

Creating sub domain on webmin [duplicate]

Can anybody help me in creating subdoain through webmin. I want to create subdomain like test.xxxxx.com for this I tried with several reference site but no luck. exp. http://www.trickylinux.net/add-...
0
votes
2answers
505 views

PHP not working : Ubuntu

I have a problem my test server loads html files fine but when I try to open a file like index.php it says The website encountered an error while retrieving http://localhost/. It may be down for ...
0
votes
1answer
2k views

index.pl getting downloaded instead of executing on Ubuntu 12.04 and Apache 2.2.22

I have installed Apache 2.2.22 on Ubuntu 12.04. But in browser when I type localhost, it gives index.pl file to download instead of executing it. What I tried: 1. chmod 755 index.pl 2. Adding line ...