![]() Optionally, install additional cURL, JSON, and CGI support: sudo apt install php-curl php-json php-cgi Install PHP, the PHP Extension and Application Repository, Apache support, and MySQL support: sudo apt install php libapache2-mod-php php-mysql Install the mysql-server package: sudo apt install mysql-server ![]() Install Apache 2.4 from the Ubuntu repository: sudo apt install apache2 ![]() If you prefer not to install the bundled packages via Tasksel, you can instead install them separately: Use Tasksel to install the LAMP stack: sudo tasksel install lamp-server Install Tasksel if not already installed by default: sudo apt install tasksel Instead of installing Apache, MySQL, and PHP separately, Tasksel offers a convenient way to get a LAMP stack running quickly. If you do not have a registered domain name, then replace with the IP address of the Linode server in the following instructions. Oracle Releases MySQL 5.5 ( you have a registered domain name for your website, then add the domain to the Linode server on which you plan to install the LAMP stack.Getting started with MySQL on Ubuntu ().Start the server: at this point we have only to start the server by issuing the “upstart” command start mysql.In order to get the MySQL server to start, we need to edit the file /etc/init/mysql and in the pre-start section comment out the apparmor line – this will not work in Ubuntu 10.10 and will cause the server to fail to load. Last minute configuration: the mysql-5.5 packages built are designed for Natty (Ubuntu 11.04) and therefor have some Natty specific features.When installing the mysql-server-core package you should get a configuration screen to set up the root password for the server, so don’t forget to set it to something that is useful. ![]() Install the new software: go up one directory to the directory where you downloaded the source and install any package you need using the command dpkg -i followed by the file names of each deb package you require.Finally it will report that the new deb packages have been successfully built. The build is pretty quick – I was very impressed, but the tests take forever and a half – be patient and equip yourself with a hot beverage and something to pass the time. Build the new Ubuntu package: run dpkg-buildpackage again and watch it complete the build and tests.Complete the installation and configuration of all the required packages. copy the names of all the dependencies (without the version information) and type apt-get install followed by the names of all the missing packages. The command will run and then stop after complaining about missing dependencies. Install dependencies: in the sources that were downloaded into the directory you created in the above step, you’d find a directory called mysql-5.5-some-version, change into it and run dpkg-buildpackage.Get the source package: create a new directory somewhere where you want to build the package and open a terminal and change to it, then run from the command line the command apt-get update and then apt-get source mysql-5.5.Don’t get the first “deb” line because that will add the binary repository and this can mess up your system when you do an upgrade later. Now in the box below that copy just the “deb-src” line and add it to the end of the /etc/apt/sources.list file on your Ubuntu 10.10 server. In the select box, choose “Lucid” – because the PPA no longer has Maverick packages, but the Lucid ones should work as well. Setup the PPA repository: go over to Clint Byrum’s PPA (by clicking on this link) and click on “Technical details about this PPA”.It looks that this build nicely, passes all the tests and installs cleanly on an Ubuntu 10.10 server without any hassles, so here is a simple walk through: We can instead install native Ubuntu packages for MySQL 5.5, based on the work in progress for the Ubuntu bug listed above, by using the source packages from Clint Byrum’s 1 PPA and building them locally on your Ubuntu 10.10 server. So how to go about (ab)using the latest software from Oracle? One way is to build it yourself on your server, or convert the Oracle provided RPM packages using the alien tool – but its not really Ubuntu native and a mess (in both cases). There is a bug report to deliver MySQL 5.5 for Natty, which is even marked as “in progress” but there’s no guarantee that it will happen. As we all know, MySQL 5.5 is the best thing since sliced bread (or, not exactly, but that’s what everyone will have you think), but unfortunately Ubuntu‘s latest and greatest server operating system – Ubuntu 10.10 Server comes with MySQL 5.1.Įven the next version of Ubuntu – 11.04 Natty Narwhal – doesn’t seem to deliver MySQL 5.5, so upgrading is not really an option as of yet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |