Hot answers tagged

3

The FTP server is a Windows Server 2012 machine. It was configured to use ms-dos style directory listings for FTP. ms-dos FTP listing are not compatible with the external backup transport in WHM. To set the global FTP directory output style to UNIX In IIS Manager, right-click the FTP Sites folder, and then click Properties. Click the Home Directory tab. ...


3

I haven't checked the syntax on the rules, but my first reaction is that the comments look wrong. Try replacing the two forward slashes with a hash mark and make sure the # is the first character on the line. The rest looks fine, but I'd also remove the [nc] from the first RewriteCond line. The code to prevent the viewing of .ht* files should also exist in ...


2

An update always worth because by updating, you apply security patches and earn new features: it's always a good idea to use the last version of a web server. There is a sum up of new features of the 2.4 version compared to the 2.2 version here: http://httpd.apache.org/docs/2.4/en/upgrading.html.


2

I found these resources that may help. They explain the errors rather well and what to do about them. Got error: 2013: Lost connection... https://stackoverflow.com/questions/10563619/error-code-2013-lost-connection-to-mysql-server-during-query https://serverfault.com/questions/29597/what-does-mysql-error-2013-mean http://dev.mysql.com/doc/refman/5.0/en/...


2

The problem seems to have been resolved. I was going through the logs and noticed the server was under constant root login attack. I have installed DenyHosts and denied SSH login with passwords. The problem has not happened since then. I was shocked to see how many foreign IP addresses (from Russia, China, etc.) were trying to root login to my server!


2

You are right. This behavior is very similar when cPHulk Brute Force Protection blocks your IP address or the account. If only your IP address is blocked then it is easy to get access back by switching to another IP address. If that's not an option then another solution is to whitelist your IP address via SSH, /scripts/cphulkdwhitelist x.x.x.x Ref. cPHulk ...


2

Your server configuration seems to be correct. But you need to modify your mod_rewrite code. Remove leading / and make trailing slash optional by using /?$ in rewrite rule, so both http://example.com/2VMt2 and http://example.com/2VMt2/ URLs will work. RewriteEngine on RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?image=$1 [NC,L]


2

The problem is with the line ServerName localhost.localdomain in adorkable.conf. The entire server is running on localhost.localdomain. You should use your actual domain name in your VirtualHost configuration. ServerName example.com If the domain name is not yet pointing to the server you can test by putting it into your /etc/hosts file: 127.0.0.1 ...


2

I've contacted CPanel's support. The problem was you need to setup 2 variables in En WHM -> Server Configuration -> Basic WebHost Manager® Setup, HOMEMATCH and HOMEDIR I was changing just the 1st one. You can check it in the shell using: # grep home /etc/wwwacct.conf -i HOMEMATCH home HOMEDIR /home


2

This is an issue I've ran into a few times & it stems from a change in terminology from Apache 2.2 to Apache 2.4 (detailed here). Access control options that were previously addressed with 'Order X, Allow or Deny from X', can now be managed with 'Require X'. The simplest use case example would be... Apache 2.2: Order allow,deny Allow from all ..on the ...


1

It sounds to me very much like you have not enabled and configured NGINX to listen on port 443 (and I'm guessing you have not told it where to find the certs either). https://nginx.org/en/docs/http/configuring_https_servers.html tells you how to configure https - to summarise - typically add something like the following to your NGINX config file - server { ...


1

See the documentation for "min-procs" "min-procs" => 0 is an option. https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#Options


1

You can configure lighttpd to run multiple fastcgi servers and to send traffic to one or the other based on conditions. fastcgi.server += ( ".php" => (( "host" => "127.0.0.1", "port" => "9001", "broken-scriptfilename" => "enable" )) ) $HTTP["host"] == "dev.mydomain.net"{ ...


1

To add to Rob's point, directories/folders are for user convenience. Although, the term folder is used by Windows, it was also used by the Mac OS in the early 90's, when Windows 3.x was still using the term directory (though the Windows 3.1 File Manager represented the directory with the picture of a folder). Your hard disk file system uses an index to ...


1

First issue is that you've set both of your VirtualHost configs to use DocumentRoot /home/website/public_html -- one should be /home/webapp/public_html. Next issue sounds like DNS, you mention adding one A record for example.com. Did you add A or CNAME records for subdomain.example.com and www.subdomain.example.com as well?


1

So I eventually worked this out by going line to line changing redirects to https://google.com to see which worked and which didn't. Any patterns in the .htaccess that had a matching php file wouldn't load. I think it's a configuration difference between the two rather than a version difference and was fixed immediately in my case by adding Options -...


1

Issue resolved after installing firewall-cmd and adding a rule for port 443.


1

I do mine with a .htaccess file. In the DocumentRoot for the site, I create the .htaccess file and it in goes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] Per @StephenOstermiller 's comment below, you also need to make sure that AllowOverride All is set in the ...


1

There's lot's more on Apache configuration over at StackOverflow. Like you I've done very little in the config files, so apologies if this is not much use. Not entirely sure this answers your question, but worth a punt: httpd Virtualhost Subdomains


1

Found the answer. For alternative PHP versions, the process is different. After modifying /opt/alt/phpXX/etc/php.ini Run cagefsctl --rebuild-alt-php-ini That's it. No need to rebuild apache. For an individual user's php.ini, check here


1

I didn't use mod_python yet, but it seems to me that the script is expected to return (rather than print) the text to be served, and to contain an index function to accomplish this. If you don't define the index function, mod_python won't know what to do about your module.


1

This sounds like an issue with passing the domain name requested in the request header. The only reason why the default page will show is if the request header does not identify which domain name is being requested from the server, essentially as in if the user was putting the servers IP address directly into the browser address bar. This does not sound ...


1

Firstly, try to open the cpmove file on your own PC. Does it open? Do you get any errors? This is to check for corruption. Assuming you have WHM access on both servers, you could use the Transfer Tool under Transfers instead. This is the recommended way to perform transfers. Finally, you should really read through this documentation as it provides you with ...


1

Yes, WebMin does not require Apache or MySQL. It runs using Perl and creates its own Perl web server on port 10000. You can administer Apache and MySQL with it. By the way, you can use yum update and yum search and yum install as a 'command line control panel'. It can handle a lot of what you may need.


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

There is no way to change the port numbers for cPanel, the WebHost Manager or Webmail. The port numbers are hard-coded into cPanel and there is no configuration option that allows them to be changed. Even if you edit the httpd.conf file and change the ScriptAlias directives that cause /cpanel, /webmail and /whm to work, they will still be accessible via ...


1

If you have SSH access try this TOTAL=$(free | awk '/Mem:/ { print $2 }') for USER in $(ps haux | awk '{print $1}' | sort -u) do ps hux -U $USER | awk -v user=$USER -v total=$TOTAL '{ sum += $6 } END { printf "%s %.2f\n", user, sum / total * 100; }' done See this link from StackOverflow for more information


1

The steps to take should have been: 1). Clear the cache in yum: yum clean all 2). Update your system: yum --obsoletes update 3). Add the remi repository to your server: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 4). Upgrade ...


1

This might help you: https://www.ssllabs.com/ssltest/analyze.html?d=yourwebsite.com I recently used this to test security. This returns which protocals are used, possible vulnarebilities, keylengths and certificate chain order. They give you all sorts of information, very useful, I recommend this for everyone, just do a simple check, it's free and only ...


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