Tag Info

New answers tagged

-1

The change the Owner ship in your apache path. sudo chown -R www-data:www-data peth of sud chmod 777 path


0

First it sound like some things didnt get removed like they should have. Press Ctrl + Alt + T to open a Terminal. At which point you will type in the following sudo apt-get purge apache2 This removes all files with this package including the config files. At which point you can reinstall the files.


-1

sudo leafpad /etc/apache2/apache2.conf Include the virtual host configurations: before upgrade = IncludeOptional sites-enabled/* after upgrade = /IncludeOptional sites-enabled/*.conf or remove file


0

this could help if the link doesnt yet solve the problem (tried on Ubuntu 14.04) Check loaded modules with: apache2ctl -M Look for: cgid_module (shared) If it's not loaded, load it with: a2enmod cgid Restart apache and then refresh browser


0

Make sure you are not declaring Listen 80 twice in .conf files. For example, you might have it both in ports.conf and inn sites-enabled/www.conf. To find out, use: grep -ri listen /etc/apache2 Keep Listen 80 in just a single place.


0

Use that syntax in the config file at line 14: Options Indexes MultiViews FollowSymLinks


1

Just to add to David's post, although I'm not running Ubuntu I am running Apache and I noticed that I could get to the site using the full www.domain.com but when I used it without the www it would just use the first site defined (which is the default). Note that the DNS was set correctly in that www is set to @ (hostname) so that was correct. So by adding ...


0

Are any of those commands actually interactive? If no, just use exec if {[file exists "/usr/local/sbin/remoteTasks/restartMySQL"]} { ## STOP APACHE FIRST exec apache2ctl stop exec service mysql restart file delete /usr/local/sbin/remoteTasks/restartMySQL exec apache2ctl start } if {[file exists ...


0

Fixed it installing libapache2-mod-php5


0

Many thanks for your help, it is working now! The iptables rules are effective and prevent the memory usage from exceeding approximately 80% for 512MB of memory. However, the packets from random sources still can be seen on Wireshark! The complete rules are as follows: sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT sudo iptables ...


1

In this case the apt-get and apt-cache commands will be your friends. First of all, to be sure to have an up-to-date list of software available in the Ubuntu repositories configured on your server, you will to run the sudo apt-get update command. If you don't know the exact name of a package, you will have to search for it. For instance, searching for all ...


0

It can be in any number of places. If KOHA uses Apache, try this: grep DocumentRoot /etc/apache2/sites-enabled/ -R Replace apache2 with nginx if KOHA uses nginx.


2

It tunrs out that the official documentation of Apache (see at this link) is really well done on this subject. In short, you should end-up with something like this : LoadModule ssl_module modules/mod_ssl.so Listen 443 <VirtualHost *:443> DocumentRoot /var/www/yoursite/ <Directory /var/www/yoursite/> AllowOverride All order ...


0

Difference is in the number. Now you have one, default web host. And if it suits your needs it's perfectly fine. Benefit is when you want to run several web hosts on the same system, ie when you work on projects for several different clients and each of them needs different environment (apache settings, web app etc).


0

Looks like I have the same problem with my router as Yannick in this post. It is not possible to access the page within my intranet. The only option for now would be using some proxy website. Thanks tho.


0

Make sure that your router isn't using port 80 as well for management. Try changing the webserver's port as mentioned above.


0

Mark this solved. After checking the logs, looking at directory permissions, making sure various DMS db configs hadn't changed, etc., I looked at /etc/apache2/apache2.conf, which apparently I allowed to be overwritten during the upgrade. The sections are more restrictive than what I had, since I have different CMSs in non-standard locations, i.e., NOT ...


0

Try to add forwarding for 8888 port to yourmachine:80 and check it from the internet. I had problems with forwarding if the router has web interface on the 80 port.


0

IMO, your rules are not in correct order. Iptables apply the first rule which match, so, if you try your SYN attack on port 80 (http), the packets will be accepted and the next rule will not be used. I would place the rule number 4 just after the first one. Next, to recover your configuration on boot, you must use iptables-restore manually or create a ...


0

Thank you kraxor, I found my mistake, Now I have to use in the address the name of the file exactly as it is. Before I could use sistemas/garantias/imprimir_solicitud.php and it would show me the page, now I must use the name as it is: http//sistemas/garantias/Imprimir_solicitud.php. Notice the capital I in word "Imprimir"... that was all the problem.


1

User has a primary group and can have several additional groups. User primary group is set /etc/passwd, ie: www-data:x:30:40:www-data:/var/www:/usr/sbin/nologin says user 'www-data' is a member of group id 40. You can add user to additional groups in /etc/group, but when you create a file, by default system will set user primary group as an owner, not ...


3

your parent folder permissions (var set to 755 and owner of root) limits your child folder. you need to change your permissions to var or change the owner to www-data:www-data and perms to 775 EDIT after some digging, the user needs to switch group with newgrp <group-name> before doing any operation. to return to the default group on that shell, type ...


1

Finally I searched and tried myself and got my code working. I found that I am not activating .htaccess files in my Apache2 service. I did the following steps and got it working. Step 1:) First Open /etc/apache2/sites-available/000-default.conf File To Edit. Step 2:) Add The Below Codes Just Before </VirtualHost> And Save This File. AccessFileName ...


1

In order to define multiple sites you should define "Name-based virtual hosts". Try to add in your apache configuration file this directive: <VirtualHost *:80> DocumentRoot /var/www/firstSite ServerName firstSite.localhost ServerAlias www.firstSite.localhost <Directory "/var/www/firstSite"> Options ...


0

Well, regular users don't get permission to do many things to the file system outside their home directory. I think it's just to make sure that no one accidentally deletes something really important. Anyways, about mapping, you can try this: create a folder with any name inside your home directory, open the terminal and use sudo to make a symbolic link in ...


0

Remember that LAMPP is a suite of applicactions, it works almost equal than Windows, you have to execute the xampp-control in Ubuntu it's like this Ctrl+Alt+T cd /opt/lampp sudo ./manager-linux-x64.run From there you can start all servers like: apache, mysql and ftp To make it run at the start of Ubuntu try this sudo gedit /etc/init.d/lampp Copy this ...


0

I don't know about lamp and phpmyadmin but you can install an apache server and it's just as you described in Windows. The root directory in the latest version is now "/var/www/html" instead of "/var/www" and the "it works" page is "/var/www/html/index.html" . You can directly edit the code in the "index.html" file (easiest) or you can specify another file ...


1

This is not an answer, but some tips on how to identify the source of the problem. To find what is taking the space, you can do the following: First, get a listing of the occupied space of the root folders with sudo du -h -d 1 --exclude=/proc --exclude=/run /. This will give you some output like the following: 309M /opt 3,8G /var 512K /root ...


0

One kind of 404 customization (not yet covered here) is redirecting the 404 page in VPS Ubuntu to a separate page, such as the site's home page. To do this, make a file called .htaccess in the web root and put this line in it: ErrorDocument 404 http://www.yoursite.com Then save the file. This will make the 404 page redirect to the specified URL.


2

First enable rewrite using this command: sudo a2enmod rewrite Then restart apache2: sudo service apache2 restart Then go into the sites-available folder: /etc/apache2/sites-available Edit the file named default and change AllowOverride none to AllowOverride All. There are two lines where this change has to be made. This will make .htaccess work in ...


0

(You could have just run sudo apt-get install libapache2-mod-perl2 and be done.) It looks like you locally compiled and installed the httpd binary. If you still have the source true where you ran the make command, you can go in there and run sudo make uninstall. Hopefully, it's supported, and it will remove httpd from your system. If that doesn't work, ...


0

For apache2-mpm-worker, no, you do not need to install this package, as the package now includes just a doc file. For libapache2-mod-fcgid and php5-cgi, you still may need to install these packages. The libapache2-mod-fcgid package adds a mod file and an HTML and XML file, while the php5-cgi package installs a conf file and an executable. I would suggest ...


1

A hostname is called fully qualified when a domain name is appended to it. servername is not fully qualified, servername.domainname.org is. When the command hostname is used to return the hostname of a system, hostname -f is used to return the fully qualified hostname. If you run this command on your system and it return nothing, then you may expect this ...


1

First of all, I believe the newer versions of Apache do not use httpd.conf or any of that so I'm not going to discuss "httpd" anything. I believe the right way to make this warning go away is to NOT TOUCH apache2.conf. I've read that this file is updated any time apache2 is updated and if you're like me, you don't want things you've already done to get ...


1

You seem like you may be confused about how Ubuntu installs software. Software installed by Ubuntu (eg, by any of its package managers) will be installed system-wide, for all users. Ubuntu doesn't have an official concept of installing software for just one user. Most software that needs to store user preferences (particularly desktop GUI software) will ...


1

If you want to stop a package from beeing automatically updated each time you run the apt-get upgrade or apt-get dist-upgrade command, you have to put then on hold to the package management system. This can be done by the following command : echo "openssl hold" | sudo dpkg --set-selections When you do dpkg --get-selections | grep openssl, you will see ...


0

Those instructions are not Ubuntu-specific and are not the recommended way to patch the Heartbleed bug on Ubuntu. In fact, they are intended for people who have compiled OpenSSL themself rather than using a version of it that was supplied with their Linux distribution (eg Ubuntu) - or they want to apply a patch manually before the OS patches their version - ...


0

Firstly, remove the following from apache.conf and put it in editor.conf (it's just good practice). When compiled, the location won't make a difference to the Virtual Host editor. <Directory /home/kemallin/Dropbox/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Now execute the following: ...


0

I would suggest you to avoid using mod_python. Use mod_wsgi instead. mod_python has been deprecated and it no longer has support.


0

I would run mysqldump periodically on machine #1; this gives you one large file. This file can then be transferred to machine #2 using rsync (with compression, as it will contain only ASCII text, SQL statements really) without bothering about database permissions. On machine #2, the dump file is unreadable for anyone but the owner. And as your database on #1 ...


1

What type of server are you running this on? To resolve the first error AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message You will need to edit httpd.conf file, add this line: ServerName localhost To resolve the other errors you ...


1

You can relax. There is in general no notion of "conflict" between distinct web (and SQL) servers running on different machines - given, of course, that they aren't configured to share the same IP address, which would be a problem in general. All you have to do is, of course, to make sure you use the correct IP address or hostname for the machine you want ...


0

You may installed a new web server or anything reserve the port 80 check your services and what you have newly installed


1

You could download directly the lib by pulling the git repository: https://github.com/zendframework/zf2 PS: Don't download from the master branch, choose a tag. Or, if you know how to use composer, a PHP package manager, thats an option too. You could learn by reading the guides in the official web site: http://framework.zend.com/learn/ More download ...


0

I used this command on SSH and it allows permission for apache user as well as FTP user: login to SSH navigate to your prestashop website folder while you are in it, type this command - replace 'yourftpusername' with your ftp username chown -R apache:yourftppusername *


0

As I can see in your question, you are using Apache 2.4.7, but your httpd.conf use Apache 2.2 directive. According to Apache 2.4 manual: Access control In 2.2, access control based on client hostname, IP address, and other characteristics of client requests was done using the directives Order, Allow, Deny, and Satisfy. In 2.4, such access ...


2

$ apt-cache policy openssl openssl: Installed: xxx "Installed: xxx" shows the currently installed version of openssl. Heartbleed is fixed in the following package versions (or later): Ubuntu 13.10: libssl1.0.0 1.0.1e-3ubuntu1.2 Ubuntu 12.10: libssl1.0.0 1.0.1c-3ubuntu2.7 Ubuntu 12.04 LTS: libssl1.0.0 1.0.1-4ubuntu5.12 If your installed ...


0

This link might help (I followed it succesfully) : https://help.ubuntu.com/community/ApacheMySQLPHP


0

Sorry, seems you have not found an answer yet. I just stumbled over this page. I encountered the same error. I'm adding this answer so that it will help anyone else. Do a chmod +x on your user dir, and restart apache. 755 permissions should work. I've had problems with 644. Hope this helps you in your own case.


0

Try changing owner and group for the files to apache, In ubuntu the apache user is www-data, in terminal: $ sudo chown -R www-data:www-data PUBLICFOLDER And refresh the browser.



Top 50 recent answers are included