Install The Appropriate Db -Devel Package First Ubuntu

Install The Appropriate Db -Devel Package First Ubuntu Average ratng: 5,0/5 5632votes

Setup Nginx php FPM apc Maria. DB on Debian 7 The perfect LEMP server. Debian webserver. Debian is a great choice for setting up linux webservers. According to current stats it is the most popular server OS followed closely by centos. I am a great fan of the aptdpkggdebi commands, which make it so easy to install and update packages on the system. To setup a complete functional php webserver, you need to install a couple of extra things which include a webserver and a database. In this post we shall be setting up nginx, php, php fpm, apc and Maria. DB. Nginx is a modern webserver, that has been designed to handle large amounts of traffic using the least amount of resources in terms of RAM and CPU. Mint13/oracle11gIgnoreAll.jpg' alt='Install The Appropriate Db -Devel Package First Ubuntu' title='Install The Appropriate Db -Devel Package First Ubuntu' />Install The Appropriate Db -Devel Package First UbuntuBefore nginx the traditional webserver used through out the internet was apache. However as the internet became more populated, the need for a faster and efficient webserver grew. Nginx vs Apache. Apache by design is very bulky and has tons of features, most of which are not necessary for typical websites. It was probably designed to satisfy everyones needs, but this ended up making it a large and heavy webserver with mostly unused features. Nginx on the other hand is a very sleek and swift webserver that focuses entirely on speed, scalability, and efficiency. The technicals of how it does so are large and beyond the scope of this post. Ubuntu/phan_mem_tot_nhat_ubuntu_7.png' alt='Install The Appropriate Db -Devel Package First Ubuntu' title='Install The Appropriate Db -Devel Package First Ubuntu' />Install The Appropriate Db -Devel Package First UbuntuMay be we could take a look later on. Just for your information this website runs on nginx. Now without any further discussion lets get to work. Install Nginx on Debian. The nginx package is right there in the debian repositories so you dont have to look anywhere else. Fire up apt get and install it. Now launch the nginx server. Starting nginx nginx. To compile assuming you have all the dependencies in your search path tar xvfz postgis2. How to set up a mail server on a GNU Linux system Step by step guide to install Postfix Ubuntu Postfix CourierDovecot IMAP MySQL Amavisdnew SpamAssassin. If you have not heard about letsencrypt it is an amazing, and free, certificate authority. It proves free as in beer ssl certificates for anyone who can prove they. Now access the nginx server from browser by opening the urlhttp localhostand you should get the welcome message. Welcome to nginx Important notes. There are few things you should memorise to manage your nginx server better. The nginx configuration files are found in the following locationetcnginxemail protected etcnginx ls. We shall not modify the nginx. Instead we create a separate configuration file for each vhostsite and save it in the following directories. This is similar to apache. The sites enabled directory contains the configurations for vhosts that are to be enabled. It contains symlinks to the corresponding configuration files in sites available directory. Setup a virtualhost. Now that we have installed nginx, its time to setup a virtual host. This is what you would be doing on a real webserver to setup your site. Inside etcnginxsites available you would see a file named default. It is a template file to create your own configuration files. Just copy it and name it to your site. We choose to name the configuration files with the site name, so that it is easier to remember and maintain. Now open up binarytides. You would see a server block similar to thisserver. Make site accessible from http localhost. This first thing to configure here is the servername. Name it to your site. For exampleservername binarytides. When someone opens binarytides. When a matching server block is found, it would use the configuration from that particular server block. Another thing to configure is the web root directory for this sitevhost. Note that this is by default usrsharenginxwww which you might want to change to something else. The general convention is to have a separate directory for each vhost. For exampleusrsharenginxwwwbinarytides. So create an appropriate directory and point the root setting in the configuration file to the directory After doing these changes, save the configuration file and create a symlink the etcnginxsites enabled directory. Now test your new configuration nginx t. The last line of the output must say successful, or some error would be shown. It might show some warnings which can be fixed later. Finally restart nginx for the new configuration to take effect service nginx restart. Restarting nginx nginx warn conflicting server name localhost on 0. So the new configuration has taken effect. Now create a new index. Install php and php fpm. The next thing to install is the php interpreter and php fpm. Php FPM is dedicated fastcgi process manager for php that can interface or connect with any compatible webserver and manage php processes to process php requests. Nginx lt communicates Php FPM lt manages php child process. Install the necessary packages first. It will automatically install the necessary dependencies. You can install php. Php fpm runs as a separate server and nginx communicates with it over a socket. Hence the php execution is totally outside the server. Also since fpm keeps php process persistent, it fully supports APC. Now locate the php fpm configuration files. The files at located atetcphp. A pool is a bunch of php processes running with same usergroup. So if you want the php files of each site to run with a separate user permission, then you need to create separate pools of fpm. For simplicity sake we just showing a single pool here. The pool configuration files are inside the pool. Navigate inemail protected etcphp. Open the www. conf file which is again a template for you to use and create separate configuration files for each pool. It looks something like this Start a new pool named www. Per pool prefix. It only applies on the following directives. When not set, the global prefix or usr applies instead. Note This directive can also be relative to the global prefix. Default Value none. Unix usergroup of processes. Note The user is mandatory. If the group is not set, the default users group. The address on which to accept Fast. CGI requests. Valid syntaxes are. TCP socket to a specific address on. TCP socket to all addresses on a. Note This value is mandatory. Set listen2 backlog. Default Value 1. Free. BSD and Open. BSD. The above thing consists of comments mostly and the most important 4 lines are. This socket must be given to nginx for nginx to be able to talk to fpm. Connect fpm with nginx. We are not going to change much here. Just note down the socket path. We have to put this into the nginx configuration file. Go back to your nginx configuration and open it again. It contains a section for php fpm configuration which looks like this pass the PHP scripts to Fast. CGI server listening on 1. NOTE You should have cgi. With php. 5 cgi alone. With php. 5 fpm. Uncomment it and make it look like thislocation. NOTE You should have cgi. With php. 5 cgi alone. With php. 5 fpm. Test PHPNow put up a file in the web root with the phpinfo call. And then open the file in browser and the php information block should come up, saying that php is setup and working correctly. Another thing that you can do is add index. So that when accessing a directory, if no file is specified, then index. Setup apc alternate php cache. APC is a great way to speed up the execution of php scripts. Apc compiles php code and keeps the opcode in memory and uses it next time without compiling the same php code again from file. This drastically speeds up execution. Apart from opcode cache, apc also offers a user cache to store raw data for the php application in memory. Php as of version 5. How to Install LDAP 3. Directory Server On Linux with Detailed Steps. Directory Server is an open source enterprise LDAP Server. This can handle very huge volume of data. One of the huge benefit of 3. LDAP server is that it is lighting fast and process upto handle several thousands of operations per second. This has several advanced features including asynchronous multi master replication for horizontal scaling, which in turn provides provides 1. Also, keep in mind that this supports TLS, SASL for authentication and transport. Directory server is fully LDAPv. This tutorial explains how you can install and configure 3. Linux environment. Setup EPEL Repository. If you dont have EPEL repository setup, make sure you set it up, as well be installing the 3. EPEL. First, download the epel rpm from Fedora website as shown below. Next, Install the epel repository on your server. Header V3 RSASHA2. Signature, key ID 3. NOKEY. Preparing. Updating installing. If you are interested in Open. LDAP instead of 3. How Install and Configure Open. LDAP on Linux. Setup etchost File Properly. Moving And Striking Martin Wheeler there. Make sure the host file is setup properly. In this example, the following is the current etchost file setup. In the above 1. 92. Is the ip address of the serverdeploy. This is the FQDN of the server where 3. This is the hostname of the server. Setup Appropriate sysctl Parameters. Add the following line to your etcsysctl. Depending on how much resource you have on your system, you may want to bump up the above file max number bit more. Execute sysctl p command as shown below to make sure the above changes are made to your system. Verify that the changes are made sysctl fs. Set Appropriate Ulimit Values. Set the ulimit value to 8. Verify that this entry is added to the etcprofile file. Modify pam. d Login File. Modify the etcpam. Make sure the pamlimits. Aug 1. 8 2. 01. 5 usrlib. Note On 3. 2 bit, use the following, as the location of this file is different. Create LDAP Admin User. Create a user called ldapadmin and assign a password as shown below useradd ldapadmin. Once youve setup the LDAP Server properly, this will help How to Add LDAP Users and Groups. Install 3. 89 Directory Server Base and Open. LDAP Client. Next is to install the 3. Open. LDAP client utility packages. We need to install these two packages 3. Using yum command install the above two packages yum install 3. Apart from installing the 3. Geo. IPbind libsbind utilscyrus sasl gssapicyrus sasl md. Archive Tarperl DBFileperl IO Zlibperl Mozilla LDAPperl Net. Addr IPperl Package Constantssvrcore. On this particular system, the following packages were also upgraded when the above two packages were installed bind libs litebind licenseopenldap. If you are using EPEL repository for the first time on your system, this may ask you to accept the key as shown below. Say y here. Retrieving key from file etcpkirpm gpgRPM GPG KEY EPEL 7. Importing GPG key 0x. C6. 4E5. Userid Fedora EPEL 7 lt epelfedoraproject. Fingerprint 9. 1e. Package epel release 7 9. From etcpkirpm gpgRPM GPG KEY EPEL 7. Is this ok yN y. Install 3. Directory Server Admin Packages. Next, install the following packages that are related to the 3. LDAP Server administration 3. This is the 3. 89 directory, administration, and console suite. This is the admin for 3. Administration Server. This contains the utilities and libraries that are required for 3. This is web based docs for 3. Use yum command and install these 3. Apart from installing those 4 packages, depending on your system, this also installed the following dependent pcakges 3. CGIperl FCGIpython javapackagespython lxmltzdata java. On this particular system, the following packages were also upgraded when the above packages were installed chkconfignsprnssnss softoknnss softokn freeblnss sysinitnss toolsnss util. Speed Registry Tweak For Windows 7 Internet Explorer. Setup 3. 89 Directory Server Execute setup ds admin. After installing the required 3. LDAP Server packages, then execute the setup ds admin. Directory server setup on your system. The above program will ask you to enter several values. Most of them are intuitive and straight forward. But, Ive shown partial output of whereever this is asking for user input below. Setup 3. 89 Directory Server Initial Warning Message. During the 1st few prompts of the above setup ds admin. WARNING messages. You can say yes to continue here 3. Directory Server system tuning analysis version 1. JULY 2. 01. 6. NOTICE System is x. WARNING There are only 1. WARNING The warning messages above should be reviewed before proceeding. Would you like to continueSetup 3. Directory Server Choose Typical Setup Type. In the following screen, if you are new to 3. Express. Allows you to quickly set up the servers using the most. Useful for quick. Allows you to specify common defaults and options. Allows you to specify more advanced options. This is. recommended for experienced server administrators only. To accept the default shown in brackets, press the Enter key. Choose a setup type 2 2. Setup 3. 89 Directory Server Enter FQDNIf youve setup your etchosts file properly as explained in one of the previous setps, it should properly pick up your computer name here as shown below. You just have to press enter here and move on. Computer name deploy. If your server doesnt have proper FQDN setup, then youll see this error message during your setup ds admin. Press Ctrl C and come out of this, address the FQDN issue and then re run setup ds admin. WARNING There are problems with the hostname. The hostname deploy does not look like a. Please check the spelling of the hostname andor your network configuration. If you proceed with this hostname, you may encounter problems. Do you want to proceed with hostname deploy Computer name deploy C. You can also pass the FQDN as a parameter to the setup ds admin. General. Full. Machine. Namedeploy. thegeekstuff. Computer name deploy. Setup 3. 89 Directory Server Enter LDAP Admin User. By default, this will use dirsrv as the username and group. Since we created a user called ldapadmin in one of our previous steps, specify that here. System User dirsrv ldapadmin. System Group dirsrv ldapadmin. Setup 3. 89 Directory Server Config Directory Server. Since this is the first setup we are doing, we dont have a configuration directory server yet. So, press enter here to accept the default choice, which is no. But when you are doing multiple installation of this, you might already have configuration directory server setup, in which case, you should say yes and specify those information there. Do you want to register this software with an existing. Setup 3. 89 Directory Server Specify Admin Username and Password. At this stage, you have to specify the admin username and password for the new directory server that this is going to setup. Youll be using this uid and password to login to the console. Configuration directory server. ID admin. Password confirm. Setup 3. 89 Directory Server Enter Additional Parameters. The following are few additional parameters the setup ds admin. This domain name was picked up from the FQDN that weve defined in the etchosts file Administration Domain thegeekstuff. The default port number as you can imagine from the name is 3.