Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Php and MySQL command add to the environment variable method in Linux system     - Iptables Instructions (Linux)

- Bubble Sort Algorithms (Programming)

- To control based on IP address routing policy under Linux (Linux)

- Linux screen commonly commands (Linux)

- Ubuntu 14.04 LTS to compile the source code Android4.4.2 (Linux)

- Ubuntu 14.04 kernel after the restart boot black screen to solve (Linux)

- After Ubuntu Password Forgot your way back (Linux)

- Oracle archive log size than the size of the online journal of the much smaller (Database)

- Bash common several configuration files (Linux)

- Recent Consolidation Using Linux security module (Linux)

- CentOS7 compile and install Tengine + PHP + MariaDB notes (Server)

- Tip: Use Cryptsetup U disk encryption (Linux)

- Linux Getting Started tutorial: 3D effects and beautify your desktop (Linux)

- Install Firefox 28 on Ubuntu, Linux Mint (Linux)

- Solve ORA-01012: not logged on (Database)

- Linux using DenyHosts prevents ssh cracks (Linux)

- How to Install Cantata MPD 1.3.3 for Ubuntu and Derived Version Users (Linux)

- Linux software firewall ACL match point optimization (Linux)

- RCU lock in the evolution of the Linux kernel (Linux)

- How to install Kernel 4.0.2 on CentOS 7 (Linux)

  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.
- Bootstrap 3.3.5 release download, Web front-end UI framework (Linux)
- PL / SQL how to make the program every few seconds to insert a data (Database)
- Red-black tree in C ++ (Programming)
- Oracle Character Set Summary (Database)
- Shell Scripting early experience (Programming)
- Android memory optimization of the disk cache (Linux)
- Oracle 11g modify MEMORY_TARGET (Database)
- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)
- Intrusion prevention network server security maintenance tips (Linux)
- Security: Unix operating system intrusion tracking Strikes Back (Linux)
- Linux installation is larger than 2TB (UEFI interface) hard disk solution (Linux)
- cp: omitting directory error solutions under Linux (Linux)
- Security implementation of disk data protection under Linux (Linux)
- LAMP environment to build Apache, MySQL, PHP under Ubuntu (Server)
- About Git (Linux)
- iOS used in the development --UITabBarController tag controller (Programming)
- Linux gprof oprofiling and performance testing tools (Linux)
- Linux LVM Logical Volume Management to resize partitions (Linux)
- Emacs install clojure development environment (Linux)
- Common data structures and functions of Linux process scheduling (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.