<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Littleji0409</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Littleji0409"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Littleji0409"/>
	<updated>2026-04-30T22:06:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=15474</id>
		<title>Setting Up Lighttpd With FastCGI</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=15474"/>
		<updated>2018-09-25T02:11:19Z</updated>

		<summary type="html">&lt;p&gt;Littleji0409: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Install the additional packages:&lt;br /&gt;
{{Cmd|apk add lighttpd php5-common php5-iconv php5-json php5-gd php5-curl php5-xml php5-pgsql php5-mysql php5-imap php5-cgi fcgi}}&lt;br /&gt;
{{Cmd|apk add php5-pdo php5-pdo_pgsql php5-pdo_mysql php5-soap php5-xmlrpc php5-posix php5-mcrypt php5-gettext php5-ldap php5-ctype php5-dom}}&lt;br /&gt;
&lt;br /&gt;
==Configure Lighttpd==&lt;br /&gt;
&#039;&#039;&#039;Edit lighttpd.conf&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|vi /etc/lighttpd/lighttpd.conf}}&lt;br /&gt;
Uncomment line:&lt;br /&gt;
 include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit mod_fastcgi.conf&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|vi /etc/lighttpd/mod_fastcgi.conf}}&lt;br /&gt;
Edit the section:&lt;br /&gt;
 /usr/bin/php-cgi&lt;br /&gt;
To:&lt;br /&gt;
 /usr/bin/php-cgi5&lt;br /&gt;
&lt;br /&gt;
==Start lighttpd service and add to needed runlevel==&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-service lighttpd start &amp;amp;&amp;amp; rc-update add lighttpd default}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Littleji0409</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=15473</id>
		<title>Setting Up Lighttpd With FastCGI</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_Up_Lighttpd_With_FastCGI&amp;diff=15473"/>
		<updated>2018-09-25T02:10:49Z</updated>

		<summary type="html">&lt;p&gt;Littleji0409: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Install the additional packages:&lt;br /&gt;
{{Cmd|apk add lighttpd php5-common php5-iconv php5-json php5-gd php5-curl php5-xml php5-pgsql php5-mysql php5-imap php5-cgi fcgi}}&lt;br /&gt;
{{Cmd|apk add php5-pdo php5-pdo_pgsql  php5-pdo_mysql  php5-soap php5-xmlrpc php5-posix php5-mcrypt php5-gettext php5-ldap php5-ctype php5-dom}}&lt;br /&gt;
&lt;br /&gt;
==Configure Lighttpd==&lt;br /&gt;
&#039;&#039;&#039;Edit lighttpd.conf&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|vi /etc/lighttpd/lighttpd.conf}}&lt;br /&gt;
Uncomment line:&lt;br /&gt;
 include &amp;quot;mod_fastcgi.conf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit mod_fastcgi.conf&#039;&#039;&#039;&lt;br /&gt;
{{Cmd|vi /etc/lighttpd/mod_fastcgi.conf}}&lt;br /&gt;
Edit the section:&lt;br /&gt;
 /usr/bin/php-cgi&lt;br /&gt;
To:&lt;br /&gt;
 /usr/bin/php-cgi5&lt;br /&gt;
&lt;br /&gt;
==Start lighttpd service and add to needed runlevel==&lt;br /&gt;
&lt;br /&gt;
{{Cmd|rc-service lighttpd start &amp;amp;&amp;amp; rc-update add lighttpd default}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:PHP]]&lt;/div&gt;</summary>
		<author><name>Littleji0409</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Damn_Vulnerable_Web_Application_(DVWA)&amp;diff=15472</id>
		<title>Damn Vulnerable Web Application (DVWA)</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Damn_Vulnerable_Web_Application_(DVWA)&amp;diff=15472"/>
		<updated>2018-09-23T07:25:07Z</updated>

		<summary type="html">&lt;p&gt;Littleji0409: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For testing web security tools a target which has plenty vulnerabilities is needed. The [http://www.dvwa.co.uk Damn Vulnerable Web Application (DVWA)] provides a PHP/MySQL web application that is damn vulnerable.&lt;br /&gt;
&lt;br /&gt;
= Install lighttpd, PHP, and MySql =&lt;br /&gt;
{{:Setting Up Lighttpd With FastCGI}}&lt;br /&gt;
&lt;br /&gt;
Install extra packages:&lt;br /&gt;
{{Cmd|apk add php5-mysql mysql mysql-client}}&lt;br /&gt;
&lt;br /&gt;
= Installing and configuring DVWA =&lt;br /&gt;
&lt;br /&gt;
Create the a folder named {{Path|webapps}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir -p /usr/share/webapps/}}&lt;br /&gt;
&lt;br /&gt;
Download the source archive and unpack it&lt;br /&gt;
&lt;br /&gt;
{{Cmd|cd /usr/share/webapps/&lt;br /&gt;
wget https://github.com/RandomStorm/DVWA/archive/v1.9.zip}}&lt;br /&gt;
&lt;br /&gt;
Unpack the archive and remove it&lt;br /&gt;
&lt;br /&gt;
{{Cmd|unzip v1.9.zip&lt;br /&gt;
rm v1.9.zip}}&lt;br /&gt;
&lt;br /&gt;
Change the folder permissions&lt;br /&gt;
&lt;br /&gt;
{{Cmd|chmod -R 777 /usr/share/webapps/}}&lt;br /&gt;
&lt;br /&gt;
Create a symlinks to the folder &#039;&#039;dvwa&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Cmd|ln -s /usr/share/webapps/dvwa/ /var/www/localhost/htdocs/dvwa}}&lt;br /&gt;
&lt;br /&gt;
= Configuration and start MySql =&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;/usr/bin/mysql_install_db --user=mysql&lt;br /&gt;
/etc/init.d/mariadb start &amp;amp;&amp;amp; rc-update add mariadb default&lt;br /&gt;
/usr/bin/mysqladmin -u root password &#039;password&#039;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Modify the database credentials within DVWA configuration file &#039;&#039;/config/config.inc.php&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Cmd|nano -w /usr/share/webapps/dvwa/config/config.inc.php}}&lt;br /&gt;
&lt;br /&gt;
To complete the setup, browse to the DVWA directory on the webserver.&lt;br /&gt;
&lt;br /&gt;
http://WEBSERVER_IP_ADDRESS/dvwa&lt;br /&gt;
&lt;br /&gt;
Follow the link to setup the database.&lt;br /&gt;
&lt;br /&gt;
[[Category:PHP]] [[Category:SQL]] [[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Littleji0409</name></author>
	</entry>
</feed>