Always error prompt: apache is being set (1.3.34-2Ubuntu0. 1 )... dpkg: An error occurred when processing apache (-- configure): sub-process · post-installationscript · error code returned · 10: An error occurred during processing: apacheE: sub-process/usr/bin/dpkgreturnedanerrorcode (1) Baidu, there is no clue, there is always an error prompt:
Setting apache (1.3.34-2Ubuntu0. 1 )...
Dpkg: An error occurred while processing apache (-- configure:
Sub-process · post-installation script · error code returned · 10
An error occurred during processing:
Apache
E: Sub-process/usr/bin/dpkg returned an error code (1)
Baidu has a while, and there is no clue. I can see someone who says it is okay to install it again.
In addition to the dependency library problems that are always encountered in the past two days (it always prompts that this library requires the dependency of that library, and that library is not marked, so this library cannot be installed ), therefore, the lowest score of 10 points is deducted.
No way, I had to go to the package manager to check and find that there is an old version of apache in it, which is co-existent with the new apache2. Therefore, it is simply removed and then installed apache2.
Then sudo/etc/init. d/apache2 start
* Starting apache 2.0 web server...
Apache2: cocould not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Httpd (pid 11360) already running
[OK]
The address is 127.0.1.1, which is strange.
Gedit/etc/hosts, 127.0.0.1 and 127.0.1.1 are all registered. Once again, add your username to the localhost corresponding to 127.0.0.1.
Sudo/etc/init. d/apache2 restart, and input 127.0.0.1, http: // localhost/, and succ in ff.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.