Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Install Cherokee with Php5 and Mysql Supported in Fedora 14

Understand Install Cherokee with Php5 and Mysql Supported in Fedora 14 with clear background, essential details, and practical takeaways.

Table of Contents

This updated guide examines Install Cherokee with Php5 and Mysql Supported in Fedora 14 and organizes the essential facts, background, and practical takeaways in clear American English.

In this test we use hostname server1.example.com with IP address 192.168.0.100. Depending on different systems, you need to adjust these parameters accordingly.

Installing MySQL 5:

First, use the following command to install MySQL 5:

yum install mysql mysql-server

Create boot path for MySQL (through which MySQL automatically activates the same system) and start MySQL server:

chkconfig --levels 235 mysqld on /etc/init.d/mysqld start

Then use the command:

mysql_secure_installation

To initiate a password for the root account (otherwise, anyone can access the MySQL database):

[root @ 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 hàng l?nh ?? ??ng nh?p vào MySQL ?? b?o v? nó, s? c?n ph?i hi?n th?i password for the root user. If you've just installed MySQL, và b?n không ??t ???c m?t kh?u root này, m?t kh?u s? ???c tr?ng, so you should just press enter here.

Enter current password cho root (nh?p cho không): OK, ?ã successfully dùng m?t kh?u, chuy?n ??i khi.

Thi?t l?p m?t kh?u g?c c?n thi?t mà không th? ??ng nh?p vào MySQL root user without the proper authoring.

Set root password?[Y / n] New password: Re-enter new password: Password updated successfully! Reloading privilege tables. . Success!

Vì m?c ??nh, m?t cài ??t MySQL có m?t ng??i dùng không rõ, Allow anyone ?? ??ng nh?p vào MySQL không có th? có m?t ng??i dùng ??ng nh?p cho cho more. ?ây ???c s? d?ng ch? ?? ki?m tra, và ?? t?o cài ??t go a bit smoother. B?n nên g? b? chúng tr??c khi chuy?n vào production environment.

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

Th??ng, root nên ch? ???c phép phép k?t n?i t? 'localhost'. This ensures that someone cannot guess at the root password from the network.

Disallow root login command?[Y / n]. Success!

By default, MySQL comes with a database ???c xác ??nh 'th?' mà có th? access. ?ây là ch? ??nh ch? ch? cho th? th?, và nên ???c g? b? tr??c khi chuy?n vào m?t Production environment.

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

Reloading the privilege tables will ensure that all changes do so far s? x? lý ngay ngay.

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

Cleaning up.

All done! If you've completed all steps theo ?ây, b?n MySQL cài ??t nên ???c b?o v?.

Thanks for dùng MySQL!

[root @ server1 ~] #

Install Cherokee:

Today, Cherokee is available in the Fedora installation packages, so just use the command:

yum install cherokee

Create a boot path for Cherokee, and activate this service as well:

chkconfig --levels 235 cherokee on /etc/init.d/cherokee start

Then, open the browser and type in the address http://192.168.0.100, you will see the startup page as shown below:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 1

Cherokee's control mechanism is done via the browser, we can start as follows:

cherokee-admin -b

By default, cherokee-admin is assigned with 127.0.0.1 (localhost), which means that you can only connect from one system. With the -b parameter, you can explicitly specify the address of the specific network system to connect to. The results returned from the system will look like this:

[root @ server1 ~] # cherokee-admin -b

Login: User: admin One-time Password: gunCkIxdT8nQ6JqW

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

[11/10/2010 14: 50: 26,964] (error) rrd_tools.c: 120 - Could not find the rrdtool binary. Cherokee Web Server 1.0.4 (June 28, 2010): 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 to log in with the account at the following address http://192.168.0.100:9090/:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 2

The main interface of the control panel is as follows:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 3

If you want to deactivate cherokee-admin , press Ctrl + C.

Installing PHP5:

We can do PHP5 works in Cherokee via FastCGI, so need to install additional php-cli support package:

yum install php-cli

PHP5 configuration: First, we need to edit the /etc/php.ini file and uncomment the cgi.fix_pathinfo = 1 line as follows:

vi /etc/php.ini

[.] ; cgi.fix_pathinfo provides * real * PATH_INFO / PATH_TRANSLATED support for CGI. PHP's ; tr??c behavior cho ??t PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting ; này ?? 1 s? t?o PHP CGI ?? s?a ??i các ???ng d?n c?a nó ?? áp d?ng ??n SPEC. A setting ; c?a không t?o PHP ?? behave nh? tr??c. Default là 1. B?n c?n ph?i s?a b?n script ; ?? s? d?ng SCRIPT_FILENAME rather than PATH_TRANSLATED. ; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo cgi.fix_pathinfo = 1 [.]

Then restart Cherokee:

/etc/init.d/cherokee restart


Activate PHP5 in Cherokee: By default, PHP is not enabled in Cherokee. To fix this, we need to access Cherokee's main control mechanism:

cherokee-admin -b

Login via http://192.168.0.100:9090/ as above. Then, select vServers , select vhost default and go to Behavior tab, click Rule Management button :

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 4

In the left-hand window, you will see all the current rules of the system:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 5

Click on the plus icon next to Behavior to add a new rule, a new popup window will appear, select the Languages in the left column, choose PHP and click Add :

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 6

Next, click Create in the Configuration Assistant window :

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 7

Here, you will see the new rule for PHP in the left column, with NON FINAL status. Users can change the default PHP settings if desired, besides the FastCGI configuration item located in the Handler tab:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 8

To complete this process, click on the box labeled NON FINAL:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 9

The system will change to FINAL :

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 10


In the upper right corner of the screen, you click the Save button to save the change:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 11

And click Graceful restart at the next window:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 12

Now, PHP will be listed on Behavior tab (check in the Final column):

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 13

Then press CTRL + C on the command line to stop the control operations.

Check PHP 5:

The default root document folder of the website is stored at / var / www / cherokee. Next, we will create a small PHP file ( info.php ) right in that directory and call it in a browser. This file will display more detailed information about the PHP installation process:

vi /var/www/cherokee/info.php

And continue calling that file using the browser ( http://192.168.0.100/info.php ):

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 14

As you can see, PHP5 already works, and through FastCGI , is indicated at the Server API line. If you continue to scroll down to the bottom, you will see all the modules are enabled in PHP5, and MySQL is not listed here, meaning MySQL is not fully supported in PHP5.

To fix this problem, we can install the php-mysql support package by searching through the following PHP5 modules:

yum search php

Select one component and proceed with the installation:

yum install php-mysql php-gd php-ldap php-odbc php-pear php-php-xmlrpc xml

Then restart the entire Cherokee system:

/etc/init.d/cherokee restart

Reload the file http://192.168.0.100/info.php in the browser, and check the modules in the list:

Install Cherokee with Php5 and Mysql Supported in Fedora 14 — contextual image 15

When you have completed the above steps without many problems, it means that we have finished installing Cherokee web server system with PHP and MySQL on the Fedora 14 platform.

Some references: Cherokee, PHP, MySQL and Fedora.

FAQ

What is Install Cherokee with Php5 and Mysql Supported in Fedora 14 about?

It provides a structured overview of instructions, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.