Browsing articles in "Web Server"
Aug
15
2014

Increase the max upload filesize in Apache/PHP

portada

Have you ever experienced with this message when you implement File upload function in to you PHP code ” Error:The uploaded file exceeds the maximum allowed size in your PHP configuration file “ Your php installation putting limits on upload file size. The default will restrict you to a max 2 MB upload file size.

Jul
20
2013

How to Install Linux, Apache, MySQL, PHP on Ubuntu

download (5)

Step One—Install Apache Apache is a free open source software which runs over 50% of the world’s web servers. To install apache, open terminal and type in these commands: sudo apt-get update sudo apt-get install apache2 That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). The page should display the words “It works!” like this. How to Find your Server’s IP address You can run the following […]

Jul
20
2013

How to Check Apache Module and Enable Apache Modules?

download (3)

We can use apache2ctl -M to the module that has been enabled on apache. Or if you have apache + PHP you can check it from phpinfo() function <?php echo phpinfo(); ?>   What if you want to enable the module you can use a2enmod “The module name”   for example “enable mod_rewrite” :: #a2enmod rewrite   Then restart the apache service #/etc/init.d/apache2 restart or #service apache2 restart

Feb
6
2013

PHP + SSH Authentication using a public key

  <?php $connection = ssh2_connect(‘shell.example.com’, 22, array(‘hostkey’=>’ssh-rsa’)); if (ssh2_auth_pubkey_file($connection, ‘username’, ‘/home/username/.ssh/id_rsa.pub’, ‘/home/username/.ssh/id_rsa’, ‘secret’)) { echo “Public Key Authentication Successful\n”; } else { die(‘Public Key Authentication Failed’); } ?>   This is a known bug in php: password protected private key cannot be used on certain combinaisons. See: https://bugs.php.net/bug.php?id=58573 ssh2_auth_pubkey_file() is broken when the public key file is protected with a password AND libssh2 is compiled with libgcrypt, which is what debian/ubuntu and probably others do. I’m working on a solution for this bug, but if you need this working rebuild libssh2 yourself with […]

Feb
6
2013

Installing PHP’s SSH2 extension on Ubuntu

    On Ubuntu 10.04 LTS, Do this (there’s no need to do any compiling anymore) 1 apt-get install libssh2-1-dev libssh2-php You can now test if PHP recognizes it’s new ssh2 extension by running: 1 php -m |grep ssh2 Don’t forget to restart Apache 1 service apache2 restart

Sep
22
2012

Installing PHP5 and Apache on Ubuntu

ubuntu

Installing PHP5 and Apache on Ubuntu If you are doing any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box. First, you’ll want to add the extra repositories to Ubuntu’s sources.list file. From a command shell, you will run the following commands: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo […]

Jul
8
2012

Build your own Home Webserver

25-02_xampp_01

Web server can refer to either hardware or software (of a computer) that helps to deliver content that can be accessed through the Internet. The most common use of web servers is to host web sites but there are other uses like data storage or for running enterprise applications. Before getting into the actual process, let’s look at a couple of real-world situations that explain why you may want to turn your home computer into […]

May
31
2012

How to fix!! Lost your XAMPP admin panel password

XAMPP

Since my last use XAMPP server for my web application development last year, I have not used it since then. It is running fine.. everything is good.. BUT.. when I call the admin panel page, it asks me for the username and password.. I have tried a couple of possible password, however, it does not work..  So, how can I reset the password is only possible solution for me!! hahaha     What is XAMPP?? […]




Member Area