Tag Info

New answers tagged

0

All my apps had to be put in the DocumentRoot and then they all worked. What threw me off was the fact that 2 applications that were not in the DocumentRoot still worked and were accessible via my browser.


0

Looks like your permissions may be stuffed. I suggest to do this chown -R root:www-data app3 test This will change the owner and group of all files and folders in app3 and test to owner = root and group = www-data. Hope that fixes it for you.


1

You can use this script to fix wordpress permission: #!/bin/bash # # This script configures WordPress file permissions based on recommendations # from http://codex.wordpress.org/Hardening_WordPress#File_permissions # # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> # WP_OWNER=www-data # <-- wordpress owner WP_GROUP=www-data # <-- ...


1

Indeed there is no specific answer. The answer would bw related to each package unique. The master guidlune to your choice is what you care about. Installing from Ubuntu main repositories ensure you security, stability but with some versions, since to ensure the policies put by ubuntu packaging system would take some time. So as a guidline, don't add third ...


0

Installing from the website itself gives you the latest updates of that particular software. Software being in PPAs generally take time to be tested and modified. I generally download the .deb file from the website only.


0

use rcconf to enable/disable a service to auto run on boot. sudo apt-get install rcconf Now, type sudo rcconf And you will see list of services that are installed on your Ubuntu machine. Those marked with star are auto run during boot process. To disable Apache, MySql just navigate to it using arrows and press space bar. Then navigate to OK button using ...


2

The problem is somewhat two-fold. The first problem is that that you use the php5 package in your install. That package is a metapackage - it pulls in other packages when you hit "Install". The problem is it prefers the Apache plugins over php5-fpm and other processors, and causes Apache to install with everything else. (And this is not supposed to be ...


0

Use command lines below: sudo apt-get remove apache2 sudo apt-get purge apache2 sudo apt-get autoremove And finally, install apache2 again: sudo apt-get -y install apache2.


0

I'm using apache 2.4.10 and munin 2.0.25-1 on ubuntu 15.04 To solve this problem, I followed Lars' sugestion from stackoverflow, i.e. using Require all granted instead of Allow from all, but applying the changes to the file /etc/munin/apache24.conf Changing /etc/munin/apache.conf had no effect for me. I have tried to grep me to the file determining which ...


0

You can Block IP Address in Ubuntu using iptables I have created a DEMO video to how to block/unblock a Source IP address Block/Ublock IP Address in Ubuntu Using iptables


0

It was my classpath. A friend told me about the -cp flag that could be used to define the classpath. once that was in, the JVM found main(). however now i've just got to find out why it can't find the file i'm passing in for main to work on.


0

Site 1: This site does not exist or the server does not respond. According to your config your ip address is supposed to be 69.90.132.94, it is not 9.90.132.94 as you've stated in you question. If that's correct then refer to below. Site 2: This clearly demonstrates that the webserver is working. You should reconfigure the webserver according to the new ...


1

Try iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT


1

When installing apache 2.4 I had a number of issues to solve and also had the same issue with text showing instead of running the cgi. The solution is not the same as above, which is the solution for apache 2.2 first you will download the 2.4 gz file and unpack. If you try to compile it will complain the APR is not found, since it is no longer included. You ...


0

Add your second admin to the "admin" group: sudo usermod -a -G admin userName Also make sure that the /etc/sudoers file has the following line: %admin ALL=(ALL) ALL This allows people in group "admin" to run any and all commands by prepending them with "sudo" as this: sudo edit /etc/apache2/apache2.conf sudo service apache restart


0

Your www-data group does not have write permissions on the folder, only user www-data does. Run: chmod g+w folder If you have subfolders and files within the folder, run: chmod -R g+w folder


0

In the sudoers file, You can allow them to sudo run certain commands as certain users. ie. taken from the linked help dgb boulder = (operator) /bin/ls, (root) /bin/kill, /usr/bin/lprm Then user dgb is now allowed to run /bin/ls as operator, but /bin/kill and /usr/bin/lprm as root. You will need to find the applications that he will need to be able ...


1

Assuming that the port forwarding configuration on your router is correct, you need to ensure a few things: The machine 192.168.0.4 has a running web server (OK). It's listening on either 192.168.0.4:80 or 0.0.0.0:80 (OK). The firewall that might be running on it allows incoming connections on port 80/tcp (UNKNOWN). With regards to the last point - I'm ...


2

The quickest way is to run the following command from commandline terminal: sudo rm /var/www/html/index.html The default location of that file is /var/www/html/index.html The rm command is used to delete a file. sudo is used to give to root permisisons to delete this file as there is a good chance your user is not a member of the correct group.


0

manually edit /etc/group and add www-data there then start apache add www-data:x:1012:www-data at end of file and save it Ctrl-X Yes {enter} (1011 was last num in my group file) start apache sudo service apache2 start it worked in my case


-1

You don't have to use apache to view html files only. But anyway If you want to use the web server apache. Install it first using: sudo apt-get install apache2 Now in order to put some html files in the web root, copy your files to the directory /var/www in newer versions it's /var/www/html which is the webroot directory. So now you can easily locate ...


1

Apache always displays some file. If you don't specify a specific file, it will look in its root directory (by default /var/www/html, but that can be changed). There is a hierarchy of filenames it will look for, such as index.html, which is the default page you see. However, you can specify a different filename in the URL, such as localhost/index.php, ...


1

A symlink should work fine. You may or may not need to add the directory to /etc/apache2/apache2.conf so that apache knows it is allowed to access the non-standard directory. Example (note: I do not use the -d option): doug@s15:/var/www/html$ ln -s /media/newhd/test_web bla2 doug@s15:/var/www/html$ ls -l total 44 ... lrwxrwxrwx 1 doug doug 21 May 11 ...


1

You must allow the Apache user (usually www-data)to create files in that directory. This can be accomplished by making Apache the owner of the directory, for example, if the directory were called my-dir, you would open a terminal and run this: sudo chown www-data my-dir


1

Of ocourse, one must remember to pass a HTTP "GET" parameter named 'XDEBUG_SESSION_START` and setting it to the IDE KEY.


0

mysql is already running open your terminal with ctrl+alt+T and type the following command... sudo /etc/init.d/mysqld stop if not working this command then please type... sudo /opt/lampp/sbin/mysqld stop


2

To give user mywebsite read/write permission inside /var/www/html/mywebsite: chown -R mywebsite /var/www/html/mywebsite That should be sufficient. You should not have to alter group owner or permissions because the user owner should be given read/write permissions already. If you wanted to grant a group read/write permission inside that folder, say, ...


0

Ubuntu comes preloaded with Apache so the service is started automatically during boot time. If you want to use XAMPP's bundled Apache you will need to stop the current. Here are the commands: sudo service apache stop //go to /opt/lampp or whereever you've put your XAMPP and launch it sudo ./lampp start Update: if you want to start the whole XAMPP ...


1

I uninstalled apache2 in synaptic, then ran sudo /opt/lampp/lampp start and it worked.


0

That's not how virtual hosts work, I'm afraid ;) Virtual hosts are used to host multiple independent sites on the same web server. "Back in the day", one machine hosted one website under one address. Say, your webserver hosts the website "www.my-site.tld". The files for that site (html, css, javascript, images, scripts, ...) are stored at /var/www/. ...


