In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Apache supports php
Php is the best server language. Apache has strong support for php.
1. Check whether php is installed. If you don't have any information, you have to install php yourself.
[root@localhost ~] # rpm-qa | grep php
2. Install php and enter the command "yum install-y php" in the terminal.
[root@localhost ~] # yum install-y php
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Dependency Installed:
Php-cli.i686 0Plus 5.3.3-26.el6 php-common.i686 0purl 5.3.3-26.el6
Complete!
[root@localhost ~] #
3. Check again to see if it is installed. The following message proves that the installation is successful.
[root@localhost ~] # rpm-qa | grep php
Php-cli-5.3.3-26.el6.i686
Php-5.3.3-26.el6.i686
Php-common-5.3.3-26.el6.i686
[root@localhost ~] #
4. Restart the Apache service
[root@localhost ~] # service httpd restart
Stop httpd: [OK]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[OK]
[root@localhost ~] #
5. Test php. Create a test.php file in the / var/www/html/ directory. Then type "127.0.0.1/test.php" in the browser
[root@localhost ~] # cd / var/www/html/
[root@localhost html] # ls
[root@localhost html] # touch test.php
[root@localhost html] # gedit test.php
You can see the following results in the browser
6. Install gd library and support php graphic CAPTCHA. Enter the command "yum install-y php-gd" at the terminal
[root@localhost ~] # yum install-y php-gd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
=
Package Arch Version Repository Size
=
Installing:
Php-gd i686 5.3.3-26.el6 base 105k
Installing for dependencies:
LibXpm i686 3.5.10-2.el6 base 50k
Dependency Installed:
LibXpm.i686 0RO 3.5.10-2.el6
Complete!
[root@localhost ~] # rpm-qa | grep php-gd
Php-gd-5.3.3-26.el6.i686
[root@localhost ~] #
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk
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
[oracle@tdsogg tmp] $crontab-lump 5 * sh / tmp/delete.sh*/5 * / tmp/delete.sh5 * sh /
© 2024 shulou.com SLNews company. All rights reserved.