Tampilkan postingan dengan label MySQL. Tampilkan semua postingan
Tampilkan postingan dengan label MySQL. Tampilkan semua postingan

Minggu, 24 Juli 2011

Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.6

Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on a CentOS 5.6 server with PHP5 support (through FastCGI) and MySQL support.

Comments (0)Add Comment
You must be logged in to post a comment. Please register if you do not have an account yet.
busy

View the original article here

Rabu, 06 Juli 2011

Installing Lighttpd With PHP5 And MySQL Support On Ubuntu 11.04

Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an Ubuntu 11.04 server with PHP5 support (through FastCGI) and MySQL support.


View the original article here

Selasa, 05 Juli 2011

Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On Ubuntu 11.04

Nginx (pronounced "engine x") is a free, open-source, high-performance HTTP server. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption. This tutorial shows how you can install Nginx on an Ubuntu 11.04 server with PHP5 support (through PHP-FPM) and MySQL support.


View the original article here

Jumat, 17 Juni 2011

Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.04)

This document describes how to install a Postfix mail server that is based on virtual users and domains, i.e. users and domains that are in a MySQL database. I'll also demonstrate the installation and configuration of Courier (Courier-POP3,...


This document describes how to install a Postfix mail server that is based on virtual users and domains, i.e. users and domains that are in a MySQL database. I'll also demonstrate the installation and configuration of Courier (Courier-POP3, Courier-IMAP), so that Courier can authenticate against the same MySQL database Postfix uses. The resulting Postfix server is capable of SMTP-AUTH and TLS and quota. Passwords are stored in encrypted form in the database. In addition to that, this tutorial covers the installation of Amavisd, SpamAssassin and ClamAV so that emails will be scanned for spam and viruses. I will also show how to install SquirrelMail as a webmail interface so that users can read and send emails and change their passwords.


View the original article here

Sabtu, 11 Juni 2011

Replicate MySQL to MongoDB with Tungsten Replicator

You can now replicate data from MySQL data to MongoDB using Tungsten Replicator, an open source data replication engine for MySQL. It's sponsored by Continuent, makers of Tungsten Enterprise.


The new functionality was added by Continuent CTO Robert Hodges, Flavio Percoco Premoli of The Net Planet and Continuent employee Stephane Giron as part of a hackathon at the Open DB Camp in Sardinia.


View the original article here

Senin, 06 Juni 2011

Replicate MySQL to MongoDB with Tungsten Replicator

You can now replicate data from MySQL data to MongoDB using Tungsten Replicator, an open source data replication engine for MySQL. It's sponsored by Continuent, makers of Tungsten Enterprise.


The new functionality was added by Continuent CTO Robert Hodges, Flavio Percoco Premoli of The Net Planet and Continuent employee Stephane Giron as part of a hackathon at the Open DB Camp in Sardinia.


View the original article here

Selasa, 24 Mei 2011

how to move your website to another hosting

IN HOSTING THE OLD:

1. Log into CPanel - File Manager - your Folder Domain
2. Give the check folder wp-content
3. click the Compress button in the top
4. Name your own preferences, or simply your domain name only
5. Give the check file compress
6. Click the button ownload and save the results on your hard drive
7. Log into CPanel - Backups
8. Click the name of your WordPress database used to download the database.
9. If you do not know, then go back to File Manager and edit the file wp-config.php. The name of the database is in the file.
10. Save the downloaded database
Verify that the download is not corrupt. The trick, try opening the file download and extract. If successful then it sip.

MANAGE IN DOMAIN
Change the NS domain hosting go to a new hosting. I think its ok .. could all change domain name servers in cpanel
NEW IN HOSTING:

1. Put your Add-On Domains in CPanel
2. Go to the Fantastico menu and the Install WordPress as usual. The contents of origin from her later on we will change all. When the installation process, will usually show the name of the database. Remember his name
3. Login to the wp-admin and upgrade to latest version
4. Log into CPanel - File Manager
5. Upload file wp-content that was downloaded in compressed form
6. Delete the folder wp-content created by fantastico
7. Extract the file you just uploaded
8. Log into CPanel - PHPMyAdmin
9. Log into your new WordPress database.
10. Check the boxes for all tables and then click the cross (drop)
11. Select Yes when the confirmation.
12. Click the Import Menu
13. Then select the database file you have downloaded.


done .. the plugin file and the posting was right again .. .. it has not moved when the web hosting

New! Click the words above to view alternate translations. Dismiss

Senin, 23 Mei 2011

