Hot answers tagged

27

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

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


6

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


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 ...


3

Was the message you saw something like this? "Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation. If you run a high-traffic site, you should read a little on Unicode normalization." What it's telling you is that you should install the intl extension from PECL; otherwise ...


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....


2

This article may be relevant: http://www.justincarmony.com/blog/2011/07/27/mac-os-x-lion-etc-hosts-bugs-and-dns-resolution/ They ended up running their own simple dns server on their Mac because of similar issues. This might be a fairly easy solution if you already have MacPorts installed (you could also try homebrew).


2

Firebug is reporting from the host operating system and is therefore unaware of the VM's internal state - what you see as a "DNS lookup" is probably the VM starting up a worker process or otherwise processing the request before servicing the request. You should be able to confirm whether or not this is the case by running your webserver in debug mode (-X ...


2

Add that line to your /etc/rc.local file when the server reboots it will start mysql


2

My question is what ports do i need to portforward for a fully working server, with both SSL, SSH and mail working? You need to set up ports 80, 443 (for SSL if you want it), port 22 (SSH/Telnet) and maybe port 21 for FTP if you want that. Mail: POP3 - port 110 IMAP - port 143 SMTP - port 25 Secure SMTP (SSMTP) - port 465 Secure IMAP (IMAP4-SSL) - port ...


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

This tutorial explains how to setup a virtual host in ubuntu on apache2, it's really quite easy. https://help.ubuntu.com/10.04/serverguide/httpd.html Though you do not need a CNAME, what you should be adding is an A record. Basically in your DNS management create an A record with the subdomain name and the server IP. Give it a few minutes and your subdomain ...


2

I just did a DNS lookup on both weekshouse.com and www.weekshouse.com. Here are my findings: Non-authoritative answer: Name: www.weekshouse.com Address: 174.61.209.88 This is registered under Comcast. Non-authoritative answer: Name: weekshouse.com Address: 174.129.88.121 This is registered under Amazon. My thoughts are, that you currently use ...


2

sudo apt-get install php5-intl for install on PHP 7.2 & Ubuntu 18.04 run this command: sudo apt install php-intl


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

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

Your error message references /var/www, not your documentroot. So it would be a more broad stanza that covers whether symlinks are allowed (in / or in /var)


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

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

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


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