Install multiple versions of PHP, mysql, apache graphic tutorials under WampServer_php skills

Today, when I was debugging a PHP program, some functions used in the program could not be used in the lower version, so I could only use a higher version of PHP. As a web developer, it is sometimes necessary to install different versions of php, apache and mysql on the machine. The following is after my successful configuration The source of this article is gaodai#ma#com *! #%^code $net!Gaodaima code Screenshot Different versions of PHP: Different versions of Apache: Here I take the installation of php5.3.10 as an example to illustrate Operation method: Left click on the tray icon -> PHP -> Version -> Select Get more… -> After opening the webpage, you can see the following screenshot: Then, click on PHP (red frame part) I want to install PHP5. After the installation is complete, you can find an additional php5.3.10 directory in the wamp installation directory\bin\php\directory. Restart wamp, you can switch between different php versions in left-click on the tray icon -> PHP -> Version. Apache and Mysql are installed in the same way, so there are no detailed screenshots here.

zabbixphp source code installation and configuration, build zabbix (yum install zabbix, ngixn, mysql, source code install php)

yum install zabbix,ngixn,mysql, source code installation php, does not have any special effect, but zabbix source code installation failed. . . 1. Install zabbix’s repo 2.yum installation 3.yum install mariadb mariadb-server 4. Create library zabbix, Empower zabbix users 5. Import the library of the zabbix file into mysql 6. Modify the zabbix_server.conf configuration file 7. Start booting self-starting zabbix_server.service 8.yum install nginx 9. Modify nginx.conf configuration file , check with nginx -t, if the code is not Question , check whether port 80 is occupied 10. Start booting self-starting nginx.service 11. Give /etc/zabbix/web owner and group nginx 11.. Check zabbix port ,php-fpm service 12. Page access :http://IP/index.php 13. Page installation zabbix 14. There are a few points worth noting above !!! == ==== recommend mysql5.7 version , do not use mysql8.0, nothing else , I can’t control it with my level ======Before the installation of the php source code, it was also written , I won’t repeat it here, Just be careful , ====== Both compilation and installation and yum installation have been done. Generally, there will be two configuration files , Need to see which one the program is running 15. Installation code rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7 /x86_64/zabbix-release-3.2-1.el7.noarch.rpm yum -y…

freebsd9.1 source code installation apache, mysql, php environment (pro-side pass)

Novices are not recommended to install with source code, please be careful 1. Install 9.1 system 2. Install pre-installed software through sysinstall =================================== ============================== 3. Install linux_libio compatibility package rc.conf added A sentence of linux_enable=true should be linux_enable=”yes” ================================== ============================== 4. Install the ssh daemon through ports (ports/security/sshgard) 5. Install encryption-related software through ports (ports/security/mcrypt) 6. Install mysql 7. Install apr (/configure , make install clean) 8. Install apr-util1.5.1(/configure –with-apr=/usr/local/apr) 9. Install apache 10. Install php 11. Install fastcgi 12. Install xcache 13. Install memcache 15. Install proftpd freebsdSupport Chinese.txt Set the global locale, refer to the following method : vi /etc/login.conf Finally add this: chinese:chinese users accounts:\ :charset= utf-8:\ :lang=zh_cn.utf-8:\ :tc=default: Then modify your passwd file and use vipw Command user:password:1111:11:language:0:0:user name:/home/user:/bin/sh write Chinese in the language location, associate with you the locale. export lc_ctype=”zh_cn.utf-8″ export lc_all=”zh_cn.utf-8″ export lang=”zh_cn.utf-8 “ Need to update the database, use cap_mkdb /etc/login.conf Log out and log in again, use the command locale to see that your locale has been modified phpRequires environment.txt 1.curl,gd,mbstring,jpeg,png,php_memcache,xcache,mysql,apache The installation directory needs to be specified during installation robin_Preinstalled package.txt Install through sysinstall (CD) 1.archives: libzip;zip;unzip 2.databases: sqlite 3.converters: libiconv (php for encoding conversion) 4.devel: pre-8.20l(apache);perl-5.12.4.3 5.emulators: linux_base compatibility…

hot3.png

Configure nginx, mysql, phpfpm to boot

