Tag Info

New answers tagged

0

That you see your own username and group in Nautilus on your Ubuntu laptop is working as intended. This is only locally, these permissions are not carried over to the webDAV server. As per the man page of davfs2: FILE OWNER AND PERMISSIONS davfs2 implements Unix permissions for access control. But changing owner and permissions of a file is ...


0

The solution copy from link If you have your own Ubuntu server running you may encounter the maximal file size upload limit in php scripts which is set to 2Mb as default. In order to change that we first have a look what the size actually is. In /var/www (standard www directory) create a file called info.php with the following content: Then browse to this ...


1

In Ubuntu 14.04 the default DocumentRoot is /var/www/html/ instead of /var/www/. You can change this in /etc/apache2/sites-enabled/000-default.conf (but is usually better to keep it it like this).


1

In your system are installed two different version of libcurl: libcurl3.so that is a symbolic link to libcurl4.so that point to libcurl.so.4.3.0 lrwxrwxrwx 1 root root 12 Apr 1 13:43 /usr/lib/x86_64-linux-gnu/libcurl.so.3 -> libcurl.so.4 lrwxrwxrwx 1 root root 16 Apr 1 13:43 /usr/lib/x86_64-linux-gnu/libcurl.so.4 -> libcurl.so.4.3.0 ...


0

You need to create a SSL certificate for your server and link the SSLCertificateFile (a .crt-file) and SSLCertificateKeyFile (a .key-file) to your certificate and certificate key. This is done in the configuration file which Apache reads on startup. Usually it is located in /usr/local/apache2/conf/extra/httpd-ssl.conf. In your case it is located in ...


-1

It looks like You have forgotten sudo: sudo service apache2 reload


1

According to Apache documentation: When a directory is requested, Apache may be configured to send a particular file within that directory automatically. This is configured with the DirectoryIndex directive. It can list one or more files that Apache should search for in the directory, with the first existing file being returned to the client. For ...


2

The simplest way is to move the welcome page. Two things: Apache on Ubuntu 14.04 uses /var/www/html/ directory by default, so you can either start using that directory or change the Apache configuration to use /var/www. The default page is /var/www/html/index.html. Rename it to something else, like /var/www/html/apache-welcome.html.


0

You have to delete all files that have an index in der name. For example index.html or index.php. Because the webserver looks for this files and when it finds some he displays the site instead of the folder. And I think in the newer versions of Apache the main site is in /var/www/html. So delete the file /var/www/html/index.html. I hope this helps..


0

Run 'sudo apt-get update' command if sudo apt-get update is also not working then follow the below steps:- open '/etc/apt/source.list' file. check the word after 'http://security.ubuntu.com/ubuntu/' in the 'source.list' file, let the word is 'xyz' go to the address 'http://security.ubuntu.com/ubuntu/' then click on dists. now check whether 'xyz' is ...


0

You have to edit the /etc/apache2/apache2.conf file and add your domains in the global configuration section.


0

You need to look at the configuration of your internet router and figure out how to do "Port Forwarding". Outside requests - say for web pages - get to your router, it doesn't know what to do with them and just drops them. You need to tell it to forward the received requests - say to TCP port 80 - to the internal IP address of your actual server (and most ...


1

It appears that the private key for your SSL certificate is password-protected. To test whether this is really the case, examine the beginning of your keyfile using the command head -3 your.key. This private key is encrypted: -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-CBC,C251E8A1254B933D763703EE1C364AB7 This file is not ...


0

The cause of this problem: A typo. I had my VirtualHosts in the httpd-vhosts.conf file set to port 433, not 443. The tutorial works perfectly on 14.04, everyone.


0

Hmm ... baffling ... I have found a way around this problem. I still don't understand the original issue but it went away when I did the following: I had set the DNS server on each machine that I was using to test from because I didn't want to upset the 'Super User' who was hitting the internet with full force this morning. By super user I mean my wife. ...


0