0

You should extract it on /var/www/html/.


2

You have: ACCEPT all -- anywhere anywhere and DROP all -- anywhere anywhere which is a bit confusing. The recommended practice is to set the default policy to DROP and then to accept the traffic you need. Ping does not work because you haven't allowed it. Try this script: #!/bin/sh # Delete all existing rules ...


1

Open the folder /var/cache/apt/archives and find the apache deb file (apache2-common...). Extract the file with: dpkg -x <your_deb> /tmp/apache2 Replace your empty /etc/init.d/apache2 with /tmp/apache2/etc/init.d/apache2 If the file is not found, then you can you download a deb file here. For older versions here or here. Take the version that ...


1

In your /etc/logrotate.d/apache2 file you have: if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then /etc/init.d/apache2 reload > /dev/null fi . /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid} means it will first source the file /etc/apache2/envvars, then if the variable ...


2

Make sure you have set the following path in your /etc/apache2/apache2.conf: ScriptAlias /cgi-bin/ "/path/to/cgi-bin/" and that your scripts are in that folder. If your scripts ends on .pl make sure to change the line AddHandler cgi-script .cgi to AddHandler cgi-script .cgi .pl in /etc/apache2/apache2.conf and check that it is not commented out. ...


1

When you use any non-standard directories with apache you need to also edit /etc/apache2/apcahe2.conf and add in a <Directory /bla/bla>stanza so that apache knows it is O.K. to access the area. Just copy the existing /var/www or /var/www/html one. Example (from another question, and for a different location): <Directory /var/www/> ...


1

In my case I had not enabled the site 'default-ssl'. Only '000-default' was listed in the /etc/apache2/sites-enabled folder. Enable SSL site on Ubuntu 14 LTS, Apache 2.4.7: a2ensite default-ssl service apache2 reload


1

The default document root is /var/www/html. Move tests to /var/www/html/tests.


1

Here is the default-ssl.conf of 14.04: <IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the ...


0

Here is your answer. How Rinzwind said, you need a maximum of 664. Therefore 777-664=113 local_umask=0113 I quote: In case you are wondering where to set your umask, it can be set in the vsftpd config file (/etc/vsftpd.conf) as anon_umask for anonymous access and local_umask for users. For the mask to work properly (even without anonymous ...


1

First stop nginx service, before attempting to remove it. I have tried this and it's working: sudo service nginx stop sudo apt-get purge nginx sudo apt-get autoremove


4

Altough I don't think that uninstalling apache will remove the content of /var/www/, if you want to make sure that you won't lose anything upon reinstallation do the following: Backup the content of the /var/www/ folder before reinstalling: tar pcfz <path_to_backup>/www_backup.tar.gz /var/www/* *<path_to_backup> = path to where to store the ...


3

Remove the $, that's all. sudo nano /etc/apache2/apache2.conf Navigate to line 222 and use a # as comment or remove the $ if you need the configuration in /etc/phpmyadmin/apache.conf.


4

Seems to obvious to me: the error complains about a $. There is a $ in the config file ad you copied it. That $ does not belong in the config file. Please delete it.


4

Lines starting with ; are comments, used for examples and explanations. You need to add the "actual" entries, for example date.timezone = "Asia/Tokyo" instead of ;date.timezone = "Asia/Tokyo" I'd recommend to add your entries instead of editing the existing, out-commented entries. So you can go back to the default just by deleting your own additions. ...


0

Lines starting with semicolon (;) are ignored in php.ini file. Just delete this character if You want to activate a directive.


0

Found this article from 2007! Looks like I do need two log files: http://www.westhost.com/blog/2007/11/09/awstats-and-multiple-domains/#.VT8JxlI8LCQ


0

ulimit -c unlimited only effects your current shell. You can confirm this by looking at output cat /proc/$(pidof -s apache2). I added ulimit -c unlimited to /etc/default/apache2 and now cat /proc/$(pidof -s apache2)/limits includes Max core file size unlimited unlimited bytes


2

The file you're looking for is in /var/www/html, and it's owned by root, so you'll need to be root in order to able to edit it: sudo -H gedit /var/www/html/index.html


0

Change Options +FollowSymLi2nks to Options +FollowSymLinks



Top 50 recent answers are included