2019 unicorn companies pay a lot of money to recruit Python engineers>>> bin/sh^M: bad interpreter: No such file or directory Solve http://www.2cto.com/os/201309/246535.html Solve “service nginx does not support chkconfig” problem? http://linux.chinaunix.net/techdoc/develop/2008/04/24/995704.shtml nginx startup script http:// www.2cto.com/os/201210/164153.html Don’t forget to :chmod a+x /etc/init.d/nginx Write a boot script : I, nginx boot 1, in / Create scripts in etc/init.d/ directory vi /etc/init.d/nginx 2. Change script permissions chmod 775 /etc/ init.d/nginx 3. Write script content #!/bin/bash# nginx Startup script for the Nginx HTTP Server# it is v.0.0.2 version.# chkconfig: – 85 15# description: Nginx is a high-performance web and proxy server.# It has a lot of features, but it’s not for everyone.# processname: nginx# pidfile: /var/run/nginx.pid# config: /usr/local/nginx/conf/nginx.confnginxd=/usr/local/webserver/nginx/sbin/nginxnginx_config=/usr/local/webserver/nginx/conf/nginx.confnginx_pid=/usr/local/ webserver/nginx/logs/nginx.pidRETVAL=0prog=”nginx”# Source function library.. /etc/rc.d/init.d/ functions# Source networking configuration.. /etc/sysconfig/network# Check that networking is up.[ ${NETWORKING} = “no” ] && exit 0 >[ -x $nginxd ] || exit 0# Start nginx daemons functions.start() {if [ -e $nginx_pid ];thenecho “nginx already running….”exit 1 fiecho -n $”Starting $prog: “daemon $nginxd -c ${nginx_config}RETVAL=$?echo[ $RETVAL = 0 ] && touch /var/lock/subsys/nginxreturn $RETVAL }# Stop nginx daemons functions.stop() {echo -n $”Stopping $prog: “killproc $nginxdRETVAL=$?echo[ $RETVAL = 0 ] && rm -f /var/lock/subsys/nginx /usr/local/webserver/nginx/logs/nginx.pid}reload() {echo -n $”Reloading $prog: “#kill -HUP `…

Users – How do I give the developers group access to apache, MySQL, php and webroot?

We have 3 web designers who are currently logged into our server via root to configure apache and set up the website. I have very basic Linux knowledge (I’m a web designer), and created the user and group via Webmin – but how do I give the group access: > Apache(/etc/apache2/)> MySQL> PHP> SSH( rsync etc.)> webroot They need to be able to transfer files via rsync, upload and dump databases and set up virtual hosts etc. If it makes a difference, Virtualmin does too Installed on this server – it’s a Debain 7 server. I’m obviously using the wrong search terms as I can’t find simple basic info, so anyone pointing me in the right direction would be great Thanks. Solution: I would never use webmin, virtualmin or any so-called “control panel” for any serious tasks. You Most tasks of enumeration don’t require direct access to the hosting host: > Content under the webroot should be managed using any of the version control managers, my choice being git. Setting up a hub as described here and live repositories.>Set up a chrooted vsftp server to provide access to direct uploads to areas outside of the repository.>You can use hub-live mode…

Manjaro installs Apache, Mysql, PHP environment

1. Install apache sudo pacman -S apache Apache configuration file location sudo vim /etc/httpd/conf/httpd.conf Set startup and restart Apache service sudo systemctl enable httpdsudo systemctl restart httpd 2. Installation php sudo pacman -S php php-apache Modify apache configuration sudo nano /etc/httpd/conf/httpd.conf Comment out LoadModule mpm_event_module modules/mod_mpm_event.so Remove the comment on the next line LoadModule mpm_prefork_module modules/mod_mpm_prefork.so Add at the end of the configuration file LoadModule php7_module modules/libphp7.so AddHandler php7-script php Include conf/extra/php7_module.conf Restart apache sudo systemctl restart httpd 3. Install Mysql sudo pacman -S mysql Initialize the MariaDB data directory , without this step mysql cannot be used mysqld –initialize –user=mysql –basedir =/usr –datadir=/var/lib/mysql [Failed to transfer the external link image, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-wa0iGbxB-1605858244247)(https://s1.ax1x.com/ 2020/09/25/0CoYlQ.png)] You can see that the default password is hsWiMWbgy4>j Start mysql service first : sudo systemctl start mysqld Then log in to : mysql -u root -p Change root temporary password : ALTER user 'root& #39;@'localhost' IDENTIFIED BY 'new_password&#39 ;; Then you can use various commands.

LAMP one-click installation package automatically compiles and installs Apache, MySQL, and PHP under CentOS5/6

Applicable Environment: System Support:CentOS-5 (32bit/64bit) 、CentOS-6 (32bit/64bit) Memory requirements :≥256M What is installed: 1, Apache 2.2.21 2, MySQL 5.1.59 3, PHP 5.2.17 4, ZendOptimizer 3.3 .9 5, xcache-1.3.2 6, phpmyadmin 3.4.7 7, vsftpd 2.3.4 ( optional &#xff09 ; What function is realized 1. One-click configuration of LAMP classic environment 2 , Automatically delete apache logs , Only keep within seven days ( The specific time can be set in /root/sh/apache-log-handle.sh ) 3, script management virtual Host, vsftpd ( add , delete and view ) 4, phpmyadmin visual management mysql database 5, automatic configuration firewall iptables How to install: 1. Download the installation package Download address :http://centos.googlecode.com/files/lamp0.5.tar.gz Full version address (recommended for domestic use):http://centos.googlecode.com/files/lamp0.5-full.tar.gz 2. Start the installationTake the download version of the installation package as an example: tar xzvf lamp0.5.tar.gz cd lamp0.5 ./lamp0 .5.sh Install others 1. Execute the script vsftpd.sh to install vsftpd. Use Tips: LAMP Script Use lamp vhost create(delete,list):create(delete, List ) virtual hosts. lamp ftp create(delete, list) : create ( delete , list ) vsftpd users. lamp uninstall:Uninstall lamp with one click(Back up your data before uninstalling!). Program Directory mysql directory: /usr/local/mysql mysql data directory:/usr/local/mysql/var php directory: /usr /local/php apache directory : /usr/local/apache Web site default root…

Install GentooAMD64Linux, Apache, Mysql, PHP to configure Mediawiki Notes

I have a desktop computer at hand, and I want to install and configure a Mediawiki for work, so let’s get started. Gentoo AMD64 Linux installation Step 1: Preparation before installation 1. Make Gentoo bootable U disk 1. Download the admincd-amd64-*.iso fileThe following are the download addresses of several mirror sites:Netease Open Source Mirror Site:http://mirrors.163.com/gentoo/releases/amd64/autobuilds/current-admincd-amd64/Sohu.com Open Source Mirror Site:http:// mirrors.sohu.com/gentoo/releases/amd64/autobuilds/current-admincd-amd64/Aliyun Open Source Mirror Site:http://mirrors.aliyun.com/gentoo/releases/amd64/ autobuilds/current-admincd-amd64/2. Use Universal USB Installer to make Getnoo bootable U diskNote: Before making, modify the admincd-amd64-*.iso file name, in Add “livedvd” before the file name Step 2: Use Gentoo to start the U disk to start the computer, configure the network, and start the sshd service 2. Start the computer 1. Press F9 to start the computer and select the U disk to start.2. The cursor prompts “gentoo:” input gentoo 3. “livecd ~ #” appears successfully started 3. Configure the network 1. Determine whether the network card is working normally. If DHCP is configured in the network environment, use the command ifconfig -a command to check whether the machine is assigned to IP # ifconfig -a enp0s25: flags=4163 mtu 1500 inet 192.168.7.202 netmask 255.255 .255.0 broadcast 192.168.7.255 inet6 fe80::250:baff:fece:70c prefixlen 64 scopeid 0x20 ether 00:50:ba:ce:07:0c txqueuelen…

May I ask how to deal with the environment built by docker (php, mysql, nginx), directory permissions and user permissions of a mirror image?

Host: ubuntu. Developer (that is, myself) user foobar, id 1000 1000 Created php-fpm with docker, nginx, mysql application, using docker-compose for management. Mapping local volumes to containers. Now the environment is running fine, but I have problems with file operations in php. For example, if you download a remote picture to the server, you can create a file, but there will always be only one 808-byte file created, and then it will be gone. I don’t know what the reason is. Thank you. ps, the local environment is fine. It’s just that I have this problem after using docker. It is estimated that it is the permission of the container volume and other issues, but it is possible Creation should not be unable to read and write. I really don’t know the reason.

Connection problem between DockerCompose and PHP, MySQL, nginx

I have a problem connecting to the MySQL container. docker,compose.yml version: ‘2’services: mysql : image: mysql:latest environment: MYSQL_ROOT_PASSWORD: JoeyW#1999 MYSQL_DATABASE: wiput MYSQL_USER: web MYSQL_PASSWORD: Web#1234 volumes: – ./mysql:/var/lib/mysql networks: – code-network php: image: wiput1999/php:latest volumes: – ./code :/code networks: – code-network nginx: image: nginx:latest ports: – “80:80” – “443:443 ” volumes: – ./code:/code – ./site.conf:/etc/nginx/conf.d/default.conf – /etc/letsencrypt:/etc/ letsencrypt networks: – code-networknetworks: code-network: driver: bridge PHP test script: <?php$servername = “localhost”;$username = “root”;$password = “JoeyW#1999”;try { $cOnn= new PDO(“mysql:host=$servername;dbname=wiput”, $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO ::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo “Connected successfully”; }catch(PDOException $e) { echo “Connection failed: ” . $e-> getMessage(); }?> This script responds to me: Connection failed: SQLSTATE[HY000] [ 2002] No such file or directory What’s wrong with my code? Because I think this should be fine If anyone has a better solution, thank you for your help. Solution: Change $servername=”localhost “; to $servername = “mysql”;. Your mysql service is not on localhost of your web server container. You should use the name of the service

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索