<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.itadmins.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.itadmins.net/feed.php">
        <title>Chucks notes and stuff - php</title>
        <description></description>
        <link>https://wiki.itadmins.net/</link>
        <image rdf:resource="https://wiki.itadmins.net/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-23T10:50:18+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.itadmins.net/doku.php?id=php:finding_malicious_code&amp;rev=1582539361&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.itadmins.net/doku.php?id=php:htscanner_and_php-fpm&amp;rev=1582539361&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.itadmins.net/doku.php?id=php:wordpress_and_php-fpm&amp;rev=1582539361&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.itadmins.net/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Chucks notes and stuff</title>
        <link>https://wiki.itadmins.net/</link>
        <url>https://wiki.itadmins.net/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://wiki.itadmins.net/doku.php?id=php:finding_malicious_code&amp;rev=1582539361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-02-24T10:16:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>finding_malicious_code</title>
        <link>https://wiki.itadmins.net/doku.php?id=php:finding_malicious_code&amp;rev=1582539361&amp;do=diff</link>
        <description>Finding malicious PHP code

Here I will be collecting different methods of finding malicious PHP code on a server.

Grep for it

Run the following command to get the list of all the files containing strings that are longer than 62 alphanumeric characters:</description>
    </item>
    <item rdf:about="https://wiki.itadmins.net/doku.php?id=php:htscanner_and_php-fpm&amp;rev=1582539361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-02-24T10:16:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>htscanner_and_php-fpm</title>
        <link>https://wiki.itadmins.net/doku.php?id=php:htscanner_and_php-fpm&amp;rev=1582539361&amp;do=diff</link>
        <description>htscanner with PHP5-fpm


# apt-get install php5-dev
# pecl install htscanner-1.0.0


add the following to /etc/php5/conf.d/htscanner.ini:


[htscanner]
extension=&quot;htscanner.so&quot;

; The configuration file htscanner needs to scan for php_* directives
htscanner.config_file=&quot;.htaccess&quot;

; The fallback docroot when htscanner can&#039;t determine the current docroot
htscanner.default_docroot=&quot;/var/customers/webs/&quot;
htscanner.default_ttl=300

; Stop when an error occured in RINIT (no document root, cannot ge…</description>
    </item>
    <item rdf:about="https://wiki.itadmins.net/doku.php?id=php:wordpress_and_php-fpm&amp;rev=1582539361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-02-24T10:16:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>wordpress_and_php-fpm</title>
        <link>https://wiki.itadmins.net/doku.php?id=php:wordpress_and_php-fpm&amp;rev=1582539361&amp;do=diff</link>
        <description>Wordpress and PHP5-fpm

Permalinks

For a standard Wordpress installation you can use something like the following:

.htaccess for permalinks with php-fpm


# BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/fastcgiphp/*
RewriteCond %{REQUEST_URI} !fpm\.external
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
# END WordPress</description>
    </item>
</rdf:RDF>
