How do I get php to work?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Sat Sep 17, 2005 3:32 pm    Post subject: How do I get php to work? Reply with quote

Alright I just ran into abyss web server today and decided to install it insted of paying $200 to install win xp pro. I am using win xp home and I folowed the instructions to install php. I installed php 5.0.5. Now from my understanding you are supose to put php files in the cgi-bin directory but from what I found out in the forums is that may not be true. I made a php file with

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>PHP Info</title>
</head>
<body>

<?php phpinfo(); ?>

</body>
</html>

to show my phpinfo and as a test page. but when I load it I get a blank page.

I would greatly appreaite it if someone could inform me on who this works with abyss web server?
Back to top View user's profile Send private message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sat Sep 17, 2005 3:43 pm    Post subject: Reply with quote

No, it does not belong in the CGI-BIN directory.

Also, what did ytou follow to install PHP?

Make sure you did the steps mentioned here... do to the tutorials section and read the PHP tutorial.
Back to top View user's profile Send private message Send e-mail
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Sat Sep 17, 2005 5:41 pm    Post subject: Reply with quote

I went to
http://www.aprelium.com/abyssws/php.html
to install php on abyss I already installed php 5.0.5 do i need to do any more tweeking if so what is it that I need to do? I will be back at 11pm (Eatern Time) tonight I have to go to work now I befily checked out that link if thats what I need to do just let me know unless thats wrong or there somthing more. Thank you alot I really apreaite your help.
Back to top View user's profile Send private message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sat Sep 17, 2005 5:48 pm    Post subject: Reply with quote

Charles wrote:
I went to
http://www.aprelium.com/abyssws/php.html
to install php on abyss I already installed php 5.0.5 do i need to do any more tweeking if so what is it that I need to do? I will be back at 11pm (Eatern Time) tonight I have to go to work now I befily checked out that link if thats what I need to do just let me know unless thats wrong or there somthing more. Thank you alot I really apreaite your help.

Yes, install it using the tutorial found on trustabyss.com ... that works...
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Sep 17, 2005 6:27 pm    Post subject: Reply with quote

If you can't get it to work later , I can help you over my MSN Messenger.
You can find my MSN below this message. I've help alot of users and im
sure I can return the favor to you. Im always up for a challenge.

My MSN: msn@trustabyss.com
Back to top View user's profile Send private message Visit poster's website
briosky
-


Joined: 18 Jun 2005
Posts: 46
Location: Salt Lake City, UT

PostPosted: Sun Sep 18, 2005 7:01 am    Post subject: try change extension Reply with quote

I had the same problem at the beginning.
Under XP Pro with no SP, my page with phpinfo() was called index.html and didn't want to work.
I had no time to investigate, so I just changed it in index.php and everything was fine.

_________________
Brionews - Everyday Freshnews http://brionews.com
Back to top View user's profile Send private message Visit poster's website MSN Messenger
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Sep 18, 2005 5:53 pm    Post subject: Reply with quote

All PHP files have the extension .php when you install it but you can add the
.html and .htm extension , only files that are declared PHP files will execute.

Sincerely , TRUSTpunk
Back to top View user's profile Send private message Visit poster's website
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Sun Sep 18, 2005 7:08 pm    Post subject: I figured that out but now I hav etrouble with mysql Reply with quote

I firgured it out thanks to trustpunk I was accessing the page directly and not though the host LoL i felt kinda stupid but now I am having touble with mysql can you help me with that here?
Back to top View user's profile Send private message
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sun Sep 18, 2005 7:14 pm    Post subject: Reply with quote

what problems are you having with mySql?
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Mon Sep 19, 2005 3:09 am    Post subject: Problem Reply with quote

I followed the following instructions

Click here if you need to download MySQL. After you downloaded MySQL , create a new folder in C:\ called MySQL and unzip the contents of the mysql zip file to that new folder. Go to C:\MySQL\bin and click on mysqld.exe and it should launch MySQL. If MySQL doesn't start on Windows 2000/XP , go to My Computer -> Controle Panel -> Admin... Tools -> Services and Start MySQL. Good Luck!

Note: You will need to download the (Unzip in C:\) version of MySQL v4.1.x.


