Update (custom) XAMPP/WAMP/LAMP default landing page layout
We are building website and applications on localhost and I use XAMPP package on Linux for my local development.
After installing Xampp, we always get a default home page from Xampp and most of the time we don’t need that. Basically before writing this article I always delete all items of htdocs/www folder, but sometimes we need to know things like versions and if functions are enable or not and also the limits various variables. So by using the below script you can easily get a good view of your localhost’s projects (as a list) and as well as databases from phpmyadmin. And you dont need to delete anything on htdocs folder and get all thing whenever you need.
In the header put this css code into the style tag for a better view
body {
background: #fcfcfc;
color: #111;
font-family: verdana, sans-serif;
padding: 0;
margin: 0;
}
#main {
width: 100%;
position: relative;
}
.container {
padding: 1em;
}
#menu { float: left; width: 24%; }
#menu ul { padding: 0; border-right: 3px solid white; margin: 0; }
ul li { list-style-type: none; }
ul li a {
display: block;
background: #eee;
padding: 4px 7px;
border-top: 2px solid #fff;
}
ul li a:hover {
background: #B6C6D7;
color: black;
}
iframe {
border: 0 none;
overflow: hidden;
width: 74%;
height: 95%;
padding-left: 1%;
}
.clear-block {
width: 100%;
height: 1px;
clear: both;
}
Add this css file for a look like phpmyadmin
<link rel=”stylesheet” type=”text/css” href=”phpmyadmin/phpmyadmin.css.php”></script>
Put this code into the body
</div>
</div>
Now you are done 🙂 . And save this file as index.php at htdocs
Update: 07.10.2015
If there is issue of viewing your phpmyadmin, here is the solution. You just need to add an extra line to allow the third party framing on your phpmyadmin/config.inc.php file.
$cfg[‘AllowThirdPartyFraming’] = true;