Tag Info

New answers tagged

0

Here is my full answer to the error : Restarting web server apache2 [fail] The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 214 of /etc/apache2/apache2.conf: Could not open c ...


0

Have you tried http://anyterm.org/, seems like it will work for you.


0

You can install it using sudo apt-get install ubuntu-desktop. Although I don't think it will be very useful as you will still need to do most of the configuration through terminal and text-based files. Good riddance.


-1

Check /etc/hosts file. Check value hostname 127.0.0.1 replace with hostname <current ipaddress> See below link for installation of apache, mysql and php hope this help.


0

I got into a mess using apt-cacher. Also, it only caches for one version. Rather setup trafficserver.apache.org and configure to be a general cache proxy for network traffic. You can set a rule for *.deb.


0

So the problem I was having involved my /etc/hosts. I did not have the right ip/name combination for the site listed in my conf file. This explains why upon searching my error.log file, I was not seeing any errors relating to the 403.


1

Be prepared to ditch a lot of what you know from Windows. In particular, to install the security2 module, install libapache2-mod-security2: sudo apt-get install libapache2-mod-security2 The module shared library files go in /usr/lib/apache2/modules, not that you should use your own when there's a packaged version available.


0

I finally did compile "ModSecurity" apache module on ubuntu 14.4 and have had the *.so file. Well, All what I have done is to install the dependencies that the installation shell can't find. Download APR1.5.2 zip file CD APR1.5.2 sudo ./configure make make test sudo make install (It wasn't allowed for me to install without sudo) The system needed ...


0

I got it working.In my case,I was missing the authorized_keys and the known_hosts files in my www-data users root folder.I added .ssh folder under /var/www/.ssh. I previously only moved the ssh key files hence I faced the issue for not able to connect to the git repository over http.


1

If you have a Mac you already have a BSD operating system and that's pretty close to Linux already. If you would like to try running Ubuntu on your Mac without installing it, there are good instructions for installing on a USB memory stick right here.


0

Try using the latest version of mono found here http://www.mono-project.com/docs/getting-started/install/linux/ make sure you follow the instructions for ubuntu 13.10 or later this should correct the mono installation -- worked for me (thanks to my son)


1

I'm a little confused by your question so I will answer it as best as I can. For web development I use MAMP. If I need to replicate my prod_server environment or I have a complicated backend platform to work on I use Parrellels, a virtual machine, and I have it mirrored and named as my dev_server. If you're asking how it runs I haven't had any issues at ...


0

I am using Apache. Sometimes it stops working and I have to manually restart it. Why does this happen? Impossible to answer. But ... check your logs (not just the apache.log). A crash is always logged. Probably /var/log/syslog. What's the performance impact on my application causing from the large size of Apache's access.log? Depends on what you ...


1

I'm all for teaching yourself how to do this kind of thing as a learning exercise, but figured I would mention that in addition to the respawn option mentioned in the comments, there are several options for doing this already written: Monit Supervisor Perp Daemontools There are probably others too. Most of these have published source too, so you can ...


0

Ubuntu 14.04 (and Apache 2.4) the default DocumentRoot was changed from /var/www to /var/www/html. sudo nano /etc/apache2/sites-enabled/000-default.conf add these lines at end <Directory /var/www/html> AllowOverride All </Directory> and of course > sudo service apache2 restart


-2

apt-get install libapache2-mod-php5


2

That your awk/tee adventure does not work reliably, which has already been said here. ;) You could try another way: drum-roll Use the power of perl! again drum-roll sudo perl -i.bak -0777pe 's/(<Directory \/var\/www\/>([^<].*\n)*.*AllowOverride\s)None/$1All/' /etc/apache2/apache2.conf -i.bak in-place edit and create a backup ...


4

You are referencing the same file twice in the pipeline, tee will overwrite the file before awk gets to it. Either use a temporary file or use sponge from moreutils. Recent versions of GNU awk, 4.1.1, have a -i inplace argument which simulates editing file in-place:


1

You can have any number or services on one physical server with one IP address. Different services will use different ports.


0

