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 > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you what are the problems with the configuration of apache2+php5+mysql under Ubuntu6.0.6, which are concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
In the past, it was super easy to configure apache2+php5+ysql under ubuntu, just use Xinlide all at once.
Today, I want to change a new version, and when the configuration is ready, a download window appears as soon as I open the PHP file, but the HTML file can be executed normally, and the experience under the WINDOWS platform tells me that it is definitely not configured well for this guy who does not know the PHP file, habitual thinking, open / etc/apache2/apache2.conf from beginning to end to check N times, no problem, and open / etc/apache2/httpd.conf also can not check the problem, forget it, big deal reinstall it!
So, uninstall apahce2,php5,mysql,libapache2-mod-php5 and reinstall, and the problem remains.
If you don't believe it, you can start ubuntu again and install it again.
Simply delete everything that contains apahce php mysql, delete everything in the cache, delete all the configuration files, and then install it after a long process of waiting for download, , write a phpinfo.php and put it under / var/www/, open it with a browser, shit, another pop-up download window, sweat ah!
Baidu, Google, Baidu and Google.
N minutes later... .
Check / etc/apache2/mods-available/ to see if there are php5.conf and php5.load, and find that there are.
Then go to / etc/apache2/mods-enabled/ to see if there is any soft connection for them, and find out, ha, that may be the problem.
Execute:
Sudo ln-s / etc/apache2/mods-availale/php5.conf / etc/apahce2/mods-enabled/php5.conf
Sudo ln-s / etc/apache2/mods-availale/php5.load / etc/apahce2/mods-enabled/php5.load
Restart apache2 sudo / etc/init.d/apache2 restart
Let's see if it works, Khan. I can't do it again. It's really not broken.
The computer was restarted for N times and the APACHE2+PHP5+MYSQL was reinstalled for N times.
I'm so angry. I just need to reinstall the UBUNTU.
I inadvertently remember that the WEB user on our server is WWW, but I only have ROOT.
Check the permission of / var/www, but it's not root, ha, modify it right away, sudo chown root / var/www
Look again, still no, learn a lesson, look at phpinfo.php, oh, not root
Change it right away, sudo chown / var/www/phpinfo.php
Try it, succeed!
How exciting it is! So that's what happened!
Summary: I don't know why my computer doesn't have a software connection between php5.conf and php5.load.
If you encounter this problem, check these two files.
Also, confirm the permissions of the WEB directory and files. Of course, I use the ROOT account directly for development and debugging.
In fact, you should use a low permission to execute the PHP file, for example, I like to use www, these are later!
What are the above questions about the configuration of apache2+php5+mysql under Ubuntu6.0.6? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.