Workbook on Digital Private Papers > Setting up the Paradigm Digital Repository
Installing - PHP
From the Desktop
Start up YaST (Yet another Setup Tool) by clicking the SUSE toolbar's "Start" button (the green button with the smiling gecko) => System menu => Control Center (YaST):
The YaST dialog opens telling you that you need to enter root's password before you can continue.
Enter the root password.
In the YaST window that opens, click the Software icon in the left menu and then the Software Management icon to the right.
YaST takes a moment to inventory what you already have installed and what you can install. Then it opens a window with a search dialog.
Search for php5.
Add additional components as required and select Accept.
Yast will automatically include any necessary packages - select Continue.
YaST updates the system configuration files. Select Finish as we will configure PHP before installing any further applications.
Testing our Progress
We can test both Apache and PHP by dropping a .php file in the server directory and seeing if Apache will serve it up.
Open a text editor. "Start" menu => Utilities => Editor opens a KDE text editor called Kate:
Type the following into a document: <?php phpinfo(); ?>
Save the file as showinfo.php to the "/home/paradigm/public_html/" directory. (You'll want to replace "paradigm" with your username).
One of the features of Linux and Apache, is that every user has their own personal directory that they can use to host their content.
Launch a web browser and access the showinfo.php file using your equivalent to this URL: http://localhost/~paradigm/showinfo.php
You should see a web page that displays all the configuration details of your PHP installation. OK! Apache is running. PHP is running.
Previous section <<
Install Apache
Next section >> Install MySql