First of all I got rid of the redirects as they were irrelevant. Now I use ServerAlias I also use DirectoryIndex I set them up in different virtual hosts on same port using wildcard entry Enabled all three and now it works.


0

Try using an other method to get the file content. As suggested by a user here who seems to have the same problem: http://kb.odin.com/en/125759 function get_content($URL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $URL); $data = curl_exec($ch); curl_close($ch); return $data; } ...


0

I ran nmap -PN 37.187.57.12 and the results were Host is up (0.25s latency). Not shown: 995 filtered ports PORT STATE SERVICE 21/tcp closed ftp 22/tcp open ssh 80/tcp closed http 3306/tcp closed mysql 8080/tcp closed http-proxy So try to open the ports on your router.


0

You don't need to point to specific ports. <VirtualHost PUT.YOUR.IP.HERE:80 > ServerName www.domainname1.com ServerAlias domainname1.com ServerAdmin someemail@gmail.com DocumentRoot /var/www/{rootdir of site 1} </VirtualHost> <VirtualHost PUT.YOUR.IP.HERE:80 > ServerName www.domainname2.com ServerAlias ...


0

do you have a file called ports.conf ? in /etc/apache2 it should look something like this: Listen 80 Listen 443 Listen 443 vim: syntax=apache ts=4 sw=4 sts=4 sr noet


0

Look into configuring /etc/apache2/sites-enabled/default.conf You need a file normally called default.conf there defining virtualhosts like so... <VirtualHost yourIPaddress:80 > ServerName www.yourdomainname.here ServerAlias yourdomainname.here ServerAdmin <yourmail address> DocumentRoot /var/www/{your webroot folder} ...


0

Maybe this will help to find the cause: journalctl | tail In my case it was a mistake in the configuration file: AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/mydomain-wsf.lan.conf


0

I had the same problem, I made changes in apache.conf file for some reason, which leads me to the same error as you. I have reinstalled Apache server, now everything is working fine. Use the following commands: Uninstall Apache: sudo apt-get remove apache2* Install Apache sudo apt-get install apache2 Restart server sudo service apache2 restart


0

