Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Php and MySQL command add to the environment variable method in Linux system     - Ubuntu install image browser and manager Phototonic 1.6.17 (Linux)

- Linux SU command security Suggestions (Linux)

- Use UDEV SCSI Rules configured ASM on Oracle Linux 5 and 6 (Database)

- Manager Docker browser (Server)

- Raspberry Pi 2 to install the latest version of the FPC and Lazarus 1.5 (Linux)

- ELKstack log analysis platform (Server)

- To learn from scratch OpenWrt perfect tutorial (Linux)

- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)

- Linux System Getting Started Learning: Disable Ubuntu Apport internal error reporting procedures (Linux)

- PXE installation of Linux servers (Server)

- ORA-00845: MEMORY_TARGET not supported on this system Problem (Database)

- VMware installed Linux system and JDK deployment (Linux)

- Install the open source database PostgreSQL 9.4 and phpMyAdmin on Ubuntu (Database)

- Zabbix monitoring Oracle Database use Orabbix plug (Enhanced Edition) (Database)

- According to the national position on how to block traffic in Linux (Server)

- Linux terminal interface font color settings (Linux)

- Acquaintance C ++: the most simple C ++ program (Programming)

- After you change the GRUB boot disk partition repair (Linux)

- Linux disk partition batch format mount script (Linux)

- Postgres-X2 deployment steps (Database)

  Php and MySQL command add to the environment variable method in Linux system
  Add Date : 2017-04-13      
  After installing php and MySQL on Linux CentOS system for ease of use, you need to php and mysql command added to the system command, if not previously added to the environment variables, perform "php -v" command to view the current php version information from time to time , it prompts errors command does not exist, here we explain in detail under the linux php and mysql is added to the environment variable approach (assuming php and mysql are installed in / usr / local / webserver / php / and / usr / local / webserver / mysql / in).

Method one: Run the command directly export PATH = $ PATH: / usr / local / webserver / php / bin and export PATH = $ PATH: / usr / local / webserver / mysql / bin
Using this method, valid only for the current session, that is to say whenever the log out or log off your system later, PATH setting will fail, just a temporary effect.

Method two: Perform vi ~ / .bash_profile PATH line to modify the file in the / usr / local / webserver / php / bin and / usr / local / webserver / mysql / bin was added to the PATH = $ PATH: $ HOME / bin after row
This method is effective only for the currently logged on user

Method three: Modify / etc / profile file to make it permanent entry into force, and applies to all users of the system at the end of the file add the following two lines of code
PATH = $ PATH: / usr / local / webserver / php / bin: / usr / local / webserver / mysql / bin
export PATH

Finally: Run the source / etc / profile or execute command ./profile point to make changes to take effect, can be viewed by executing the echo $ PATH command is added successfully.
- Memcache explain in detail (Server)
- Common Linux System Troubleshooting (Linux)
- grep regular expression (Linux)
- Oracle table space usage monitoring (Database)
- To explore the Android ListView caching mechanism again (Programming)
- Ubuntu user use PPA to install Uget 2.0.5 (Linux)
- Linux, how to filter, split, and merge pcap file (Linux)
- After Pydev installation, Eclipse does not display solutions (Linux)
- Linux system commands to view hardware information (Linux)
- CentOS 6.4 under PXE + Kickstart unattended operating system installation (Programming)
- Getting Started with Linux system to learn: How to compress JPEG images on the command line (Linux)
- xCAT line installation on CentOS 6.X (Linux)
- CentOS / RedHat system partition essential requirements and partition scheme (Linux)
- Linux crontab (Linux)
- How to add a new hard disk without restarting the CentOS 7 / RHEL 7 virtual machine (Linux)
- How to ensure that the Internet will not be attacked (Linux)
- A brief description of Java 8 new features introduced syntax (Programming)
- Android Get App version number and version name (Programming)
- Linux unpack the tar file to a different directory (Linux)
- HTTPS and SSH and use the difference between the way: Git User's Manual (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.