-
If you use apt-get to install, the PHP version is configured in the software center, so you can't decide which version to install. If you want to install the specified version, you have to go to the official website to ** the source code, and then compile and install it yourself.
-
Change the source. sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
co-installable php versions: php , php and batteries included.
This source supports php, three versions.
for php on ubuntu use: ppa:ondrej/php5-oldstable
Yes. Then install which version you have.
sudo apt-get install
v is the version number you want to install.
-
You need to take a look at what version of your ubuntu is first, take ubuntu as an example. Other versions are similar.
1.Update the list of sources.
Open"Terminal window", enter"sudo apt-get update"--> Enter-->"Enter the password of the root user"--> enter, and that's it. If you don't run the command, install PHP directly, and it will appear"There are several packages that can't**, you can run apt-get update---", resulting in the inability to install.
2.Install PHP
Open"Terminal window", enter"sudo apt-get install php5"--> Enter--> input"y"--> Enter--> installation is complete.
3.Let Apache support PHP
Open"Terminal window", enter"sudo apt-get install libapache2-mod-php5"--> Enter--> installation is complete.
4.Install the PHP5-GD module.
Open"Terminal window", enter"sudo apt-get install php5-gd"--> Enter--> installation is complete.
5.Use gedit in"/var/www"to create a file.
Open"Terminal window", enter >> press enter --> enter in the device""--> Save, the file is created successfully.
6.Test whether Apache can parse PHP web pages.
Enter in Firefox""--> PHP version information page appears, indicating that the PHP installation and configuration are successful.
-
Judging from the screenshot, the Apache server was successfully set up, and judging from the error message, it is a common 404 error.
HTTP 404 error means that the web page to which the link points does not exist, for example, the web page file is renamed or relocated, the import link is misspelled, etc., resulting in the original URL being inaccessible. When the web server receives a similar request, it returns a 404 status code telling the browser that the requested resource does not exist.
Combined with the error screenshots, judging by my experience:
Please check the setting of the root directory in Apache to see if the phpmyadmin directory is in the root directory.
If you have set a login password on the router and use the router to automatically dial up, you can go online directly without setting it up. That's what I did. >>>More
One. Open Software & Updates.
Browse to the Updates tab — check Early release updates — and select Apply to any new version. >>>More
Enable Driver:
To enable 3D effects in Ubuntu LTS (Hardy Heron), you must first install the driver of your graphics card. I'm a newbie and don't have another ** driver installation, because ubuntu comes with a large number of drivers, and the graphics card driver installation is carried out through the "Restricted Driver Manager", which greatly reduces the difficulty of installation. Therefore, the installed driver is also the restricted driver that comes with ubuntu. >>>More
The sharing of files under the Ubuntu system is actually similar to the sharing under Windows, but you need to install some application software when sharing for the first time. >>>More
System Management Restricted Driver Manager, make sure that your graphics card is not available. >>>More