By default php is explicitly disabled for /home/*/public_html. To change this on ubuntu 14.04, cd /etc/apache2/mods-enabled/ sudo cp php5.conf my-php5.conf sudo rm php5.conf and edit my-php5.conf by changing the lines <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_flag engine Off </Directory> ...


0

First you must make the directory owned by webadmins sudo chown username:groupname /path/to/directory (-R , optional, recursive) So there are a few ways to do this, but to Just change the groups permissions the easiest is sudo chmod g=w /path/to/directory (-R , optional, recursive) this will make it ONLY have write permissions tho, so you'd probably ...


0

Your virtual host is probably not being matched. The line <VirtualHost OSSEC:80> will only apply to http requests that have the hostname OSSEC in them. You probably want to use *:80 to match all requests. How did you disable 000-default.conf? You should just remove the symbolic link in /etc/apache2/sites-enabled/. Remember to restart apache2 after ...


0

As a work around, I added a symbolic link to the directory that is working to the directory that I want to work. I have to got to domain/ossec-wui, but that's not a terrible compromise.


0

http://stackoverflow.com/questions/21868785/mod-rewrite-wasnt-working-so-while-fixing-it-getting-403-forbidden just dont need anything that AllowOverride All in /etc/apache2/sites-available/yourdomain.com.conf like in link i posted


0

The mod_rewrite is required to be enabled in apache. You can try this: http://www.dev-metal.com/enable-mod_rewrite-ubuntu-14-04-lts/


0

Try open /etc/apache2/apache2.conf using gedit : sudo gedit /etc/apache2/apache2.conf And then replace this line LockFile ${APACHE_LOCK_DIR}/accept.lock With this one Mutex file:${APACHE_LOCK_DIR} default


0

This is my answer as I understood the OP. You can do it like this ls /etc/apache2/sites-available > student_site.conf This will add list of files from the directory to a text file.


2

If you need a single file, create an archive tar -cvf sites-available.tar /etc/apache2/sites-available The created archive file is sites-available.tar. To merge all files into one find /etc/apache2/sites-available -print0 | xargs -0 -I file cat file > sites-available.merged And if you need only the filenames find /etc/apache2/sites-available ...


3

This information will be (or should be) in the changlog if the given package, to download and view the changelog for apache2 open a Terminal window (CTRL + ALT + T) and execute: apt-get changelog apache2 Once it has downloaded the changelog (which should only take a matter of seconds) you will see that the entry for 2.4.7-1ubuntu4.1 states that it fixes ...


1

On http://people.canonical.com/~ubuntu-security/cve/ you can search for CVEs on Ubuntu. For CVE-2014-0226 that gives you http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-0226.html There you see that it's fixed in 14.04 since version 2.4.7-1ubuntu4.1


1

You can find this information easily! Using the method in a good answer by @rpadovani leads one to: http://changelogs.ubuntu.com/changelogs/pool/main/a/apache2/apache2_2.4.7-1ubuntu4.5/changelog and a simple search (I used "-0226") gets us to: apache2 (2.4.7-1ubuntu4.1) trusty-security; urgency=medium ... * SECURITY UPDATE: denial of service via ...


0

to build a simple DMZ and set up your server worldwide, you can get a broadband connection with static IP address, then you can connect your "server" to your modem and configure port forwarding on it. For example, you can forward external port 8888 to 192.168.1.100:80 this way, if a user connects to your modem's IP address but with port 8888, the ...


1

Setting up a LAMP server, I go in the following order; 1. Apache, 2. PHP, 3. MySQL So for you I would run the following commands: sudo apt-get install --reinstall apache2 sudo apt-get install --reinstall php5 It won't remove the current configurations for either Apache or PHP but should at least be a bit more specific to troubleshoot then dpkg ...


1

Try to do this: mkdir /var/log/apache2 touch /var/log/apache2/error.log touch /var/log/apache2/access.log chown -R root:adm /var/log/apache2 chmod 750 /var/log/apache2 chmod -R 540 /var/log/apache2/* service apache2 restart But thats not a normal behaviour of apache2. May be you should check your server with the programm: chkrootkit - perhaps it was ...


0

Try this: Go to the LAN settings (in Chrome: Tools → Options → Under the hood → Change Proxy setting → LAN Setting) Tick the checkbox "Bypass proxy server for local address"


-1

First of all, sudo apt-get update JDK7 : sudo apt-get install openjdk-7-jre-headless Tomcat7: sudo apt-get install tomcat7 Eclipse (4.3): sudo apt-get install eclipse Spring Tool Suite: cd /opt wget http://download.springsource.com/release/STS/3.6.3/dist/e4.4/spring-tool-suite-3.6.3.RELEASE-e4.4.1-linux-gtk-x86_64.tar.gz sudo tar -xvf ...


0

Your API doesn't seem to properly resolve the "localhost" part of the database connection string. If you replace "localhost" with the IP address, it can connect to the server over the network, thereby skipping the resolve part. However, your MySQL server needs to allow access over the network. That is a non-default setting, for which ample help is available ...


0

Default LogFormat is indeed really Default: LogFormat "%h %l %u %t \"%r\" %>s %b" But the log format apache uses by default (on Debian distro at least) is: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""


3

There are two ways to approach the problem, but the easy method is to edit your /etc/hosts file to make www.test.com map to local addresses instead. In the Terminal, run the following: sudo nano /etc/hosts Add a line in the following format: 127.0.0.1 www.test.com test.com Exit text editor Nuke your browser cache (this means, delete all cached pages in ...


3

You have to add it inside the hosts file, which is located in /etc. Open it with your favorite console text editor (with root privileges by adding sudo in front of the command) and add the following text on a new line 127.0.0.1 test.com www.test.com For example if you use mcedit the command will be: sudo mcedit /etc/hosts This assumes that apache is ...


0

Just open a terminal and type lightspeed I don't have it so the output is The program 'lightspeed' is currently not installed. You can install it by typing: sudo apt-get install lightspeed If it is installed and you want to know where dpkg --listfiles lightspeed Will show where all files for light speed can be found.



Top 50 recent answers are included