Tag Archives: PHP

Setup a server on your raspberryPi

Tweet 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 … Continue reading

Posted in raspberryPi | Tagged , , | 1 Comment

running PHP from Command Line Shell

Tweet 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 … Continue reading

Posted in Computer Science | Tagged | Leave a comment

How to setup PHP under fedora

Tweet The following solution to install Apache, MySQL and PHP was checked under Fedora 15 distribution. First, you need to install the relevant packages:

Now, you need to start the relevant services:

This should be done each time … Continue reading

Posted in Linux | Tagged , | Leave a comment

Install Apache and test PHP

Tweet 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 … Continue reading

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

PHP: how to initialise a user directory

Tweet 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”

Posted in Internet related | Tagged | Leave a comment