0% found this document useful (0 votes)
8 views

lineCommand

The document outlines a series of commands for installing and configuring PHP extensions, specifically for SQL Server integration using PECL. It includes steps for managing PHP versions, modifying Apache configurations, and handling Git operations for version control. The commands also involve setting permissions and managing service restarts for a web application environment.

Uploaded by

asahel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

lineCommand

The document outlines a series of commands for installing and configuring PHP extensions, specifically for SQL Server integration using PECL. It includes steps for managing PHP versions, modifying Apache configurations, and handling Git operations for version control. The commands also involve setting permissions and managing service restarts for a web application environment.

Uploaded by

asahel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 9

1 sudo pecl install pdo_sqlsrv

2 echo msodbcsql18 msodbcsql/ACCEPT_EULA boolean true | sudo debconf-set-


selections
3 pecl
4 pecl -v
5 pecl uninstall sqlsrv
6 pecl version
7 pecl install sqlsrv-5.2.0RC1
8 sudo pecl install sqlsrv-5.2.0RC1
9 echo $PATH
10 pecl config-set php_ini /etc/php/7.2/fpm/php.ini
11 sudo pecl config-set php_ini /etc/php/7.2/fpm/php.ini
12 sudo pecl channel-update pecl.php.net
13 sudo pecl install pdo_sqlsrv
14 sudo pecl install pdo_sqlsrv5.8.0
15 sudo pecl install pdo_sqlsrv-5.8.0
16 echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
17 echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
18 source ~/.bashrc
19 clear
20 sudo pecl install sqlsrv-5.5.0preview & pdo_sqlsrv-5.5.0preview
21 sudo pecl -d php_suffix=7.2 install sqlsrv
22 sudo apt-get install php7.2-psr
23 sudo apt-get install php7.4-psr
24 sudo apt-get install php5.6-psr
25 sudo apt-get install php8.1-psr
26 sudo apt-get install php8.2-psr
27 sudo systemctl restart apache2
28 clear
29 sudo a2dismod php7.2-psr
30 sudo a2dismod php8.1-psr
31 sudo apt-get remove php8.2-psr
32 sudo apt-get install -y php8.1-psr
33 sudo apt-get remove -y php8.1-psr
34 phpdismod -v 7.2 psr
35 sudo phpdismod -v 7.2 psr
36 sudo phpdismod -v 8.1 psr
37 sudo phpdismod -v 8.2 psr
38 sudo phpdismod -v 5.6 psr
39 php -m
40 sudo phpdismod -v 5.6 phalcon
41 sudo phpdismod -v 7.2 phalcon
42 sudo phpdismod -v 8.1 phalcon
43 sudo phpdismod -v 7.4 phalcon
44 sudo phpdismod -v 7.4 psr
45 sudo phpdismod -v 8.1 phalcon
46 sudo phpdismod -v 8.2 phalcon
47 clear
48 sudo pecl -d php_suffix=7.2 install sqlsrv
49 sudo systemctl restart apache2
50 clear
51 mssql
52 pecl
53 php -m |grep sql
54 php -i | grep sqlsrv
55 sudo pecl -d php_suffix=7.2 install sqlsrv5.2.*
56 sudo pecl -d php_suffix=7.2 install sqlsrv5.2
57 sudo pecl -d php_suffix=7.2 install sqlsrv5.2.0
58 sudo pecl -d php_suffix=7.2 install sqlsrv-5.2.*
59 sudo pecl -d php_suffix=7.2 install sqlsrv-5.2.0
60 sudo pecl -d php_suffix=7.2 install pdo_sqlsrv-5.2.0
61 sudo su
62 sudo phpenmod -v 7.2 sqlsrv pdo_sqlsrv
63 sudo systemctl restart apache2
64 sudo systemctl restart php7.2-fpm
65 exit
66 sudo pecl config-set php_ini /etc/php/7.2/fpm/php.ini
67 sudo pecl install sqlsrv
68 exit
69 git clone https://github.com/microsoft/msphpsql.git
70 cd msphpsql/source/
71 ./autogen.sh
72 cd../
73 ./entrypoint.sh
74 sh entrypoint.sh
75 cd ../
76 ./entrypoint.sh
77 sudo chmod -R 777 ../msphpsql/
78 ./entrypoint.sh
79 sudo pecl install sqlsrv
80 sudo find / -name "sqlsrv.so"
81 sudo rm /etc/php/7.2/fpm/conf.d/sqlsrv.ini
82 sudo pecl install sqlsrv-5.2.0
83 exit
84 code .
85 exit
86 code .
87 sudo chmod -R 777 *
88 exit
89 php -v
90 exit
91 code .
92 exit
93 git status
94 git add src/Parasol/AdminBundle/Service/PointDeVente.php
95 git commit -m "modification selection pdv user selon axe"
96 git push origin fixes/fix-INDICE-STOCK
97 sudo chmod -R 777 *
98 code .
99 php bin/console make:form
100 sudo chmod -R 777 *
101 sudo chmod -R 777 *
102 git status
103 history
104 clear
105 git status
106 git add .
107 git status
108 git commit -m "all page"
109 git push origin features/feat-page-all-teams
110 gh auth logout
111 exit
112 php bin/console
113 history
114 gh
115 gh auth login
116 gh auth login
117 exit
118 cd ../
119 code .
120 composer install
121 exit
122 code .
123 code .
124 exit
125 sudo update-alternatives --config php
126 sudo a2dismod php7.2
127 sudo systemctl restart apache2
128 sudo a2enmod php8.1
129 sudo systemctl restart apache2
130 clear
131 composer install
132 code .
133 code .
134 cd ../
135 git clone https://gitlab.pulse.mg/telma/crmlite.git
136 cd crmlite/
137 git pull origin master
138 git status
139 git bacnh
140 git branch
141 git reset --hard
142 git status
143 git checkout master
144 git pull origin master
145 clear
146 code .
147 git checkout feat-TELMAARTECSIC-374
148 sudo subl
149 sudo update-alternatives --config php
150 sudo a2dismod php8.1
151 sudo systemctl restart apache2
152 sudo a2enmod php5.6
153 sudo systemctl restart apache2
154 php -m
155 sudo apt-get -y install php5.6-fpm
156 sudo a2enmod proxy_fcgi setenvif
157 sudo a2enconf php5.6-fpm
158 sudo systemctl reload apache2
159 clear
160 history
161 sudo a2ensite telma.crmlite.mg
162 sudo systemctl reload apache2
163 clear
164 sudo chmod -R 777 *
165 exit
166 code .
167 exit
168 sudo rm *
169 exit
170 sudo rm *
171 exit
172 sudo rm *
173 sudo rm -R *
174 exit
175 php -v
176 code .
177 exit
178 code .
179 sudo subl
180 sudo subl
181 sudo rm -R *
182 exit
183 sudo chmod -R 777 sessions/
184 exit
185 sudo chmod -R 777 crmlite/sessions
186 sudo chmod 777 crmlite/sessions
187 exit
188 sudo chmod -R g+s *
189 sudo chmod -R 777 *
190 exit
191 ls -l
192 sudo chmod -R sessions/
193 sudo chmod -R 777 sessions/
194 sudo rm -R sessions/
195 sudo chmod -R 777 sessions/
196 ls -l
197 ls -l
198 exit
199 sudo rm -R sessions/
200 mkdir sessions
201 exit
202 ls -l
203 cd telma-parasol-bo/
204 ls -l
205 cd var/
206 ls -l
207 cd cache
208 ls -l
209 /var/www/html/crmlite/&& clear
210 /var/www/html/crmlite/ && clear
211 cd /var/www/html/crmlite/ && clear
212 ls
213 ls -l
214 cd sessions/
215 ls -l
216 cd ../
217 sudo chown -R asahel:asahel *
218 ls
219 cd sessions/
220 ls -l
221 cd ../
222 sudo chmod -R 777 *
223 ls -l
224 cd sessions/
225 ls -l
226 ls -l
227 usermod -a -G www-data asahel
228 clear
229 cd ../
230 cd ../
231 sudo chown -R asahel:www-data crmlite/
232 sudo chomod -R g+s crmlite/
233 sudo chmod -R g+s crmlite/
234 sduo chmod -R 777 crmlite/
235 sudo chmod -R 777 crmlite/
236 clear
237 php -v
238 sudo apt-get -y install php7.4-xdebug
239 sudo apt-get -y install php8.1-xdebug
240 sudo apt-get -y install php8.2-xdebug
241 sudo apt-get -y install php7.2-xdebug
242 sudo apt-get -y install php7.1-xdebug
243 sudo apt-get -y install php7.4-xdebug
244 sudo apt-get -y install php5.6-xdebug
245 sudo systemctl restart apache2
246 php -v
247 sudo systemctl restart apache2
248 sudo update-alternatives --config php
249 php -v
250 sudo update-alternatives --config php
251 php -v
252 sudo apt-get -y install php7.0
253 sudo apt-get -y install php7.0-xdebug
254 php -v
255 sudo apt-get -y install php7.0-fpm
256 sudo systemctl restart apache2
257 sudo apt-get -y install php7.4-fpm
258 sudo update-alternatives --config php
259 php -v
260 exit
261 sduo chmod -R 777 *
262 sudo chmod -R 777 *
263 exit
264 sudo update-alternatives--config php
265 sudo update-alternatives --config php
266 sudo a2dismod php5.6
267 sudo systemctl restart apache2
268 sudo a2enmod php7.2
269 sudo systemctl restart apache2
270 clear
271 cd /var/www/html/telma-parasol-bo/
272 code .
273 php bin/console
274 php bin/console pdv:report:create daily
275 php bin/console pdv:report:create daily
276 php bin/console pdv:report:daily heure
277 php bin/console pdv:report:daily heure
278 sudo systemctl restart apache2
279 sudo systemctl restart apache2
280 sudo update-alternatives --config php
281 sudo a2dismod php7.2
282 sudo systemctl restart apache2
283 sudo a2enmod php5.6
284 sudo systemctl restart apache2
285 sudo systemctl restart apache2
286 php -m
287 php apt-get -y install php5.6-intl
288 sudo apt-get -y install php5.6-intl
289 sudo apt-get -y install php5.6-ldap
290 sudo apt-get -y install php-ldap
291 sudo apt-get -y install php-*
292 sudo apt-get -y install php5.6-*
293 sudo apt-get -y install php7.2-*
294 sudo apt-get -y install php7.4-*
295 sudo apt-get -y install php8.1-*
296 sudo apt-get -y install php8.2-*
297 sudo apt-get -y install php-*
298 sudo systemctl restart apache2
299 clear
300 php -v
301 clear
302 sudo systemctl stop php5.6-fpm.service
303 sudo systemctl status php5.6-fpm
304 sudo systemctl stop php7.2-fpm.service
305 sudo systemctl stop php7.1-fpm.service
306 sudo systemctl stop php7.4-fpm.service
307 sudo systemctl stop php8.1-fpm.service
308 sudo systemctl stop php8.2-fpm.service
309 sudo systemctl status php7.1-fpm
310 sudo systemctl status php7.2-fpm
311 sudo systemctl status php7.4-fpm
312 sudo systemctl status php8.1-fpm
313 sudo systemctl status php8.2-fpm
314 sudo systemctl restart apache21
315 sudo systemctl restart apache2
316 sudo systemctl start php5.6-fpm.service
317 sudo systemctl restart apache2
318 sudo systemctl status apache2
319 clear
320 sudo systemctl status php8.2-fpm
321 sudo systemctl start php5.6-fpm.service
322 sudo systemctl restart apache2
323 sudo systemctl start php8.1-fpm.service
324 sudo systemctl start php8.2-fpm.service
325 sudo systemctl start php7.2-fpm.service
326 sudo systemctl start php7.1-fpm.service
327 php -v
328 sudo update-alternatives --config php
329 sudo a2dismod php8.1
330 sudo systemctl restart apache2
331 sudo a2enmod php5.6
332 sudo systemctl stop php8.1-fpm.service
333 sudo a2enmod proxy_fcgi proxy
334 sudo a2dismod mpm_event
335 sudo a2dismod proxy_fcgi proxy
336 sudo a2enmod mpm_prefork
337 sudo systemctl restart apache2
338 exit
339 cd ../crmlite/
340 code .
341 sudo subl
342 code .sudo a2dissite telma.crmlite.mg.conf
343 sudo a2dissite telma.crmlite.mg.conf
344 systemctl restart apache2
345 sudo a2ensite 000-default.conf
346 systemctl restart apache2
347 php -v
348 exit
349 sudo rm -R *
350 php -v
351 php -v
352 sudo update-alternatives --config php
353 sudo systemctl restart apache2
354 clear
355 exit
356 code .
357 git status
358 git add authentification/core/modules/authCrm/forms/
authentification/www/jelix/ useradmin/core/modules/userAdmin/forms/
359 git add authentification/www/design/common/js/tmtvalidator/errorDisplay.css
360 git add useradmin/core/modules/userAdmin/classes/CompanySrv.class.php
361 git add authentification/core/modules/authCrm/templates/login.form.tpl
authentification/core/modules/authCrm/templates/lostPassword.tpl
362 git add authentification/core/modules/authCrm/controllers/login.classic.php
363 git status
364 git status
365 git commit -m "ajout anti CSRF protection dans la formulaire
authentification et mot de passe oublié"
366 git push origin feat-TELMAARTECSIC-374
367 exit
368 code .
369 git add src/Parasol/AdminBundle/Repository/Daily_reportRepository.php
370 git commit -m "erreur requêtelors de la calcule KPI"
371 git push origin fixes/fix-INDICE-STOCK
372 git add src/Parasol/AdminBundle/Repository/Daily_reportRepository.phpexit
373 exit
374 code .
375 exit
376 code .
377 exit
378 code .
379 mysql -v
380 mysql -version
381 mysql --version
382 exit
383 code .
384 exit
385 code .
386 exit
387 sudo chmod -R 777 cache/
388 cd cache/
389 sudo chmod -R 777 dev
390 sudo systemctl restart apache2
391 exit
392 code .
393 sudo a2ensite telma.vonjy.mada.conf
394 sudo systemctl restart apache2
395 sudo a2ensite telma.mmsp.cm.conf
396 exit
397 sudo systemctl status php7.0-fpm
398 sudo systemctl status php5.6-fpm
399 sudo systemctl status php7.1-fpm
400 sudo systemctl status php7.2-fpm
401 sudo systemctl status php7.4-fpm
402 sudo systemctl status php8.1-fpm
403 sudo systemctl status php8.2-fpm
404 clear
405 sudo a2enmod actions fcgid alias proxy_fcgi
406 sudo systemctl restart apache2
407 sudo subl
408 sudo apachectl configtest
409 sudo a2ensite telma.crmlite.mg
410 sudo a2ensite telma.crmlite.mg.conf
411 sudo systemctl restart apache2
412 exit
413 php app/console
414 exit
415 ls -l
416 php /var/www/html/telma-sims-mada.git/app/console
417 exit
418 git status
419 exit
420 ls -l
421 ls -l
422 exit
423 ls -l
424 ls -l
425 docker image ls
426 SUDO apt-get update -y && apt-get autoremove -y && apt-get install
--no-install-recommends lsb-release && tar -xvf archive.tar.gz && rm -rf
/var/lib/apt/lists/* && rm -rf archive.tar.gz
427 sudo apt-get update -y && apt-get autoremove -y && apt-get install
--no-install-recommends lsb-release && tar -xvf archive.tar.gz && rm -rf
/var/lib/apt/lists/* && rm -rf archive.tar.gz
428 exit
429 code .
430 sudo apt-get update
431 sudo apt-get -y install php-apcu
432 sudo apt-get -y install php8.2-apcu
433 sudo apt-get -y install php8.1-apcu
434 sudo apt-get -y install php7.1-apcu
435 sudo apt-get -y install php7.2-apcu
436 sudo apt-get -y install php7.4-apcu
437 sudo apt-get -y install php5.6-apcu
438 clear
439 sudo systemctl restart apache2
440 php -v
441 sudo apt remove docker-desktop
442 sudo apt remove docker-*
443 sudo apt purge docker-*
444 sudo apt-get update
445 sudo apt-get install -y docker-*
446 docker compose version
447 docker --help
448 sudo apt-get install -y docker-desktop
449 sudo apt-get update
450 sudo apt-get install -y ca-certificates curl gnupg
451 sudo install -m 0755 -d /etc/apt/keyrings
452 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor
-o /etc/apt/keyrings/docker.gpg
453 sudo chmod a+r /etc/apt/keyrings/docker.gpg
454 echo "deb [arch="$(dpkg --print-architecture)"
signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
455 "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee
/etc/apt/sources.list.d/docker.list > /dev/null
456 sudo apt-get update
457 sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-
plugin docker-compose-plugin
458 sudo service docker start
459 docker version
460 gpg --generate-key
461 pass init 4FEE78CE6199B32953961D5A52770A0A1EF06C86
462 docker ps
463 docker config ls
464 exit
465 code .
466 exit
467 ls -l
468 cd SoccerTeam/
469 ls -l
470 cd ../book_project/
471 ls -l
472 exit
473 history
474 http-server
475 cd ../.././
476 cd ../
477 http-server parasol/
478 http-server parasol/fo/mobile
479 history
480 exit
481 code .
482 exit
483 nvm use 8.9.4
484 code .
485 npm run build-prodmobil
486 npm run start
487 exit
488 code .
489 git status
490 ls -l
491 git status
492 git add src/ config/packages/ config/routes/ public/build/images/
public/build/js/ SQL/ templates/ translations/
493 git status
494 git add config/bundles.php config/services.yaml public/build/css/
symfony.lock composer.json
495 git status
496 git commit -m "amelioration code et initialisation attestation"
497 git push origin features/feat-VONJY-ATTESTATION
498 git stauts
499 exit
500 code .
501 history > lineCommand.txt
snap install --classic --dangerous glpi-agent_1.12_amd64.snap
1838 sudo snap set glpi-agent
server=https://glpi.axian-group.com/front/inventory.php
1839 sudo glpi-agent
1840 service xagt start
1841 service xagt status

usr/lib/php/20170718/pdo_sqlsrv.so
usr/lib/php/20170718/sqlsrv.so

You might also like