Tag Info

New answers tagged

0

If you want stop nginx just service nginx stop or apt-get remove nginx. If you had apache before nginx and you not have manually deleted the configuration files (/etc/apache2/apache2.conf), just install apache with apt-get install apache2. I hope I have helped you


0

In Debian-based systems (including Ubuntu), modules are configured using symlinks in /etc/apache2/mods-enabled, pointing to files in /etc/apache2/mods-available. If you look in the latter, you should see auth_form.load, session.load etc. which correspond to the modules your looking for. To enable them, use a2enmod (Apache 2 enable module): sudo a2enmod ...


0

Here's what I've done to 'solve' it: Set MaxClients 7 (based on (1740.8Mb Memory on server - 900Mb for MySQL + other stuff) / 111Mb average usage per httpd process = 7.5747747747747747747747747747748) Therefore: <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 7 ...


0

I've had same issue. After some troubleshooting I found out that I don't have php5-mysql installed. So to fix this issue just install php5-mysql sudo apt-get install php5-mysql and restart web service


1

I would setup Varnish in front of the web server (or another cache): https://www.varnish-cache.org/ I wrote a small blog post on Varnish 3 here: http://aarvik.dk/varnish-cache-in-general-and-simple-static-files-configuration/ That would definitely help :-)


0

But it was a totally different installation and I got confused. If you compile from source from the official latest release, there can be some or significant changes in the software as I understand it. Here is some info on software being delayed in getting to the repositories. Excerpt: Update Delays One thing new Linux users often notice with ...


-1

You should set JAVA_HOME=/usr/local/jdk1.8.0 or JRE_HOME=/usr/local/jdk1.8.0/jre


5

From a networking point of view your Operating System sees two network interfaces. One is purely logical and created in software and doesn't even need a physical set of chips and connections to make up a network connection. The other is a physical network connection (most likely with an RJ-45 socket or a wireless adapter) and can be used to connect to other ...


0

Sorry, I would add this as a comment to previous answer, but don't have the reputation. If a friendly mod converts, I'd appreciate. Alex, is it possible that both configurations point to /var/www as DocumentRoot outside the VirtualHost directive? Have you considered changing that?


0

It seems this simple fix solved the problem: http://ezref.info/Solved+-+(13)+Permission+denied%3A+.htaccess+pcfg_openfile%3A+unable+to+check+htaccess+file,+ensure+it+is+readable.html I am not sure I understand why or how though?


0

I have not tested this, but you can trying doing something like this: <VirtualHost *:80> ServerName *.foo.com VirtualDocumentRoot "/var/www/html/%0" <Directory /var/www/html/%0> AllowOverride All Allow from all </Directory> </VirtualHost> The %0 argument signifies the entire string from the address. An example ...


0

Here is a walkthrough for LAMP installation for ubuntu. You of course have more options than use Apache2 for example some light-httpd server will be sufficient. Depending on your needs you can just install Apache2 or wole bundle. https://help.ubuntu.com/community/ApacheMySQLPHP Here is article from "Etel Sverdlov" about how to set and configure Apache ...


1

You will have to use the older version's so files in apache's confs, and restart apache for it to take effect. On Ubuntu 14.04, see /etc/apache2/mods-available/php5.load: LoadModule php5_module /usr/lib/apache2/modules/libphp5.so Update above line in the file to point to the equivalent so for php 5.1.


1

I'm guessing you have the FollowSymlinks directive in place, since that's what the tutorial covers. Then the other consideration is that the www-data user needs to have execute access on the directory that the symlink points to (/home/pi/downloads). If www-data belongs to the group that owns /home/pi/downloads, then you can do chmod g+x /home/pi/downloads ...


1

Run the following command to enable Apache's SSL mod: sudo a2enmod ssl


1

Apache does not activelly monitor changes on the PHP andother configuration files. You need to tell the service to reload the changes. # service httpd reload or stopping and starting the server altogether: # service httpd restart On a different note, you can see when the server reloaded your data by enabling mod_status on your httpd.conf file (usually ...


0

You must separate the brackets from the data with spaces, like this: for I in 0 1 2 3 4 5; do check=$(uptime | tr -d ',.' | awk '{print $10}') if [ "$check" -gt 5 ]; then /usr/bin/systemctl restart httpd.service fi sleep 10 done In UNIX, [ is really a shell command. When the shell replaces the $check variable by its value, it will ...


0

This unix script I made just now does what I want for 256 IP addresses which for now is good enough for me. #!/bin/sh echo " "; a=2; while [ $a -lt 255 ] do echo "Trying source 127.0.0.$a"; ifconfig lo 127.0.0.$a curl -s --interface lo 127.0.0.1:81/ap3/ > /dev/null if [ "$?" -ne "0" ]; then echo "curl has a problem with source ...


0

I ended up figuring this out. It wasn't directly a firewall issue. I have two NICs, one for the LAN and another for the DMZ, to which the WAN IP is NAT'ed. The default route was over the LAN. When receiving packets from the internet, the server tried to respond via the default route on the LAN. Disconnecting from the LAN enabled the services to communicate ...


0

Square brackets do not have a special meaning in this context are a globbing feature ("character range") in this context, so with default configuration (nullglob off) it will pass literal string local4 if there is a file local4 in the working directory, and local[4] otherwise (thanks @Celada). This is not a variable reference (${local[4]} would be an array ...


0

Are your services even listening on all interfaces? Please post the following command for example: # netstat -atpn | grep 80 | grep LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2994/httpd if it does not show 0.0.0.0 or the IP of the WAN then its not configured to listen where you are expecting it to.


0

If this was working then vps.mydomain.com and server IP should show the default apache page and mydomain.com should show the site located at /var/www/username/public_html. Correct as long as you reloaded Apache to re-read its config files. This sounds like a DNS propagation issue to me. Check the DNS records for mydomain.com and www.mydomain.com from ...


0

To see from what exactly is your problem try with 777 permissions, then change back to 644 or 444. If with 777 permissions you get the same error, try to disable SELinux /etc/selinux/config SELINUX=disabled If again not working try to remove .htpasswd, if now work correctly, it means the problem is in .htpasswd, for example rules or some grammatical ...


0

For future configurations concerning Apache 2.4 Virtual Hosting you can also use this guide http://www.bytelinux.com/enable-apache-virtual-hosting-ubuntu-14-10/ as a starting point on how vhost configuration files must look like!


0

The easiest way(if I understand what you ask) is with: ifconfig | grep inet and in the output will you see, you can find your interfaces for server ip, web_a and web_b


0

This is possible using URL rewriting inside Apache. Other servers likely have the same functionality available, I just don't have personal experience with other servers.


0

#<Location "/usr/lib/cgi-bin/restricted"> <Location "/cgi-bin/restricted"> #<Location "/usr/lib/cgi-bin/local"> <Location "/cgi-bin/local"> 'Location' refers to path in the url, the part after hostname beginning with /, not fs dir.



Top 50 recent answers are included