LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-27-2007, 08:29 AM   #1
MSCTC
LQ Newbie
 
Registered: Jul 2007
Location: FL, USA
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Ubuntu & Apache php not loading


I've been following this guide http://www.parcival.org/2006/07/14/h...ubuntu-server/

To setup Joomla server. I loaded Ubuntu server with "lamp' option, I believed that was suppose to install Apache, php & MySql?

I made a 'Public_Html' folder as told on the guide in my home directory. I copied the extracted Joomla files inside of it. Then says if i browse http://your_ubuntu_IP/~username I'll pull up the Joomla index.php file and start setup process.

What is happening when i do that is i get a 'open with' application/x-httpd-php prompt.?? What am i missing, i followed all the steps.

If i browse just the IP of the server i get the placeholder page for Apache, which tells me apache is running.

thanks again for the help!
 
Old 07-27-2007, 09:04 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Make sure that there is a line similar to this
Code:
AddType application/x-httpd-php .php
in you apache configuration file (usually httpd.conf)
 
Old 07-27-2007, 10:20 AM   #3
MSCTC
LQ Newbie
 
Registered: Jul 2007
Location: FL, USA
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Make sure that there is a line similar to this
Code:
AddType application/x-httpd-php .php
in you apache configuration file (usually httpd.conf)


Disregard found it at etc/apache

Tks

Last edited by MSCTC; 07-27-2007 at 10:33 AM.
 
Old 07-27-2007, 10:32 AM   #4
MSCTC
LQ Newbie
 
Registered: Jul 2007
Location: FL, USA
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, still doing same thing. This is what i have for Addtypes.

Code:
    #
    # AddType allows you to tweak mime.types without actually editing
    # it, or to make certain files to be certain types.
    #
    # For example, the PHP 3.x module (not part of the Apache
    # distribution - see http://www.php.net) will typically use:
    #
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    AddType application/x-tar .tgz
    AddType image/bmp .bmp
 
Old 07-27-2007, 01:08 PM   #5
MSCTC
LQ Newbie
 
Registered: Jul 2007
Location: FL, USA
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Help !

Ok, i found one of the problems. Apache2 was not installed with LAMP, only Apache 1. I installed Apache2.

This is where I'm having a problem, with that online guide:
http://www.parcival.org/2006/07/14/h...ubuntu-server/


Quote:
Setting up a place for your files to reside

Okay, now we have the Apache webserver installed. You can verify if it’s up and running by pointing your webbrowser to the IP address of your Ubuntu machine, e.g. http://192.168.0.1 This should load the generic Apache welcome site in your browser.

Next we need a place where you can store your (Joomla) files so they are being displayed when you attempt to open your site with your browser. In Ubuntu this is being done by creating a public_html directory in your /home directory. So do

mkdir public_html

in a terminal in your home directory or mount the samba share and create the directory in the file browser of your prference. When you have it, extract your Joomla files into it so that the index.php file and its fellows come to reside in your shiny new public_html.

In your home directory, also recursively set the proper read/write permissions (this is to ensure that Joomla can write the settings to disk):

chmod -R ugo+rwx public_html/

If it worked, the command ls -l will display read/write/execute permissions for all users on your public_html folder.

Next we are going to check if we can access the site in our web browser by adressing it with the proper username in the URL.


#generic
http://your_ubuntu_IP/~username
#example for user Slartibartfast
http://192.168.0.1/~Slartibartfast

Now you should be greeted with the screen that lets you start with the Joomla configuration. Before we can start the Joomla configuration, there is one important step left.
If i browse my server on the browser with IP, i get the "Index of /" and a folder shows up apache2-default/

on the bottom says "Apache 2.2.3 (Ubuntu)server. So it looks like Apache 2 is running. I copied all the extracted Joomla files inside Public_Html folder. The guide says if I use http://your_ubuntu_IP/~username I should get the setup/index php page from Joomla. I don't get that, i get a "Page cannot be found".

I think i have to point Apache2 to that folder if i'm not mistaken, how do I do that?

I'm sorry about these basic question, but its hard to break 15+ years of Windows with 1 week of Linux.

Thank you for reading!
 
Old 07-28-2007, 04:45 PM   #6
MSCTC
LQ Newbie
 
Registered: Jul 2007
Location: FL, USA
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Anybody have any ideas? Tks all.
 
Old 07-28-2007, 05:09 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I copied all the extracted Joomla files inside Public_Html folder.
...
I'm sorry about these basic question, but its hard to break 15+ years of Windows with 1 week of Linux.
Mind that the directory and file names in Linux are case sensitive. So you have to rename that folder to public_html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & Apache - php files not processing aolong Linux - General 1 12-17-2006 03:09 AM
Apache/PHP - loading file from another server Ultrus Linux - Software 7 04-19-2006 08:56 AM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM
PHP not loading on Apache, help! enteal Linux - Software 3 04-19-2004 10:30 AM
Loading PHP into Apache dwpondscum Linux - Software 2 10-18-2003 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration