HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Can only view index.php but no other php files (http://www.howtoforge.com/forums/showthread.php?t=59906)

Didcot 10th December 2012 13:24

Can only view index.php but no other php files
 
Not sure if this is the best place to post but I have ispconfig 3 installed so worth a try.

I got my first site up and running which was "just" a case of setting up ispconfig and then uploading files to my server via ftp.

The site fired up nicely and once configured all works ok.

Now the problem is this site benefits from using memcache so I've installed that and it appears to be running but in the admin area of the site it tells me that memcache is not installed.

I then decided to create a small php file to gather all the php info.

Like this:-

Code:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

Saved it as test.php in the root of the site the same as index.php.


But the problem is, when i go to view test.php I get an error 500 but not when I view index.php.

Could anyone enlighten me to what's going wrong here?

almere 10th December 2012 15:26

Hi,

Please, check permissions to test.php (chmod and chown). What CMS did you install? What ISPConfig version do you use?

Didcot 10th December 2012 16:15

It's ispconfig3 and I'm not using any CMS such as wordpress, it's actually the prosper202 script that I installed it that helps.

file properties are set to 777.

Ownership is set to client1 which is me in ispconfig admin area.

By the way i'm not suggesting this is an ispconfig problem but i was just hoping maybe someone had seen this happen before.

till 10th December 2012 16:28

Please set the ownership of the records to the web[ID] user and client[ID] group of that website, when you upload the files by ftp, the onwership is set correctly. The chmod should be 755 and not 777.

And you might want to take a look into the error.log file of this website, the reason for the error should be logged there.

Didcot 10th December 2012 17:00

That's wierd it just started working. LOL


Anyway thanks for your help and talking to you seemed to do the trick. You haven't got any connections with the Higher Powers have you?


Lets say i'd like an Ipad for Christmas can you do the same trick you did for this file issue please? :D


All times are GMT +2. The time now is 07:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.