Tag Info

Hot answers tagged

10

To assign group ownership by www-data regardless of the uid/gid of the process that creates the file, you need to set the setgid bit on the directory. sudo chown :www-data <dir> sudo chmod g+s <dir> Note that you must also make the directory writable by whatever process will create the files. If that's anyone but root, you may also ...


7

The Listen directive in your config should be equal to Listen 127.0.0.1:80


7

Try Ubuntu Server and select LAMP during installation. No GUI, just text based. Plenty of documentation and resources on the web. Plenty of packages.


7

No. Just open a Terminal and type the following: sudo tasksel install lamp-server If you want to bring up the whole menu for the application groups: sudo tasksel You can use the Ubuntu help these times (if you get stuck): https://help.ubuntu.com/community/ApacheMySQLPHP


7

No need to restart phpMyAdmin, changes in /etc/phpmyadmin/config.inc.php are automatically applied.


5

When using Virtualhosts, it would look like this: <VirtualHost 1.2.3.4:80> [...] PHPINIDir /var/www/web1 [...] </VirtualHost> Where php.ini would be located in /var/www/web1/php.ini. Also check here: http://www.howtoforge.com/how-to-specify-a-custom-php.ini-for-a-website-apache2-with-mod_php


4

Using cat is not a good idea, especially if logs grow large. Instead, try tailing. sudo tail /var/log/apache2/error.log tail will only show the last N lines of a file. If you want to keep monitoring the last lines, use the -F command-line option . Use Ctrl + C to close the monitoring. sudo tail -F /var/log/apache2/error.log To enable the logging, you ...


4

I haven't tried it with LAMP, but I have used Damn Small Linux with XAMPP. Works very well.


4

It sounds like you might have managed to uninstall your desktop environment. (Unless Karmic has replaced GDM, which I doubt.) If you were using GNOME, you probably installed Karmic with the ubuntu-desktop. You'll want to reinstall that: $ sudo apt-get install ubuntu-desktop ...or possibly $ sudo apt-get --reinstall install ubuntu-desktop That should ...


4

is this machine sufficiently powerful? Yup, that will run it. But I don't think it's in your best interest, financially. In this case, the "correct" answer "is" the free tier of Amazon's EC2. (or a similar service). It's pretty extremely awesome. If you pay for a 3yr term on a Micro Instance (that's $82), you'll likely save a fair bit of money: Here's a ...


4

You'll likely be logging in to a Bash shell, so start there: Bash Beginners Guide. Then move on to setting up LAMP: Getting started with Ubuntu LAMP server. Whatever you want. There is more information available than anyone could ever process.


4

You can also use the AddHandler and AddType directives in your conf files. There's no need to make files executable when they really don't need to be. AddHandler php5-script .php AddType text/html .php


3

In answer to part one of your question. The quickest way to determine whoch storage engine is default is to issue the following; $mysql -h localhost -u user -p -e "SHOW ENGINES" This will result in a list of supported engines that the db server you are connected to is enabled with. The default one will have "Support DEFAULT" indicating which engine is ...


3

That command creates an empty file called "info.php". The next step is probably to edit the file, and add something like this to it: <?php phpinfo(); What this does is allow you to see all information about your Apache/PHP installation through your browser, usually to see if you have all the PHP libraries you need. When you have done installing, you ...


3

Yes, it's possible. The port question is up to you. Check your router, forward your port. That's it. The IP/Domain. Two options: IF you have a dynamic IP, you will need a DynDNS like service. (DynDNS got a client application which you run from cron / keep it running in the background. It'll automatically update the domain entry, so it'll always point to ...


3

What you're talking about is a Network Load Balance setup, in that both machines use a shared virtual IP in a round robin arrangement. When one goes down, the NLB stops routing calls to that box, and the other box gets all the requests until the first box comes back up. The problem with NLB is, it doesn't enforce sync between the two servers, it's just a ...


3

Am I on the right track at least or am I spinning my wheels? Uhm, both. If you use source code then you will need a compiler. If you use pre-build packages (e.g. .rpm or .deb) then you do not need a compiler. Regardless of method used, having a working compiler is a good thing and I would split your tasks into two parts: Get a working compiler, ...


3

To make your server visible from outside your LAN, you will need the following: Setup NAT on your router to point port 80 to the web server (or the port your web server listens to). In your case you should point that port to the server IP 192.168.1.50. You could also use any service like DynDNS to access your webserver without having to know your public IP ...


3

You only need a LAMP stack when you want to present a web server. If you are wanting to run a number of virtual servers via OpenVZ on a single hardware server, you should not install the LAMP components on the host OS. Install them on the guest OS's if you need them. On the other hand, you may wish to have some management and reporting via the host OS, in ...


3

You cannot set it inside <Location> or similar blocks. So you must work around it. In my default config the following is used, this seems to be a useful way of doing it (of course you need to adapt the path if you change the UserDir path, too) <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews ...


3

It really depends on your needs. You could very easily load up Ubuntu and throw LAMP on it. IIS, however, is also very good (especially on Windows...though I guess it's only on Windows...). If you're looking to build something that other people rely on, you're probably going to want to install Linux and go that route. IIS might be good for experimentation, ...


3

I was in a similar situation on Ubuntu 10.10 (phpmyadmin 3.3.7deb3build0.10.10.1) and even after editing /etc/phpmyadmin/config.inc.php I couldn't login (because of AllowNoPassword). I had to cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php and then add the $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; line to it. It is ...


3

This is a complex question, but putting together a simple system to protect your father-in-law's confidential information should not be that difficult. Your first suggestion of using separate addresses for separate services probably won't make much of a difference. If someone (say, Mallory) is intercepting email in the network, then they can probably ...


2

Change /var/www I would recommend you edit the /etc/apache2/sites-enabled/000-default and change the DocumentRoot and Directory to point to something along the lines of DocumentRoot /home/USERNAME/web/ and <directory /home/USERNAME/web> instead of the ones with /var/www in them Userdirs Alternatively you can enable Userdirs, by simply sudo ...


2

You could setup a SSH tunnel from your development machine out to your VPS which would allow you to give them access. You'll need to setup remote port forwarding. For OpenSSH client it would look something like this: ssh -R 8080:localhost:80 user@server Running that on the dev box should setup a tunnel from server:8080 to your dev box port 80. You can ...


2

I typically use rsync. Having root user makes process even easier because you can guarantee to preserve permissions. ssh into new Linux box and execute this rsync command: root@new-host# rsync -avl --delete --partial --progress root@old-host:/old/dir/ /new/dir/ used rsync flags meaning: -a - archive mode or recursive copy -v - verbose -l - preserve ...


2

Use VirtualHosts in your httpd.conf. Also, make sure the DNS configuration points both domains to the same server. For example: <VirtualHost *:80> DocumentRoot /path/to/domain1.com/html ServerName www.domain1.com ScriptAlias /cgi-bin/ /path/to/domain1.com/cgi-bin <Directory "/path/to/domain1.com/cgi-bin"> Options ExecCGI ...


2

Most (if not all) Wireless enabled routers/hotspots have an option designed to isolate users both on wireless and wired. This generally means that if you are on the wireless nothing else except the gateway and the internet are accessible for you. Check your configuration and look for "Isolate Wireless clients" or similar. Another option is that the ...


2

Tell the server to only listen on 127.0.0.1 and ::1.


2

Try and open it using: sudo gedit /etc/phpmyadmin/config.inc.php Uncomment it and save, but keep it open - then try opening phpMyAdmin. It should work.



Only top voted, non community-wiki answers of a minimum length are eligible