Your sudoers configuration is right, in fact when you exec: sudo -u www-data /usr/bin/php test.php it work as expected. In normal operation, your apache runs as root and use mpm-itk module. Here is the problem. According to mpm-itk documentation: Since mpm-itk has to be able to setuid(), it runs as root (although restricted with POSIX ...


0

sudo -i sudo nano /etc/apache2/apache2.conf If your ubuntu 80 port is landing here /var/www/html (Look carefully it is not /var/www/) Add this block: <directory /var/www/html> AllowOverride All </directory>


1

This is nothing to do with Apache. It's the way you made your link. ln -s doesnt evaluate . relative to your current directory. Relative links will always be created to the resulting link file. It it will create a link to . in /var/www which will evaluate to a full path of /var/www/. You need to replace the dot with a fully qualified file name sudo ln ...


1

By default, the SSH server denies password-based login for root. In /etc/ssh/sshd_config, change: PermitRootLogin without-password to PermitRootLogin yes And restart SSH: sudo service ssh restart Or, you can use SSH keys. If you don't have one, create one using ssh-keygen (stick to the default for the key, and skip the password if you feel like ...


0

This can be fix by changing the parent folders' permissions. For example, if folder Database's permission is set to 777, bblab has to set to 777 else Database configuration won't work.


0

Quick and dirty solution could be a string in /etc/crontab to restart apache each hour, for example. */5 * * * * /usr/sbin/service apache2 restart This will restart apache each 5 minutes. But of course, we would like to know the reason it stops, right? There could be a lot of different reasons, as long as you have VPS. Your provider could just use some ...


1

The problem is that you have two php executable: one located in /usr/bin and another in /opt/lampp/bin. When you type php in your terminal, bash search it in $PATH directory list, and it found php in /usr/bin, so /usr/bin/php is executed. If you want to exec /opt/lampp/bin/php, open you .bashrc and at the end add this line: PATH=/opt/lampp/bin:$PATH ...


0

You can check the permission: First go to the base directory and fire this command $ls -la var/www


0

I have trouble to believe that the first thing I have to do is to lower the permissions. Well, it is. ;) On your system, you are both a user and an administrator. Administrator-you gets to decide who has access to what. If administrator-you decides that user-you must have access to /var/www, then changing the permissions and/or ownership of that folder ...


0

The permissions of /var/www can be found by executing the command: stat -c "%a %n" /var/www/ It returns 755 /wav/www/ Owner can read and write and execute, Group can read and execute, and Others can read and execute. But root owns /var/www so you either have to be root to add files, or change the permissions so anyone can write. See this answer for more ...


1

You can refer to this tutorial: How To Set Up Apache Virtual Hosts on Ubuntu 14.04 LTS


0

technically the best place to put your web files is in /var/www//... But, if you create a virtual host in your machine and put some IP in /etc/hosts/ to point some "name". You can do that. Virtual hosts: cp -p /etc/apache/sites-avaliable/000-default.conf /etc/apache/sites-avaliable/myname.conf sudo nano /etc/apache/sites-avaliable/myname.conf edit ...


0

I was trying myself too after posting the question here and I got it working through following the below steps. This work in mycase. You can try it too. Open Terminal In Ubuntu. Type mysql -u root -p ENTER_YOUR_SQL_PASSWORD Type > grant all privileges on DATABASE_NAME.* to USERNAME@IPADDRESS identified by 'PASSWORD'; Or Type > grant all privileges on ...


-1

The default permission for /var/www itself is a pretty standard one: owner root:root and mod 755. As for anything inside /var/www, that is one of the rare directories where you have the privilege of deciding for yourself what to put in it and what permissions everything in it should have. But what makes the most sense is: Most files should be writable by ...


0

I tried it out. I just noticed that the Wordpress directory as extracted from tar.gz file is owned by nobody:nogroup. Is that the case with you? If so, change it to sftpwp:www-data. Note that we're setting the group to www-data, but we could add the www-data user to the sftponly group as well and use www-data:sftponly as the owner. In either case, this is to ...


2

I run my own LAMP servers on Ubuntu connected to the Internet, so I always follow the same guidelines. Usually, I'll check the following : In Apache, remove the documentation or at least don't present it to trough the web server (by removing the link /etc/apache2/conf-enabled/apache2-doc.conf) In Apache, be sure that unnecessary modules are not loaded. ...


1

Here is what I generally do after a LAMP setup: (for development use, not production) Disable apache2 from starting automatically: sudo update-rc.d apache2 disable When you want to use, you may start it by: sudo service apache2 start Disable mysql from starting automatically: echo "manual" | sudo tee /etc/init/mysql.override When you want to use, ...


