PDA

View Full Version : PHPNuke 7.5, Apache2, PHP5, MySQL4 and MySQL Admin


HunteR-RosE
3-11-05, 11:32 AM
After 5 hours of trying to setup a mirror of my Powweb hosted website on my home computer I am still hopelessly lost and late for work :rolleyes: ... It seems like my php version installed isn't correctly configured. Any help would be greatly appreciated at this point.

Basically this is what I did:

1.) Installed Apache2
a. verified that I could pull up a website via http://localhost/
b. it installed correctly and I could see the Apache index.html from localhost

2.)Installed MySQL4 and MySQL Admin
a. services started and I created a database for my nuke website using MySQL Admin.

3.)Installed PHP5
a. used the windows installer package and set it up for the Apache configuration.

4.)Copied contents of html folder from PHPnuke to htdocs folder in Apache.

Whenever I would go to any .php file windows would ask me to open or save it. After reading about php some more I modified the php.ini file so that my apache webfolder was the new starting place for php documents, and I added index.php to the directory list. I could now view a simple test php file I put in the htdocs folder that displayed the current time. So I know it can view php files. Then I try and access index.php and nothing happens. I am familiar with phpnuke enough to know how to correctly set it up and it is working on my powweb site, but when it comes to mirroring it on a local computer it seems I am running into a version conflict or something with php. Does anyone know what version of php is required for PHPnuke 7.5? I looked on their website but I couldn't find anything specific.

I stumbled across this link today that might help but if anyone has a FOR SURE way that is dumy proof to setup a PHPnuke 7.5 website on a home computer it would help a lot.

http://www.webmasterstop.com/86.html

***EDIT***

I am sure there are other people out there that would like to do this. I believe the above link will be useful because it does describe setting up what I want to do (with the exception of phpmyadmin, I'd rather use mysqladmin if possible).

Right now I'm at work just reading up on more info that could help me. When I get off work and back home I will post how things went following the above link. I hope it works. Additionally has anyone had luck with any version of Foxserv and PHPnuke 7.5?

mongoose643
3-19-05, 08:48 PM
WAMP
Windows
Apache
Mysql
Php
If you are running windows you should definately try this program set up program. You will be up in a matter of minutes, not hours. Believe me it's worth it. I spent many times the time you spent and still only had apache and php running. MySQL was another story entirely. You can change settings to your hearts content after installation and as long as you keep backups you will always have a working version.

It simply installs the three programs (correctly) for you and provides a nice little task bar icon to access settings, programs, etc. quickly. You can also tell it to start up when your computer is turned on or manually turned on. Best of all...It's FREE! It uses the latest versions of all the programs it installs.

It also installs PHPMyAdmin and SQLite! :)

Go to WAMP SERVER (english) (http://www.wampserver.com/en/index.php) to view the features. To download go to the download (http://www.wampserver.com/en/download.php) page.

Once you install all of that you can install PHPNuke!

(No I don't make money off of this. I just really like the fact that someone decided to create it.)

Good luck! :)

NMS
3-20-05, 06:27 AM
Thanks for that tip Michael. Hunter keep us informed how things went.

Arun
3-21-05, 03:12 AM
You need to specify Directory index setting 'index.php' in the apache config file ie httpd.conf
-----------------------------------httpd.conf----------------------------------

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.php

---------------------------------------------------------
Also in php.ini specify the session save path correctly..... then it might work properly.
How do you have configured to work PHP as a CGI engine or as an apache module?


-----------------php.ini------------------------

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
; As of PHP 4.0.1, you can define the path as:
; session.save_path = "N;/path"
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
session.save_path = C:\whatever\yoursessiondatafolder
----------------------------------------------------------------


Regards

mongoose643
3-21-05, 10:22 PM
The post above this one describes how to do it manually but sometimes getting all three (apache, php, and mysql) to work together is trickier than just one or two ini or conf files. It has to do with where they are on your computer etc. With wamp you don't have to worry about that (and I get the gist that you don't really want to) so now you are well informed and can do it however you want.

Again--Good luck!

