Hot answers tagged

29

First Step Open file as sudo vim /etc/apache2/apache2.conf Second Step remove comment sign (#) if you find it before this line ( line number 187 approx.) AccessFileName .htaccess Third Step Then find the line where there is <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory&...


8

Here is the mod_speling documentation. The CheckCaseOnly directive does not enable the module on its own. You would need to both turn on mod_speling and also put in the check case only directive: CheckSpelling on CheckCaseOnly on When it is configured like this, mod_speling doesn't correct any spelling, it only corrects the case. This is a very awkward ...


7

The solution was located in digitalocean.com/community/articles/. I needed to perform the command: $ sudo a2ensite default-ssl


7

Activate ModRewrite: sudo a2enmod rewrite sudo /etc/init.d/apache2 restart


6

To improve security, prevent host header attacks, and preserve your search rankings, here is what I recommend: No default site Simply drop all traffic not matching your genuine website. Before using the below config, execute the following example command on your server to generate self-signed "dummy" certificates which are necessary for responding ...


5

One of the biggest changes from Apache 2.2 to 2.4 is the way that permissions for directories are granted. The allow from and deny from syntax is now deprecated in favor of the new require syntax. See Upgrading Apache from 2.2 to 2.4. There is a module mod_access_compat that is supposed to allow you to still use the old syntax. Unfortunately, it didn't ...


4

This depends on how your network is setup. If you have a central DNS server on your network (as many enterprise business networks have) then you can add a zone record for whatever domain you wish for it to show up as. If you don't currently have a central DNS server you could set one up to achieve what you are after just the same. If both of those options ...


4

It looks to me like your server is set up to redirect to HTTPS, which causes a certificate mismatch error when a visitor tries to load one of these other domains that's pointing at your IP. This is a good thing, as reputable browsers and crawlers will see the certificate mismatch and know not to "count" the content in favor of the other domains, or ...


3

Your host name also needs to be added to /etc/hosts in 127.0.0.1 section. If you haven't rebooted since editing /etc/hostname you also need to set the hostname using the hostname command. This normally happens at bootup from /etc/hostname. Here is a script that I use to make sure the host name is set correctly on my Ubuntu ec2 instance: #!/bin/sh set -e ...


3

Doesn't matter what directory you run the command in, however it will save the sql dump file into the folder your currently in if using SSH to run the command. If you would like to save the file in an alternative path or should you be running it using a cron job then simply edit the last string with the full path you'd like to save the file too, i.e DBNAME &...


3

Create the remote connection To create a remote connection: On your database server, as a user with root privileges, open your MySQL configuration file. To locate it, enter the following command: mysql --help The location displays similar to the following: Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my....


3

This has to do with how Cloudflare connects to servers. Although it does serve the client via HTTP2 (or HTTP3), it still connects to the server itself via HTTP1.1. Cloudflare only uses HTTP/1.x between the origin web server and Cloudflare. https://support.cloudflare.com/hc/en-us/articles/200168076-Are-the-HTTP-2-or-SPDY-protocols-supported-between-...


2

What else would I have to worry about Everything short of pretty much the data center being on fire. That's the "unmanaged" part: OS/software update? You need to install it. Bad performance? They installed Ubuntu; that doesn't mean they did any optimizing at all. Apache/MySQL/etc. crashed and your site's unreachable? You need to restart it. Security ...


2

You shouldn't be receiving that message and you should contact your host since only they can open the ports unless you have SSH access with those rights. Additionally ensure you check out cpanels documentation on how to connect though your find no mention of ports. It's important to note that your not serving the files so theres no need to open your own ...


2

As this Ubuntu help document states: Setting up an email server is a difficult process involving a number of different programs, each of which needs to be properly configured. First you'll want to setup a Mail Transfer Agent (MTA), choosing either the default Postfix or exim4. This guide will explain how to install and configure Postfix. Next you'll ...


2

It is common practice to define a seperate logfile for each vhost. Without knowing your config, I assume, that the main nginx.conf has defined a default log file. It will log any request that is not matching any of the vhosts that might be configured. I assume that sites-enabled/mysite is a vhost that is using name-based virtual host (in Apache speech this ...


2

Check if you have the environment force-no-vary set to TRUE in your configuration, or simply try to set it to FALSE in your virtual host configuration. More details about this and how you should proceed, you can fine here: Environment Variables in Apache. Also, there are modules that may override this header when the response is served to the client - for ...


2

To get a website up at a domain name you need to follow these steps: Register the domain name. At the registrar, point the NameServer (NS) records to the domain name server (DNS) that will be handling the domain. On the name server, add records to resolve the host name to your server. Configure your web server to handle requests that come in for that ...


2

I've run into this issue myself, and would recommend not using apt-get and instead installing PHP according to the directions here from Parallels for Multiple PHP Versions in Plesk on Linux: Be sure to use the new version number of PHP for NN in the above so that you're installing and configuring it in a new directory and path for that version, and run the ...


2

Credit to Harold Snel on Ask Ubuntu for answering this for me... He said: I had the same problem. With lots of Google-ing and trying I figured it out. You need to match what you setup in your virtual host with whats configured in the fastcgi.conf (of php-fpm.conf). Furthermore its beter to use '/fpm-status' and '/fpm-ping' in the /etc/php5/fpm/pool.d/www....


2

You can check if your SSL is patched against the OpenSSL CCS vulnerability (CVE-2014-0224): sudo apt-get changelog openssl | grep CVE-2014-0224 If no results are displayed then your server requires updating! do the following: sudo apt-get update sudo apt-get install openssl libssl-dev sudo openssl version -a If you do get changelog results or both the ...


2

As mentioned in comments, I don't see any spurious redirects that you appear to be reporting and the two URLs do appear to return different content (although they "look similar"). So this appears to show different index.html documents, not the same? Not the cause of the current problem, but your redirection in your <VirtualHost *:80> containers is ...


2

Using putty terminal using SSH will automatically log you in with the top level directory structure while using FTP will be bound to whatever is set within your config. You will normally find public_html within /home/username or /var/www/example.com Other than that you can easily find the directory by viewing the FTP config and see what is being shared as ...


2

Nginx is a reverse proxy in your example, which means it terminates the HTTP exchange. Clients do not know that there is anything after Nginx, for them, Nginx is the webserver and the source of the response. As such the TLS handshake will also finish at Nginx and hence Nginx needs to have the server certificate and associated key to be able to properly set ...


1

Rather than using <?php phpinfo(); ?> you should opt to use /usr/local/psa/bin/php_handler --list as this should list what versions of PHP you have installed. If you don't know already Plesk can handle multiple versions of PHP so you should ensure that the the latest php.ini is being used, manually overwrite old with new, but backup first. You should ...


1

I see some problems with your rewrite rules. You don't explicitly turn on mod_rewrite with RewriteEngine On When using rewrite rules in your .htaccess file the slash at the beginning of them is assumed. Having a slash at the beginning of the rule will prevent rewrite from executing the rule. (This is different than if the rule were in httpd.conf where the ...


1

to clarify your question it seems like you have a broken image link after a sever migration on drupal based site? when the link was created you must have visited your server by ip address vs domain name. then drupal created a full link to the image versus creating a relative link. you should update whatever code, module or plugin that is generating the ...


1

In my case the changing AllowOverride None to AllowOverride All in /etc/apache2/sites-enabled/000-default.conf helped. All other .conf files have already had AllowOverride All.


1

In /etc/apache2/apache2.conf remove comment sign (#) from AccessFileName .htaccess The name of your Apache configuration file is not standard. You can rename it to default.conf in Windows and rename it to default in Linux. In Linux based OS run this code in terminal: sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/default


1

When in your Terminal window, you can type ls -l to see the current file permissions and user and group that owns the file. This article from Ubuntu's Community explains how the file permissions are built: https://help.ubuntu.com/community/FilePermissions Now, to anwer your question, if you want to change a file or folder as a certain user, the user must ...


Only top voted, non community-wiki answers of a minimum length are eligible