Tag Info

New answers tagged

0

Comparing the old and new default configurations in detail revealed that the cgid module was not included anymore. After enabling it, the error CGI pages work as expected again. I guess any other CGI pages would not have worked either, but I don't use them regularly so I didn't notice. Not sure if it's an Ubuntu-related change or if all Apache installations ...


0

I don't see how you could use both Shibboleth and Basic authentication... Shibboleth already provides its own authentication mechanism. You'd probably need to remove the first one. <Location /> AuthType Basic AuthName "Password Protected Area" AuthUserFile /path/to/.htpasswd Require valid-user </Location> Now, if you don't know why Shibboleth ...


0

You can make the java application server ( tomcat for eg:) to run under under privilege . This was one of the main problems when I build a plugin for cpanel (ndeploy.in) which provides railo( a coldfusion alternative) and I ended up creating certain folders like WEB-INF and logs in the application_root using root privilege .Ofcourse if the CF app has to ...


0

As php strings are mutable, you can use a variable say $url for your server urls. Add the string xyzserver.com/examplescript.php with the appropriate identifier to match your dev/staging/production needs. like, if it is development $dev="development" $dev. = "xyzserver.com/examplescript.php"


1

You have a conflicting version of httpd-tools, apparently from a source other than the official CentOS repositories. Remove it first: # rpm -e httpd-tools If it gives you any static about it, add --force and/or --nodeps until it obeys. When you then install httpd, it should also install a fresh copy of httpd-tools.


1

from the php 5.3 configure file: if test "$PHP_MYSQL" = "mysqlnd"; then PHP_MYSQLND_ENABLED=yes elif test "$PHP_MYSQL" != "no"; then MYSQL_DIR= MYSQL_INC_DIR= for i in $PHP_MYSQL /usr/local /usr; do if test -r $i/include/mysql/mysql.h; then MYSQL_DIR=$i MYSQL_INC_DIR=$i/include/mysql break ...


0

File to edit: /etc/apache2/apache2.conf Command to edit file: sudo nano /etc/apache2.conf For global servername you can put at top of file (outside of virtual host tags) First line looks like ServerName myserver.mydomain.com Then save and test the configuration with the following command apachectl configtest you should get Syntax OK Then you ...


0

You probably don't have the auth_basic module installed or enabled in this Apache. You can check by doing ls /etc/apache2/mods-enabled to see if auth_basic.load is there and enable it by doing: a2enmod auth_basic As basic authentication (over non-encrypted HTTP) can pose a security problem, because the username and password can be sniffed, it is not ...


3

Needing only one command is a hard thing to achieve with unix philosophy in mind. On the other hand: you can rule major parts of your world using one-liners. First fix the configuration files in sites-available with the script from the question, then use the following code to create new symlinks in sites-enabled. cd /etc/apache2/sites-enabled find . ...


0

Thankyou for your help. I wasn't having much luck using grep to find answers. I think the problem was that I have Plesk installed. Sorry I forgot to mention! I followed the instructions here - http://kb.sp.parallels.com/en/123160 - and ran the script. It fixed everything. Removed SSLv3, enabled TLSv1.1 & 1.2, and made my server grade on SSLLabs jump ...


1

Could the malware have happened due to the outdated Apache/2.2.22 software? Possibly. There are a number of vulnerabilities against version 2.2.22 which are listed here: http://www.cvedetails.com/vulnerability-list/vendor_id-45/product_id-66/version_id-142323/Apache-Http-Server-2.2.22.html As well as here on Apache's website: ...


0

You can add "ProxyPass !" to the location section. The result should look like this. <Location /server-status> ProxyPass ! SetHandler server-status Order deny,allow Satisfy any Allow from all </Location>


0

First step is to identify where your site is being defined. Typically the apache configs will pull in a bunch of defaults from the /etc directory, but then include per-site files outside that path. Grep for "Include" lines. In the setups I've used, there is a separate VirtualHost for the non-SSL and SSL versions of the site, and all the SSL settings are ...


0

I was also facing the same issue today. This is how I fixed the issue ~#cat /usr/local/apache2/logs/httpd.pid 2322 ~#ps aux |grep 2322 root 2322 0.0 0.0 81272 3396 ? Ss Nov23 0:02 /usr/libexec/postfix/master ~#service postfix stop Shutting down postfix: ~#/usr/local/apache2/bin/apachectl restart httpd not running, trying to start ~#netstat -nlp |grep ...


0

To find the process and kill it do the following netstat -lnp | grep 80 will produce an output something like this. unix 2 [ ACC ] STREAM LISTENING 80 1804/somesoftware /somepath/and/filename The 80 is the port number and the 1804 in this case is the process id. kill -9 1804 Will terminate the process that is taking port 80. ...


0

type netstat -lnp | grep 80 and run, you will find which process listen on 80 port, then stop it and start httpd again.


5

I am a linux newby newb, so not sure if this is the definitive answer, however looking at the permissions of /var/www/html showed me that only user root had Read Write Execute permissions. As I was using the browser just as a standard user and not getting access, I assumed that 'Other' needed some permissions, so I did this: sudo chmod 755 html -R And ...



Top 50 recent answers are included