The bold section is the problem I can not find the bin folder and I can not find mysqld.exe and the control panel thing does not work eighter there is no my sql there I am running win xp home sp2. Also I am have a tiny bit of trouble understanding that note there to.
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Mon Sep 19, 2005 4:57 pm    Post subject: Re: Problem Reply with quote

Charles wrote:
I followed the following instructions

Click here if you need to download MySQL. After you downloaded MySQL , create a new folder in C:\ called MySQL and unzip the contents of the mysql zip file to that new folder. Go to C:\MySQL\bin and click on mysqld.exe and it should launch MySQL. If MySQL doesn't start on Windows 2000/XP , go to My Computer -> Controle Panel -> Admin... Tools -> Services and Start MySQL. Good Luck!

Note: You will need to download the (Unzip in C:\) version of MySQL v4.1.x.


The bold section is the problem I can not find the bin folder and I can not find mysqld.exe and the control panel thing does not work eighter there is no my sql there I am running win xp home sp2. Also I am have a tiny bit of trouble understanding that note there to.


Microsoft wrote:
In windows 95 the search option has been greatly refined in speed and functionality. You'll find that finding your files is now easier than ever!


Disclaimer: Windows 95 search blew the big one, and I completley made that up.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Mon Sep 19, 2005 5:43 pm    Post subject: Re: Problem Reply with quote

Disclaimer: Windows 95 search blew the big one, and I completley made that up. ==

Disclaimer: Windows 95 search blew the big one, and I completley made that up.
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Mon Sep 19, 2005 5:50 pm    Post subject: Re: Problem Reply with quote

cmxflash wrote:
Disclaimer: Windows 95 search blew the big one, and I completley made that up. ==

Disclaimer: Windows 95 search blew the big one, and I completley made that up.


Really; why would you bother to do that?
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Mon Sep 19, 2005 11:41 pm    Post subject: Reply with quote

Hello Charles--

You wrote, "The bold section is the problem I can not find the bin folder and I can not find mysqld.exe"

You may have downloaded the wrong version of MySQL. I did the same thing about a day or two ago...and there was no "bin" folder. You must download the windows version...mine came from here:
http://mirror.services.wisc.edu/mysql/Downloads/MySQL-4.1/mysql-noinstall-4.1.14-win32.zip


Also, the preconfigured php5 with installer from this page worked easily and great for me:
http://www.aprelium.com/abyssws/php5win.html

I hope this helps.

Regards,
Axis
Back to top View user's profile Send private message
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Wed Sep 21, 2005 5:11 am    Post subject: Thanks Reply with quote

Thanks alot that worked great Axis now I am having trouble configuring phpmyadmin all the links in the page are doubled and I have php installed into two directories c:\PHP and c:\Program Files\PHP5 I have to have them both inorder for phpmyadmin to work also at the bottom of my main phpadmin page it says the following:

Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole. The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.

So thats that I really appreacite your help once I figure all this out I am going to come back here to help other peoples out also! you guys are awesome!
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Wed Sep 21, 2005 5:51 am    Post subject: Reply with quote

Hi Charles--

I, personally, would not install PHP5 into two different places on your machine. I would delete one of them and that might make things with phpmyadmin a little less hazardous. (Unless you know have some special need to have php installed in two different locations.)

I followed TrustPunk's tutorial with phpmyadmin but ran into a few glitch's, I found that if I deleted all the present privileges I would get locked out of the system. After installing, deleting and re-installing a few times I just found I could simply use Abyss's password protection feature to password protect the phpadmin directory and then enter a new username, database name etc. In other words, I just left the system itself have root privileges but password protect the directory phpadmin is installed into.

I would ignore the warning, and password protect the phpadmin directory with Abyss if your problem is similar.

Regards,
Axis
Back to top View user's profile Send private message
Charles
-


Joined: 17 Sep 2005
Posts: 9

PostPosted: Wed Sep 21, 2005 3:33 pm    Post subject: Back to The Begining Reply with quote

Alright I deleted everything and started all over again everything is going great but not when I go to http://127.0.0.1/phpadmin/ to access my admin page I get a php info page displaying my php info. Have any idea what could be causing this?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB phpBB Group