Installing Apache2 With PHP5 And MySQL Support On Ubuntu 11.04 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 11.04 server with PHP5 support (mod_php) and MySQL support.


Read more at HowtoForge


View the original article here

Sabtu, 30 April 2011

Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.4

Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an OpenSUSE 11.4 server with PHP5 support (through FastCGI) and MySQL support.


I do not issue any guarantee that this will work for you!


In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.


First we install MySQL 5 like this:

yast2 -i mysql mysql-client mysql-community-server


Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig -f --add mysql
/etc/init.d/mysql start


To secure the MySQL installation, run:

mysql_secure_installation


Now you will be asked several questions:


server1:~ # mysql_secure_installation


NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MySQL to secure it, we'll need the current
password for the root user.  If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.


Enter current password for root (enter for none): <-- ENTER
OK, successfully used password, moving on...


Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.


Set root password? [Y/n] <-- Y
New password: <-- fill in your desired MySQL root password
Re-enter new password: <-- confirm that password
Password updated successfully!
Reloading privilege tables..
... Success!


By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.


Remove anonymous users? [Y/n] <-- Y
 ... Success!


Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.


Disallow root login remotely? [Y/n] <-- Y
 ... Success!


By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.


Remove test database and access to it? [Y/n] <-- Y
 - Dropping test database...
... Success!
- Removing privileges on test database...
... Success!


Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.


Reload privilege tables now? [Y/n] <-- Y
 ... Success!


Cleaning up...


All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.


Thanks for using MySQL!


server1:~ #


Now your MySQL setup should be secured.


Lighttpd is available as an OpenSUSE package, therefore we can install it like this:

yast2 -i lighttpd


Then we create the system startup links for Lighttpd (so that Lighttpd starts automatically whenever the system boots) and start it:

chkconfig -f --add lighttpd
/etc/init.d/lighttpd start


Now direct your browser to http://192.168.0.100, and you should see that Lighttpd delivers a page (well, it's a 404 page because there's no index file in Lighttpd's document root, but at least this means that Lighttpd is working ok):


Lighttpd's default document root is /srv/www/htdocs on OpenSUSE, and the configuration file is /etc/lighttpd/lighttpd.conf.

We can make PHP5 work in Lighttpd through FastCGI. There's a FastCGI package for PHP5 available on OpenSUSE, php5-fastcgi, which we install like this:

yast2 -i php5-fastcgi

Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.4 - Page 2

View the original article here

Jumat, 29 April 2011

Installing Cherokee With PHP5 And MySQL Support On Debian Squeeze

Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on a Debian Squeeze server with PHP5 support (through FastCGI) and MySQL support.


I do not issue any guarantee that this will work for you!


In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.


First we install MySQL 5 like this:

apt-get install mysql-server mysql-client


You will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost as well as root@server1.example.com, so we don't have to specify a MySQL root password manually later on:


New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword


Cherokee is available as a Debian package, therefore we can install it like this:

apt-get install cherokee


Now direct your browser to http://192.168.0.100, and you should see the Cherokee placeholder page:


 Click to enlarge

Cherokee can be configured through a web-based control panel which we can start as follows:

cherokee-admin -b


(By default cherokee-admin binds only to 127.0.0.1 (localhost), which means you can only connect to it from the same system. With the -b parameter you can specify the network address to listen to. If no IP is provided, it will bind to all interfaces.)


Output should be similar to this one:

root@server1:~# cherokee-admin -b


Login:
User:              admin
One-time Password: 1Kkcc58atG8DNIM7


Web Interface:
URL:               http://localhost:9090/


[11/04/2011 12:14:18.622] (error) rrd_tools.c:120 - Could not find the rrdtool binary.
Cherokee Web Server 1.0.8 (Jan 11 2011): Listening on port ALL:9090, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, single thread


You need the username and password to log into the web interface which can be found on http://192.168.0.100:9090/:


This is how the web interface looks:  

To stop cherokee-admin, type CTRL+C on the shell.


We can make PHP5 work in Cherokee through FastCGI. Fortunately, Debian provides a FastCGI-enabled PHP5 package which we install like this:

apt-get install php5-cgi


We must modify /etc/php5/cgi/php.ini and uncomment the line cgi.fix_pathinfo=1:

vi /etc/php5/cgi/php.ini

[...]; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting; of zero causes PHP to behave as before. Default is 1. You should fix your scripts; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.; http://php.net/cgi.fix-pathinfocgi.fix_pathinfo=1[...]

Then we restart Cherokee:

/etc/init.d/cherokee restart

Installing Cherokee With PHP5 And MySQL Support On Debian Squeeze - Page 2

View the original article here