kurniawan
3-22-05, 04:14 AM
I am a newbie and just learning about php and mysql but I had a same experience that maybe could help. I didn't use PHPNuke for administering the package, I use EasyPHP. The first time I installed the package, I also had the php files not read as well, then I realize that default folder is not inside apache www/ but inside EASYPHP1-7/www/. I am not pretty sure about PHP Nuke but it is worthy to try. Put your files inside www folder of PHP Nuke instead of apache/www/.
I hope it works. Sorry if this advice is useless :D Just trying to share.

Arun
3-22-05, 07:35 AM
I think its always good to get it all done manually this way you get to know how it really works and will help a lot to solve some minor probs when something go wrong in your real web server as you might have grabbed a good idea of the internal structure of a webserver....

Also helps a lot when you have to maintain and keep costum php.ini in your webserver and so....

TO be frank I've never used such auto installers even once in my life...

joye
3-22-05, 08:20 PM
i do not know much about php. i just been able to changes and modified the program my web designer has made the php program!

i have problem with my php. my web designer i guess he use the php from powweb in aug 2004, and do not update my website yet. i have problem in changing the sales discount percentages and my web pages will never changes even though i change the discount percentages and sometimes, the product that i change percentage just disappear from my website! i do not know if it is related to the php version which powweb is updating from version 4.3 to 5,

how can i check which version of php my website is using?

what is the different between phpnuke7.5 or EasyPHP or powweb php v5? can you please explain?

i really need some help?

mongoose643
3-22-05, 11:50 PM
Arun,

I suggested that the autoinstaller should be used because they simply want to mirror their powweb site on their home computer not actually provide a hosting service. Therefore, the autoinstaller works just fine and saves a tremendous amount of hassle and time for those of us who don't care about the details or just don't have time for them. I have had no trouble using custom php.ini files with this autoinstaller and in fact have been able to customize all of the settings to my hearts content without any problems that would be related to the fact that I used an autoinstaller. Sometimes (as it was for myself) it is much easier, less time consuming, and less frustrating to learn by example than by trial and error. I was simply providing a "dummy proof" way to set up a mirror site which is exactly what Hunter-rose requested. Hunter can of course set it up manually if so desired.

Joye,

The follwing instructions tell you how to check the php version of your powweb server.

Copy and paste the following code into a PLAIN TEXT file. Save this file as phpinfo.php.
Note: The file extension should be .php NOT .php.txt

<?php

phpinfo();

?>

Load this file to your site then access it using your web browser. A page will appear that contains all the information about php on your server. The version will be in the header at the top of the page.

As for the differences between those programs I haven't a clue but I know that I have heard of PHPNuke more than the other. (Doesn't necessarily mean anything.)

My powweb server uses php version 4.3.10 still. I don't think that Powweb has upgraded to version 5 yet.

Also, the only way to check on your first question is to look at the code and debug it if it needs it (and it probably does). You should contact your web designer about that.

By the way, if this needs more discussion you should try starting your own post so that this one doesn't get off topic and deleted or moved.

HunteR-RosE
3-23-05, 09:56 PM
Sorry for the wait guys...

Go to this website and download XAMPP (http://www.apachefriends.org/en/xampp.html).

This package was sooooo easy to install. Seriously all you have to do is unzip it and put it on a root directory (i.e. C:\ , D:\ ) Absolutely NOTHING gets installed to your sysem. This is awesome because if you mess something up just copy the directory back. Basically all you have to do is either start or stop the apache and mysql services. It rocks. It practically mirrors the structure of Powweb, to include the myphp admin web interface. If you screw up? No uninstalling and reinstalling. Just unzip and copy the directory back. Very nice.

Well I hope this helps everyone out. I searched on many sites looking for help on how to setup all this stuff. In fact I even tried WAMP but for whatever reason PHPnuke didn't like it... :D

mongoose643
3-23-05, 10:50 PM
Thaks for the update and info. Its always good to learn about new stuff like XAMPP and that PHPNuke doesn't like WAMP (although I have never had any problems with it myself - but I never installed pre-made programs either, I write my own stuff).

Thanks again.