PHP, Apache and Ubuntu 8.04?

geo yaktur at yahoo.com
Thu Jun 26 13:04:38 UTC 2008


That's cool!!

This weekend I plan to upgrade my system to 8.04. Will these file requirements change in anyway?

What I plan to do it simply print up a list of stuff to "apt-get install" and let it do it's voodoo.

I'm also running a Samba and a Unix server because my step-daughter runs Win XP Home on her laptop and she needed space to back-up her stuff. My step-son runs Xubuntu on his computer and he needs to access stuff in his home directory on the Dell.

And all of this is tied together in the house via Wireless. Some fun!

Would I be able to interrogate my system and have it cough up a list in text format of what packages are installed? Then I could print it up and redo the installaton with 8.04?

Thanks!
geo

--- On Thu, 6/26/08, volksman <v0lksman69 at gmail.com> wrote:

> From: volksman <v0lksman69 at gmail.com>
> Subject: Re: Ubuntu users in Ontario, Canada?
> To: yaktur at yahoo.com, "The Canadian Ubuntu Users Community" <ubuntu-ca at lists.ubuntu.com>
> Date: Thursday, June 26, 2008, 8:47 AM
> geo wrote:
> > This seems to have solved it! Now when I go to:
> >
> > http://georutkay.homelinux.org/test.php
> >
> > I get a nice report on what's what in the system!
> >
> WOOHOO!!!  Congrats!  Apache and PHP are working together
> and mySQL is a 
> loaded module (as you can see by the list on the test.php
> page).
> 
> > Can we summarize all of this for the benefit of
> others?
> >
> 
> +++ Packages Needed
> The following packages need to be installed in order to get
> this far 
> (Apache and PHP playing nice):
> 
> For Apache2 you need the following:
> 
> apache2
> apache2-doc
> apache2-mpm-prefork
> apache2-utils
> libexpat1
> ssl-cert
> 
> For PHP5 you'd NEED:
> 
> libapache2-mod-php5
> php5
> php5-common
> php5-mysql
> php5-gd
> 
> However if you plan to use any plugins with Joomla these
> may be required:
> 
> php5-curl
> php5-dev
> php5-idn
> php-pear
> php5-imagick
> php5-imap
> php5-mcrypt
> php5-memcache
> php5-mhash
> php5-ming
> php5-ps
> php5-pspell
> php5-recode
> php5-snmp
> php5-sqlite
> php5-tidy
> php5-xmlrpc
> php5-xsl
> 
> This package will install phpmyAdmin which you haven't
> touched yet:
> 
> phpmyadmin
> 
> As well these are needed for mySQL which we haven't
> touched on yet either:
> 
> mysql-server
> mysql-client
> libmysqlclient15-dev
> 
> +++ Troubleshooting Tools
> You have also been shown a couple troubleshooting tools
> that you should 
> keep in mind.
> 
> a2enmod/a2dismod - Apache tool to enable and disable Apache
> modules.  
> For example Joomla will likely have a feature to make a URL
> less 
> complicated (so instead of http://yoursite/index.php?node=1
> it will look 
> like http://yoursite/a-pretty-name) .  You may need to
> enable a module 
> called 'rewrite' for that.  a2enmod will tell you
> if the module is 
> available and let you enable it.
> 
> You know that your Apache config files are located in
> /etc/apache2 and 
> that your web server serves content from /var/www.
> 
> You can run php in a terminal to see if it is choking on
> any modules or 
> running smooth (php -v to provide the version number and
> exit).
> 
> You can test PHP via Apache by creating a file with the
> extension .php 
> and placing it on your server.  The contents of the file
> should be:
> 
> <?php phpinfo(); ?>
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 
> What I have learned with this case:
> 
> 1) tasksel on Ubuntu server to setup  parts of the server. 
> Hadn't known 
> about that tool but will be looking into it.
> 
> 2) former Mac users with no previous linux experience may
> attempt server 
> product installs on their desktops (see tongue in cheek
> remark below).  
> Nothing wrong with that but not a level I've ever had
> to support.  
> Certainly a different ball park then I'm used to.
> 
> 3) I'm not good at providing support via e-mail.  IRC,
> IM, Phone, in 
> person, all no problems.  My tongue in cheek and sarcasm
> doesn't come 
> across well via e-mail (I also can't stand the
> waiting!!!).  So I will 
> lurk in the shadows here from now on.  Sorry if I offended
> anyone or 
> anyone feels I went to far.  I always had Geo's best
> interests at heart 
> and only wanted to help him get his server up (my OCD
> manifests in that 
> I can't leave a computer broken).
> 
> Regardless glad to see you are -mostly- there Geo.  Next
> hurdle is to 
> install Joomla and then use it!
> 
> Best of luck and I'm sure the fine folks here will get
> you going!
> 
> 
> > --- On *Wed, 6/25/08, Andrew Mathenge
> /<mathenge at gmail.com>/* wrote:
> >
> >     From: Andrew Mathenge <mathenge at gmail.com>
> >     Subject: Re: Ubuntu users in Ontario, Canada?
> >     To: yaktur at yahoo.com
> >     Cc: "The Canadian Ubuntu Users
> Community" <ubuntu-ca at lists.ubuntu.com>
> >     Date: Wednesday, June 25, 2008, 11:18 PM
> >
> >     Can you check synaptic.
> >
> >     Launch synaptic.
> >
> >     System --> Administration --> Synaptic
> Package Manager
> >
> >     Click on "Search"
> >
> >     Type "apache2"
> >
> >     Scroll through the results list to see if the
> following packages are installed:
> >
> >     apache2
> >     apache2.2-common
> >     apache2-mpm-prefork
> >     apahe2-utils
> >     libapache2-mod-php5             (very important)
> >
> >     Click on "Search" again
> >
> >     Type "php module"
> >
> >     Scroll through the result list to see if the
> following packages are installed:
> >
> >     libapache2-php-module         (same as above, very
> important)
> >     php5-gd
> >     php5-mysql
> >     php5-ldap
> >     php5-odbc
> >
> >     In your case, for Joomla! you'd only need
> php5-mysql.
> >
> >     Then, click on "Search"
> >      again.
> >
> >     Type "mysql"
> >
> >     libdbd-mysql-perl                   (not so
> important)
> >     libmysqlclient15off
> >     mysql-client
> >     mysql-client-5.0
> >     mysql-common
> >     mysql-server
> >     mysql-server-5.0
> >     php-mysql
> >
> >     You may have been told to check these before in
> earlier posts, but
> >     check them yourself.
> >
> >     If they are already installed, perhaps what you
> can do is remove them
> >     and then re-install them.
> >
> >     That may re-create the folders that are missing
> from your installation.
> >
> >     It's clear that PHP configuration in apache is
> missing.
> >
> >     Good luck!
> >
> >     Andrew.
> >
> >     On Wed, Jun 25, 2008 at 10:09 PM, geo
> <yaktur at yahoo.com> wrote:
> >     > I was trying to implement your advice. I was
> creating the files
> >     "php5.conf"
> >     > and "php5.load" and their
> respective contents and permissions by
> >     > hand.....then I realized I don't have a
> modules directory!
> >     >
> >     > This is the contents of my /etc/apache2/
> >      directory:
> >     >
> >     > (Directories)
> >     > conf.d
> >     > mods-available
> >     > mods-enabled
> >     > sites-available
> >     > sites-enabled
> >     >
> >     > (Individual files)
> >     > apache2.conf
> >     > enwars
> >     > httpd.conf
> >     > ports.conf
> >     >
> >     > And that's all that's in
> /etc/apache2/ !!!
> >     >
> >     > There is no /etc/apache2/modules/ path!
> >     >
> >     > YIKES! What has happened? Why isn't there
> one there?
> >     >
> >     > geo
> >     >
> >     > --- On Wed, 6/25/08, Andrew Mathenge
> <mathenge at gmail.com> wrote:
> >     >
> >     > From: Andrew Mathenge
> <mathenge at gmail.com>
> >     > Subject: Re: Ubuntu users in Ontario, Canada?
> >     > To: yaktur at yahoo.com, "The Canadian
> Ubuntu Users Community"
> >     > <ubuntu-ca at lists.ubuntu.com>
> >     > Date: Wednesday, June 25, 2008, 9:46 PM
> >     >
> >     > The problem you have is that PHP modules
> aren't being loaded by
> >     > apache. You mentioned that when you
> >      wrote:
> >     >
> >     >>> I don't have any such files named
> php5.conf and php5.load in
> >     > /etc/apache2/mods-enabled/. Nothing there
> even starts with php.
> >     >
> >     > I have PHP working on my system. My
> /etc/apache2/mods-enabled/dir.conf
> >     > file looks like this:
> >     >
> >     > <IfModule mod_dir.c>
> >     >           DirectoryIndex index.html index.cgi
> index.pl index.php
> >     > index.xhtml index.htm
> >     > </IfModule>
> >     >
> >     > Inside the folder /etc/apache2/mods-enabled
> folder, I also have the
> >     > following links:
> >     >
> >     > lrwxrwxrwx 1 root root   27 2008-04-26 22:26
> php5.conf ->
> >     > ../mods-available/php5.conf
> >     > lrwxrwxrwx 1 root root   27
> >     >  2008-04-26 22:26 php5.load ->
> >     > ../mods-available/php5.load
> >     >
> >     > Notice that these are links (or shortcuts)
> pointing to the following
> >     > files in /etc/apache2/mods-available
> >     >
> >     > -rw-r--r-- 1 root root 133
> >      2008-02-27 15:49 php5.conf
> >     > -rw-r--r-- 1 root root  59 2008-02-27 15:49
> php5.load
> >     >
> >     > Those files have the following contents:
> >     >
> >     > php5.conf looks like this:
> >     >
> >     > <IfModule mod_php5.c>
> >     >   AddType application/x-httpd-php .php .phtml
> .php3
> >     >   AddType application/x-httpd-php-source
> .phps
> >     > </IfModule>
> >     >
> >     >
> >     > And php5.load looks like this:
> >     >
> >     > LoadModule php5_module
> /usr/lib/apache2/modules/libphp5.so
> >     >
> >     > Which means that the file in
> /usr/lib/apache2/modules/libphp5.so MUST
> >     > exist or PHP will not work.
> >     >
> >     > One final comment. Removing
> "index.php" from
> >     > /etc/apache2/mods-enabled/dir.conf means that
> the file index.php won't
> >     > be loaded by default. PHP files will still be
> processed because of
> >     >  the
> >     > /etc/apache2/mods-enabled/php.conf file.
> >     >
> >     > Hope this moves you a step
> >      closer!
> >     >
> >     > Andrew.
> >     >
> >
> >


      




More information about the ubuntu-ca mailing list