Tag Archives: PHP

Setup a server on your raspberryPi

This is a summary of what I did to setup a server on my raspberry Pi. This is based on previous post on the same topic and this link: http://www.instructables.com/id/Raspberry-Pi-Web-Server/ Before starting, make sure that your raspberry software are updated … Continue reading

Posted in raspberryPi | Tagged , , | 1 Comment

running PHP from Command Line Shell

If you want to test some PHP code without using the browser interface, you can create a script to use command line shell as follows. Let us call this script scripting.php. Under Linux, create this file with the php extension … Continue reading

Posted in Computer Science | Tagged | Leave a comment

How to setup PHP under fedora

The following solution to install Apache, MySQL and PHP was checked under Fedora 15 distribution. First, you need to install the relevant packages: su #for root login, enter password when prompted yum install mysql-server service mysqld start mysqladmin -u root … Continue reading

Posted in Linux | Tagged , | Leave a comment

Install Apache and test PHP

Under fedora, install apache sudo yum install php Then, you should edit httpd.conf in /etc/httpd/conf and add AddType application/x-httpd-php3 .php3 or equivalent Then, under Fedora, go to system/service and start the httpd service. Alternatively type sudo service httpd start Finally, … Continue reading

Posted in Computer Science, Linux | Tagged , | Leave a comment

PHP: how to initialise a user directory

In the /etc/httpd/conf/httpd.conf, change the Userdir to public_html <IfModule mod_userdir.c> UserDir public_html </IfModule> and uncomment the section “Directory” Please follow and like us:

Posted in Internet related | Tagged | Leave a comment