Hot answers tagged

20

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 ...


11

Dislaimer: This procedures are done keeping in mind that the server being set up will NEVER be used in production, just for testing. I am not a system/network administrator, just a novice programmer asked to set up a server so take the procedures with a grain of salt. L - CentOS 6.7 Download CentOS from here. Choosing to download the CentOS-6.7-i386-bin-...


8

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


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

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


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


5

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

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

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 ...


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


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

100.64.0.0/10 is CGN-Space. That means you share your public IP with many other clients and the packets for your shared public IP get blocked at provider level. To circumvent this you have two options: Get your provider to install another forwarding rule on his router or buy a cheap VPS (5$/month DigitalOcean Droplet would do) and build a VPN between the VPS ...


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

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

I think I may be experiencing similar issues. Since I noticed the mouse I tried ctrlaltF1 then ctrlaltF7 and it was fixed for me. It's irritating that this happens a lot when I turn my TV off for a while then on.


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

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

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

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, which ...


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

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 ...


3

The comments thread had a bunch of useful troubleshooting tips but it turned out the issue was with the browser. I recommend having a spare, 'pristine' browser for testing, so if your mimetypes are messed up, you can still check. The OP installed opera and it worked, when firefox didn't. In his shoes, I might consider purging firefox - which eliminates all ...


3

My problem was that I was running the PHP files from Bluefish, which sent them to Firefox and appeared in the URL bar as file:///var/www/html/index.php. This is incorrect for PHP files to run on the local machine. Instead, the URL should've read: localhost/index.php. This reflects my index.php file stored in /var/www/html. This is the only way on the local ...


2

You can not manipulate files on virtual system, but you can manipulate files from you virtual system on the host system. Virtual box has a shared folder feature. You can create a folder on your host system and then mount it on /var/www on the Virtualbox.


2

There is a good wiki page covering open source accounting tools.



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