Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu May 28, 2009 8:49 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
wow haha okay this is what comes up

## main & restricted repositories
deb http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty main restricted

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted

## universe repositories
#deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty universe
#deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty-updates universe

#deb http://security.ubuntu.com/ubuntu jaunty-security universe
#deb-src http://security.ubuntu.com/ubuntu jaunty-security universe


should I change the top one?


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 8:52 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Just remove the # from the beginning of these two lines:

christina wrote:
(first line after ## universe repositories)
#deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe


(second to last line)
#deb http://security.ubuntu.com/ubuntu jaunty-security universe


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 8:53 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Ah.... in that case, just remove the # sign from the last six lines.

Then
apt-get update
apt-get install phpmyadmin


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 8:55 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
oops... mjrich was quicker

Anyway, when phpmyadmin is up and running, you can follow my instructions in the previous page.

The upload your website files to /var/www
(Edit the file containing database settings, if necessary)

Good luck :D


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:01 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
... and don't forget to add some sort of security to phpmyadmin :).

An .htaccess file at the very least (and preferably install an SSL cert as well).


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:04 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
WOW that was pretty cool!!!! what was that file?

http://97.107.135.162/phpmyadmin
does it look like I did everything correctly?


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:16 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
christina wrote:
WOW that was pretty cool!!!! what was that file?

http://97.107.135.162/phpmyadmin
does it look like I did everything correctly?


That's the raw php. For some reason, your php processor's not doing what it should. I'd restart Apache (though apt should have done this anyway):

/etc/init.d/apache2 restart


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:18 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
OKay i did that but I am still seeing a raw php file... mhhh


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:23 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
What about
apt-get install php5
/etc/init.d/apache2 restart


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:26 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
Apache seems to think php's there though, e.g.

GET http://97.107.135.162/foo | grep -i php

Odd.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:36 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
That's strange. Let's run a simple test to see what's going on.

nano /var/www/index.php

Put the following line in it, and save.
<?php phpinfo(); ?>

Point your browser at
http://97.107.135.162/

Do you see the text you just entered, or do you see a lot of other stuff in colorful tables?


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:40 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
If the test fails and you just see the one line, try adding the following to /etc/apache2/sites-available/default

(If the previous test succeeds and you see colorful tables, you must not do this.)

<Location />
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>

You can put it anywhere you want, but the best location is probably just before the ScriptAlias stuff.

Now restart apache...
/etc/init.d/apache2 restart

Cross your fingers & try again.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:42 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
okay yeah the first thing didnt work so I will try the other


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:44 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
root@li65-162:~# /etc/apache2/sites-available/default
-bash: /etc/apache2/sites-available/default: Permission denied


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 9:45 pm 
Offline
Senior Member

Joined: Mon Jun 16, 2008 6:33 pm
Posts: 151
nano /etc/apache2/sites-available/default


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group