Tag Info

New answers tagged

-2

Type the commands below in terminal(Ctrl+Alt+T). It works for me... sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin sudo /etc/init.d/apache2 reload


0

Don't do anything: The Linux kernel is using as much memory as possible instead of letting it sit idle doing nothing by allocating free memory to the cache. You can control the cache, but doing so would make your system perform worse as all disk access would actually be disk access instead of cached disk access. (actually you should have moved to a server ...


1

In fact, the docroot does change between precise and trusty from /var/www to /var/www/html. It is poor that the do-release-upgrade script does not regress the docroot back. A) Either is valid, but html is more conventional. CentOS is influential in this regard. The "it works" page is more mature now too. B) You do not have to use /var/www/html, but if ...


0

Yes if you want to access it from anywhere you need a static ip, else you can only find it from local host. You can set up a static ip for free with this http://www.noip.com/ then you access your pc by its ip.


1

With Apache prefork MPM configured with a ServerLimit of 256 you've configured it for a maximum memory usage of about 256 processes, roughly 15-30 MB of memory each in a typical PHP5 Apache module. Do the math and you know it will explode on a small server with a high number of clients. Instead, configure it with much tighter limits. E.g. <IfModule ...


0

I'm using Ubuntu 14.04. In order to change apache2 default port, change it in /etc/apache2/ports.conf file as; Listen 44400 Note: Adding Listem 44400 in /etc/apache2/apache2.conf file,then apache will listen on 80 and 44400 both ports.


0

example: $ mkdir /home/myuser/proyects/php/myproyect $ cd /var/www/ $ sudo ln -s /home/myuser/proyects/php/myproyect . now you need: 1) set apache as owner of your proyect $ sudo chown myuser:www-data /home/myuser/proyects/php/myproyect -R 2) set +x permissions on each folder to your path $ sudo chmod +x /home/myuser/proyects $ sudo chmod +x ...


1

You shouldn't just drop stuff into sites-enabled. You should use a2ensite to enable the site configuration in Apache. The syntax is a2ensite [site].


0

Maybe this could help you. And also look here: How To Install Ubuntu LAMP stack (includes php) wget http://uk.php.net/distributions/php-4.4.9.tar.gz tar zxf php-4.4.9.tar.gz cd php-4.4.9/ ./configure make sudo make install


1

As far as I can tell, this module no longer needs to be installed or enabled. At least, <IfVersion></IfVersion> sections work fine without any further action on my Ubuntu 14.04 systems.


0

When you install phpmyadmin, you should be asked which server it should configure web access for: If you select apache2, as shown in the image, a configuration file is added to conf-available: ls -l /etc/apache2/conf-available/ total 20 -rw-r--r-- 1 root root 315 Jan 3 2014 charset.conf -rw-r--r-- 1 root root 3224 Jan 3 2014 ...


0

I got the same error when trying to run apache2 -M also. I ended up just sourcing the envars file like this: . /etc/apache2/envvars That set the environment variable properly since running apache2 outside of the standard init script.


0

LAMP-C++ with Django and Mezzanine All files available in git repo -> link 1) Network: If you want to see your service/site on the home subnet (192.168.xxx.xxx IP-s), then you should ensure that IP addresses are stable. I have a router which has a built-in DHCP server that gives home subnet IP-s to devices based on which connected first. There are two ...


0

LAMP-C++ with web.py All files available in git repo -> link 1) Network: If you want to see your service/site on the home subnet (192.168.xxx.xxx IP-s), then you should ensure that IP addresses are stable. I have a router which has a built-in DHCP server that gives home subnet IP-s to devices based on which connected first. There are two ways to handle ...


1

you are talking about a file server with apache Just do as follows. Open your terminal and do as below sudo apt-get install apache2 then sudo service apache2 start Just open your browser and type as localhost and press enter. If you see You have installed your webserver successfully. Now we have to setup a file server for you. Now open ...


0

Sometimes even worse things can happen.... I just forgot to install php


0

This isn't actually an answer, but it was too detailed to be a comment, and may become an answer after more information is determined. When I read your post, I thought you were using your lan ip address (internal ip address), but after comparing the results of your commands vs my own, forcing me to look more closely, I see that you are trying to use an ...


1

Answer on http://serverfault.com by @JamesSneeringer. I've been guilty of removing the passphrase from my own key files in the past, because it's the simplest solution, but security-wise, it's not the best idea. An alternative is to feed the passphrase to Apache. You can do this with the SSLPassPhraseDialog option in your httpd.conf (or another ...


0

Have you followed the guide? Some possibilities: You don't have the application installed - fix with sudo apt-get install tomcat7-admin (change to your tomcat version as required) Maybe the Apache configuration is wrong, given that you seem to be using AJP. I've successfully used <Location /manager> ProxyPass ajp://localhost:8009/manager ...


0

We eventually found that is a misconfiguration between 00-default and mysite.com. I guess that request are serverd by mysite.com VirtualHost that have not permission to access /var/www/html. If you need both VirtualHost working, Apache need to recognize both either by name or by ip. You should add ServerName directive in 00-default and add both name in ...


0

Reading Apache documentation, I did not find a way to give ip range to require ip directive, as you need. So, you should list every ip address one per require ip directive. Another possibility is to use SetEnvIf to define a variable if Remote_Addr matches you ip range: SetEnvIf Remote_Addr "^192\.168\.0\.([2-9][0-9])$|^192\.168\.0\.1([0-8][0-9])$" ...


2

Either (1) you can add static name in your router DNS table This means you can add a line that will tell every PC on the lan that "home" is that one ip. or (2) you set up a DNS server in one of your PC of your lan. The PC running the DNS server must always be on, registered as DNS server in the dhcp configuration of the router, in the DNS server ...


0

hosting a website is all about availability, first you need a fixed IP address from your ISP( which cost much) to make your domain name bind with it, and make you easily found on internet, alternatively you can use DDNS like with no-ip, also your computer should have enough resources to manage the demand, and a good internet access subscription that would ...


0

If you include a trailing to the end of tour URL path, put one at the end of your alias name too (so this trailing will be required in the URL). Restart apache2 You surelly have to change the owner group of your new directory to www-data : sudo chown -R yourname:www-data /home/user/Dropbox/Development/www And change file permissions like this : sudo ...


2

Options: Option 1 -> LAMP-C++ with web.py That's a rather simple deployment option, ideal for the case when you're writing a web service with little or no GUI. web.py 0.37 (pip list | grep web.py) web.py info on stackoverflow -> link Option 2 -> LAMP-C++ with Django and Mezzanine That's an option if you want to make a web site, maybe still with a ...


0

You can get the options easily like this (you could look in the source package but this is way less work): $ sudo apt-get install php5-dev $ php-config --configure-options --prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/apache2/conf.d --build=x86_64-linux-gnu ...


0

Go to this file /etc/apache2/apache2.conf and add follwing lines End of the file ServerName localhost This will set the server directive Globally.


1

Probably at line 20 of /etc/apache2/sites-enabled/zzz-deny-generic.conf is present something like: ServerName * According to Apache documentation, ServerName syntax is: ServerName [scheme://]fully-qualified-domain-name[:port] As I can understand this last configuration file would deny any request that is not matched by previous VirtualHost. ...


0

According to Apache documentation: If no ServerName is specified, then the server attempts to deduce the hostname by performing a reverse lookup on the IP address. Reverse lookup: Look up an IP address to find the domain name for the IP address. I guess that this is why example.de is served by your default VirtualHost, so try to add ServerName ...


1

You need to enable the directory explicitly in your /etc/apache2/apache2.conf Find the section that reads like this: <Directory /usr/share/or_whatever > Allow override none Require all granted </Directory> where granted or denied is the explicit permission for this non-standard directory. Without this directive everything outside of ...


0

It is not a security risk, you may secure /home/me/sites the same way as you do /var/www. Sometimes on servers /home may be on different partition with different size than /var and disk usage or performance optimization may come to consideration.



Top 50 recent answers are included