In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build Fedora LAMP in Fedora, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
LAMP in Fedora LAMP construction is the abbreviation of Linux+Apache+MySQL+PHP, Linux is an open system, Apache is the most general network server, MySQL is an open source relational database with additional tools based on network management, in which "P" can represent PHP, Perl or Python language in different situations, almost a combination of web servers. However, it is the developers, not the general desktop users, who are interested in all of these programs.
Server Fedora LAMP is very easy to use, here are some considerations:
1. When installing Fedora 5, select a custom installation to select all components related to Apache, MySQL, and PHP
The main configuration file for 2.Apache is / etc/httpd/conf/httpd.conf
The default User and Group are both apache
The default web directory is / var/www/html;. This path can be set in httpd.conf.
Start the Apache server / usr/sbin/apachectl start
To boot Apache, you need to put / usr/sbin/apachectl start in / etc/rc.d/rc.local
3.Fedora 's MySQL database directory is / var/lib/mysql, not the previous / usr/local/mysql
A mysql.sock file is needed when using various instruction functions of MySQL, but MySQL defaults to this file under / tmp, so you need to deceive MySQL with a simple action: # ln-s / var/lib/mysql/mysql.sock / tmp/
Start MySQL: / etc/rc.d/init.d/mysqld start
To boot MySQL, you need to add the following line to the * line of the / etc/rc.d/rc.local file:
Cd / usr;/usr/bin/mysqld_safe &
Establish the administrator password: / usr/bin/mysqladmin-u root password' your.password'
Log in to MySQL: / usr/bin/mysql-u root-p as an administrator
4. The configuration file of PHP is in / etc/php.d/.
To configure the httpd.conf file for Apache, add the following two lines:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
Restart Apache:
/ usr/sbin/apachectl stop
/ usr/sbin/apachectl start
Test whether PHP is working properly: enter / var/www/html/, to create a new file, test.php, and add the code:
Open any browser and enter the address http://localhost/test.php. If you see a web page with php information, it means that the PHP configuration is successful, otherwise it is not successful.
These are all the contents of the article "how to build Fedora LAMP in Fedora". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.