0

if it shows you a php code in the phpmyadmin may The php is not installed yet the installation $ sudo apt-get install php5 $ sudo apt-get install libapache2-mod-php5 or the php isn't included in the apache you can include it by $ gksu 'gedit etc/apache/apache2.conf' add this line Include /etc/apache2/httpd.conf & you can copy & edit by ...


0

easiest would be to sudo apt-get install tasksel then sudo tasksel install lamp-server or you could do sudo tasksel and follow the onscreen menu. source: https://help.ubuntu.com/community/Tasksel


0

I believe default-ssl is only the configuration for SSL Enabled Websites. So, it must not be necessary for cgi-bin. You could try locating the path needed to access your cgi-bin in default, under DocumentRoot /cgi-bin section.


0

Add ServerName localhost To sudo leafpad /etc/apache2/apache2.conf sudo leafpad /etc/apache2/httpd.conf It's not an error.. It's just a friend reminder


0

In addition to reply by rechengehirn one can put the file in the own restricted folder, allowing only the error file. order deny,allow deny from all allow from [MY_IP] <Files "err403.php"> allow from all </Files> ErrorDocument 403 /err403.php


1

You have multiple <Directory "/var/www/cgi-bin"> and <Directory />section in your configuration that configure different behaviors on this directory. When Apache found more than one times the same section or directive in its configuration, the last seen is the one which is applied. There is no auto magic merging stuff of multiple identical ...


1

You need to place the err403.php in a directory where the user (or in your case the IP) has access to. Otherwise apache can't deliver that page and defaults back tho the standard 403 error page. Also make sure (as you use ubuntu 14.04 with apache 2.4) that you change your access config using "require". The order,allow,denied directives are deprecated. ...


0

Try with running an update before the installation: sudo apt-get update This will get the information about package distributions.


0

Following the suggestion in this link we get the answer. Let's see some explanations. According to php documentation open_basedir: When a script tries to access the filesystem, for example using include, or fopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to access it. In order ...


0

See first link in @Litizia comment above for the post that helped me solve the problem. Specific changes to /etc/phpmyadmin/apache.conf that solved the problem for me are: under <IfModule mod_php.c> First: change php_value include_path . to: php_value include_path .:/usr/share/php:/usr/share/pear Second: Change php_admin_value ...


0

Ubuntu 14 organizes all the module-specific configs in separate files under /etc/apache2/mods-available/, so the MPM prefork stuff is now located in /etc/apache2/mods-available/mpm_prefork.conf


0

I used RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([\w.]+)/?$ index.php?a=$1 [L,QSA] RewriteRule ^(\w+)/([\w.]+)/?$ index.php?a=$1&b=$2 [L,QSA] RewriteRule ^(\w+)/(\w+)/([\w.]+)/?$ index.php?a=$1&b=$2&c=$3 [L,QSA] As well as made sure my firewall ...


0

The software-properties-common is buggy, so if have a time, please report this as a bug in software-properties-common. Meanwhile you can use apt-key: apt-key adv --keyserver keyserver.ubuntu.com --recv-key E5267A6C And DO check the keyid you are importing (it should be the same as add-apt-repository tries to import).


1

I know this is a very old post but I thought this information I found on another StackExchange site might be of assistance. When using an alias in your apache configuration you also need to use RewriteBase in your .htaccess file that's the same as the alias. Alias /antoniocs/project "/home/antoniocs/www/project" <Directory ...


0

In sites-available/your-site what have you set for DocumentRoot? Make it point to /var/www ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks ...


2

Apache alone is a webserver. The definition itself will explain that it can serve web requests to its clients as how the server is configured (HTTP via 80 / HTTPS via 443). If you're serving pages such as HTML, CSS.. etc, Apache alone should be able to handle without depending on other packages/services. But remember, if you're serving PHP, database, JSP... ...


0

Apache has everything you need to run your web site. Javascript runs on the client side. CSS is also interpreted by the web browser. My suggestion is to not use cgi if you can. There are more modern and safer alternatives out there.


3

Yes. Apache can serve files, and that is all that is necessary for javascript, css and jquery. All that technology works on the client side, i.e. in the browser. Cgi-bin is server-side technology, but that will work out-of-the-box as well.



Top 50 recent answers are included