Jump to content


- - - - -

RESOLVED: Parse problem after forum move


  • Please log in to reply
10 replies to this topic

#1 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 01:38 AM

PHP Version 5
MySql Version 5
IP.Board 2.3.6

Well this is embarrassing.

I have copied my IPB2.3.6 game site to an unmanaged VPS server. The HTML pages run fine as evident by my video player and gallery.

However any PHP files are sent out raw with no parsing. The domain hasn't been rerouted yet,  but the new site can be accessed with IP.address/~CpanelUserName as linked below.


Video: http://74.117.156.31...ideo/index.html
Gallery: http://74.117.156.31...ry/gallery.html
Forum: http://74.117.156.31...i/ipb/index.php

If memory serves I had this or a similar problem before, and seems it was something in the .htaccess file. However I have simplified the .htaccess and still no PHP parsing. Not being much of a linux person I really don't know what to check on the server side, other than restarting Apache which I have done.

Posted Image


#2 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 12:10 PM

I'm not either.

Is php actually installed and running ? , that's all I can quickly think of. If its running it should parse as you've chopped the .htaccess down.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#3 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 03:16 PM

View PostAndyF, on 19 March 2011 - 12:10 PM, said:

I'm not either.

Is php actually installed and running ? , that's all I can quickly think of. If its running it should parse as you've chopped the .htaccess down.

Hi Andy and thanks.

Yes the fact that phpmyadmin is working tells me php is running.

Posted Image


#4 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 03:55 PM

That's odd then. The other suggestion I had was to ensure that it is set (do you have Cpanel?, I think there might be setting in there, or in WHM) to use a .php extension to parse with, I know you can set it to use other file extensions, although "why" anyone would is strange. :)

I'm not aware of any specifics but is there a config line to restrict it to certain directories ? , it sounds like its restricted again which is strange.


Although its an unmanaged server, I would expect the host to provide a basic 'how to' or an initial test for you, assuming it came supplied with an OS. It may be a misconfig they can sort for you.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#5 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 04:57 PM

The server is unmanaged VPS (3rd VPS Medium) so I have access to the entire system. The server came with just the Centos 5 64-bit OS, WHM and Hypanel (their VPS control panel) on it. I installed the cPanel, FTP and SFTP via terminal myself which was surprisingly easy. Their cPanel only comes installed on the 32-bit OS.

I checked in WHM that it was indeed running PHP5 and restarted Apache and MySQL which is about the extent of my expertice. :huh:

Support is very good at helping get setup with commands and links to install what I needed, but when something doesn't work say they can’t help you with this issue because it is an unmanaged server.

So I guess for now I will muddle around a bit. I also have a friend who uses Linux a lot at his work and home and see if he has time to get me going.


-Sandi

Posted Image


#6 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 19 March 2011 - 05:09 PM

Not really sure then sorry. :( , its not something I have had to do.

Here is a link that 'might' help:

http://corz.org/serv...ks/htaccess.php


I do wonder if its a problem with php.ini though, is open_basedir off ? or just commented out ;open_basedir , I think that might be worth a try. Unless its something in the '; Paths and Directories ;' section restricting it.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#7 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 20 March 2011 - 05:50 PM

Thinking that I might be onto something, but hadn't noticed until I used my Filezilla instead of CoreFTP Pro. Filezilla shows file and folder owndership as well as CHMOD.

/home/sand/public_html is owned by sandi while /ipb/ (my forum root) and all sub folders are owned by root. I presume this is because I did all the SFTP transfers before I made the 'sandi' account.

Now if I can just figure out how to change ownership of all folders and files. On my local servers I always used Webmin and could change ownership with a click or two.

If this fixes the problem I will report here in case someone else runs into the issue.

Posted Image


#8 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 20 March 2011 - 06:19 PM

chown I think

http://en.wikipedia.org/wiki/Chown

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#9 Musalman

Musalman

    Analyzer

  • Members
  • PipPipPipPipPipPipPip
  • 526 posts
  • Location:Pakistan
  • Real Name:Intasar
  • IPB Version:v2.3.x
Contributor

Posted 27 April 2011 - 04:09 PM

I think root and any other account like "Sandi" are not problem. this is not the problem who owned the file in VPS based hosting. but you must need to check "Sandi" account privileges that this account must have rights to use PHP, APACHE, MYSQL and all other addons which root used and Basic 2.0 sites needs.

You problem indicate two things.

1) Account privileges problem
2) miss configuration of PHP and Apache.

#10 Sandi

Sandi

    Coder

  • IM Supporters
  • PipPipPipPipPipPipPip
  • 812 posts
  • Location:Janesville, Wisconsin
  • Real Name:Sandra
  • IPB Version:v3.2.x
Contributor

Posted 27 April 2011 - 08:31 PM

Yeah it was, and sorry I forgot to report back. All files and folders were owned by root. In terminal I changed ownership of all from root to Sandi and all was fixed.

Posted Image


#11 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 28 April 2011 - 08:29 AM

The issue this topic was opened for has now been resolved. :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users