首页 > 系统相关 >linux centos7+apache2+php

linux centos7+apache2+php

时间:2024-02-01 11:11:38浏览次数:17  
标签:webshell httpd sudo apache2 centos7 xx apache php

This is basic environment to serve php application framework.
We don't need a Database in this case.

  1. Make a server on centos Environment
  2. Setting up some environment (php and apache environment)
  3. Touch the file and paste the web-shell sample code.
  4. Check Accessibility using public IP.
sudo yum install httpd  #安装apache
sudo systemctl start httpd.service #启动apache
sudo yum install php #安装php环境
sudo yum php-mysql    #安装php mysql
sudo systemctl restart httpd.service   #重启apache
sudo vim /var/www/html/webshell.php # paste the below source code.

创建php文件内容:

// webshell sample
<?php
system('cat /etc/hosts');
?>

Then, access to the link with url parameters.

标签:webshell,httpd,sudo,apache2,centos7,xx,apache,php
From: https://www.cnblogs.com/pingguomang/p/18000803

相关文章

  • centos7升级openssh到9.0
    一、安装telnet作为备份连接用yuminstalltelnet-servertelnetxinetd二、启动telnet服务systemctlstarttelnet.socketsystemctlstartxinetdsystemctlstatustelnet.socketsystemctlstatusxinetd三、修改配置vim/etc/pam.d/remote注释掉这行#auth......
  • php的SM4加密
     <?php/***Sm4加密解密类*ClassSm4Helper*@packageapp\common\tools*/classSm4{constSM4_CK=[0x00070e15,0x1c232a31,0x383f464d,0x545b6269,0x70777e85,0x8c939aa1,0xa8afb6bd,0xc4cbd2d9,0xe0e7eef5,0xfc030......
  • PHP5.6的安装及redis、memcache、mongo扩展
    系统版本:CentOSLinuxrelease7.4.1708(Core)PHP5.6下载地址:wgethttp://am1.php.net/distributions/php-5.6.37.tar.gz需要装好yum的epel-release,这上面有相对应的依赖包,否则依赖包没装好编译会报错!!!安装相关依赖关系包yum-yinstallgccgcc-c++phpphp-mysqbzip2-dev......
  • PhpStorm 2023: 与最智能的PHP IDE同行
    JetBrainsPhpStorm2023mac/win版是一款专为PHP开发人员打造的强大集成开发环境。这个版本致力于提供卓越的性能、强大的功能和一流的智能代码编辑支持,帮助您更高效地编写高质量的PHP代码。→→↓↓载PhpStorm2023mac/win 首先,PhpStorm2023提供了对最新PHP版本......
  • phpstorm 突然就打不开了!!!
    1,C:\Users\Administrator\AppData\Roaming\JetBrains\PhpStorm2023.3按照大概文件位置进行处理2,找到phpstorm64.exe.vmoptions文件把下面这段东西复制进去至于为啥就打开,我不知道哈哈哈哈管他呢-server-Xms256m-XX:MaxPermSize=250m-XX:ReservedCodeCacheSize=240m-XX:+......
  • php 导出excel表格
    <?phpnamespaceapp\common\services;classOfficeExportService{/***导出excelcsv格式*建议使用,导出数据量大的时候csv格式会快很多!!!!!*@paramstring$filename文件名*@paramarray$tileArray表头标题列表格式一维数组[标题1,标题2,......
  • Centos7.6安装Openstack
    1.主机配置关闭防火墙#关闭防火墙systemctlstopfirewalld#开机禁止启动systemctldisablefirewalld关闭selinuxvi/etc/sysconfig/selinux在第7行设置SELINUX=disabledsetenforce0#临时生效,如果忘记设置,后续Httpd服务会因为权限问题无法启动修改主机名hostn......
  • 【工具】全自动实时更换代理,PHP火车头/高铁插件
    作为一个网站运维/编辑人员,你是否一直在使用火车头/高铁效率提升工具?你是否会遇到以下这些情况:①目标网站限制UA(User-Agent);②目标网站判断来访(Referer);③目标网站判断cookie;④目标网站限制单个IP高频次请求;以上情况都是常见的网站内容防护手法,网站运维/编辑人员在借助火......
  • Ali Cloud Linux3 : Installing ImageMagick for PHP 7.4
    Step1:Ifnotalreadyinstalled,installthephp-develandgccpackages.$sudoyuminstallphp-develgccTocheckifthepackagesareinstalled,usethefollowingcommands.Ifeithercommandreturnsanemptyresult(orbothdo),you’llneedtoinstallth......
  • centos7安装jenkins
    war安装去jenkins官网下载war包下载最新的包,旧的包插件支持有问题,会导致装不上插件,如果是中文官网,最外面的版本一般都很老,直接去历史发型版里面下载最新的,低版本的jenkins会下载不下来合适版本的插件,jenkins的插件库里面只能获取到最高版本的插件,并且不会向下兼容低版本的j......