Tag Info

New answers tagged

0

There are a few commercial tools that could help you with this. Like @Not Now said, you could look at something that does log aggregation like Logstash or Splunk. You can also look at a purely metric based solution like Metrink.


3

Built-in Webserver If your goal is to learn PHP I highly recommend you use PHP's built in webserver, available on PHP version 5.4 and up. cd ~/mywebsite php -S localhost:8080 You now have a webserver, tied to the ~/mywebsite directory, and accessible in the browser at http://localhost:8080 This all runs in user mode so you don't need to sudo ...


4

I think you're misunderstanding the usage of port 80. Only one daemon is listening on port 80. It's then forwarding incoming requests to Apache worker daemons. I would simply run the restart script if you're curl command doesn't come back with a HTTP status 200. The stop/start service script should already have provisions in it for dealing with Apache's ...


0

I'd also recommend looking into jmeter as the results you get from ab aren't usually terribly useful. The tool is just too simple to be able to create a realistic workload for your server. Sometimes it's all you need (if you're not looking at the webserver so much as what happens system-wide during heavy load, for instance) but it really doesn't do a whole ...


1

I'm not sure you can do that with ab. For that purpose I use JMeter with allow you to inject load on server in a more customizable way. You can give it a try.


2

First off is this script setup so that the user that is running your web server (Apache I'm guessing) can execute it? You can check by looking at the permissions of the script: $ ls -l somescript.cgi -rwxrwxr-x. 1 apache apache 1199 Jan 17 20:47 somescript.cgi You'll want the permissions such that anyone can run this or if the script is owned by the user ...


3

Confirming a service On CentOS 6 I would investigate if the httpd service is accessible. $ service --status-all |& grep httpd httpd is stopped You can disable this service using chkconfig: $ chkconfig --list | grep httpd httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off $ sudo chkconfig httpd off $ chkconfig --list | grep httpd ...


0

I supose the problem is in KrbServiceName. You should using name of principal the same, when you generate keytab file. ktpass /princ HTTP/name.domain@DOMAIN.COM... HTTP/name.domain@DOMAIN.COM - name of principal, which you should using.


0

Look for it in /etc/inittab, could be that someone put it to respawn.


2

The /server-status page is a feature of Apache, not Tomcat. When you setup your ProxyPass rules at the top level of your URL, i.e. /, all traffic, including /server-status, is being forwarded to your Tomcat server, which doesn't serve a page at /server-status, hence the 404 being reported by Apache. You can tell Apache NOT to proxy traffic that's bound for ...


2

upstart, the service manager, can restart httpd if it is set to respawn. apachectl stop stop's the process without notifying upstart Try: service httpd stop By the way, when you issue any of the stop like commands to apache it will stop accepting new connections. The gracefuls will additionally allow it to complete any currently open connections.


0

Put the new locations inside the top VirtualHost block: <VirtualHost *:80> ServerName test1.example.com ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/ ProxyPassReverse / ...


0

Seems pretty cut and dry. You don't have Java installed. Or at least it isn't in the location that Tomcat is looking. /media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory You'll need to to go www.java.com and download JDK 1.8.0 or some version of Java and install it ...


0

This path of JDK exist? Give more information about this JDK if you see this error message : /usr/local/jdk1.8.0/jre/**bin/bin**/java There are two /bin/bin maybe this is the error. If jdk exists, try to use this config: Using JRE_HOME: /usr/local/jdk1.8.0/jre


1

If you enable mod_status and turn on ExtendedStatus, it will display the request being handled by each worker.


1

First of all I am not sure if you can do that with normal php but you can use php-fpm to show you a status page in this link you can see how to do it: https://rtcamp.com/tutorials/php/fpm-status-page/ Second you can enable slowlog in php-fpm with this you can see which script are running so slowly. here's an exaple to how to do it: ...


0

Since all this traffic is connected to a computer in China (or so it seems concerning the whois output) I would recommend disallowing traffic from that network (180.96.0.0/19). As long as you don't have any specific interest in connection to that network, of course. Otherwise I would consider that traffic as malicious and therefore unwanted. Connections to ...


0

OK, this is relatively simple to solve. You access your server with ssh -L 5580:localhost:80 www.servername.tld and you access your phpmyadmin via http://localhost:5580/phpmyadmin/ because Debian has placed it If you would have M$, you can say this, but you have Debian, so you can change the defaults as you need. :-) However there is Allow ...


3

You can't. The validity time is encoded into the certificate. The only way to extend it is to contact the issuer of the certificate and get a new one. If you don't want to replace the key, you can sign the new request with the same key as the old one. But you still need to replace the actual apache.crt with the new one.


3

Maybe AuthLDAPInitialBindAsUser (Apache 2.3.6) can help: Determines if the server does the initial DN lookup using the basic authentication users' own username, instead of anonymously or with hard-coded credentials for the server In combination with AuthLDAPInitialBindPattern, something like this might do the trick (untested): AuthType Basic ...


4

CentOS 6.x does not provide 2.4.x, only 2.2.x versions of Apache. CentOS like the Red Hat OS it derives from, RHEL are geared towards stability and so tend to lag behind what's cutting edge. So you'll need to either: compile it yourself find source RPMs and rebuild/recompile them find a repository that already has it pre-built in RPM form find pre-built ...


4

You use Apache environment variable manipulation. So for example: SetEnv db_pass swordfish This can be done in httpd.conf or in .htaccess. You can also set env vars in Rewrite Rules like this: RewriteRule someurl - [E=dbpass:swordfish]



Top 50 recent answers are included