How to add PHP to Hiawatha server?
*sigh* Help Please!
Hi all,
As most of us noobs do , I have spent the better part of a week (6 days actually) searching these forums for any information or a simple "how-to" on getting PHP to work. I have hiawatha running (was simple enough once I found out it was already there, just waiting to be used) and it renders html flawlessly.
I have found some things, LAMP for one, but it does not register in any accessible means that I can find. For the most part, the information I find is either (1) Broken links and/or information outdated by a year or more and two or three versions of puppy behind or (2) simply too complicated for a noob such as I to understand and/or just does not seem to function. http://localhost/index.php or http://127.0.0.1/index.php renders only the coded page (i.e. the actual script as it would in an editor), not the page itself.
At this point I'm not even sure if my attempts are working or not. There may be a special directory that the php files need to go? a setting that is turned off that simply needs to be turned on? After installing LAMP, i noticed that no rc.http files were created in /etc/init.d, /etc/hiawatha or any other directory . I assume, therefore, that the pet install - though prompted as complete - did not take.
I am attempting this on two machines - one using Lucid 5.28 and the other using Precise 5.4.3. Both are frugals on an AMD duron with 775 MB ram and 80 GB HDD. both PSF are set at about 30 GB (yea, it took a while) so space should be no issue.
I am thinking about trying the xampp approach once I remove all the LAMP and stuff. Basically, all I need is to be able to run a PHP program on one machine - no need at this point to publish it to the web, just host it on the one machine.
I am new-ish to Puppy and still learning, but have some experience with web servers (though very limited). It seems to me there should be an easy, step-by-step process in which to establish a working php server. especially since the server part is already there. Maybe a simple addition - put it in, turn it on, it works kinda thing?
If someone would be so kind as to provide some insight and/or point me to the most simplest and easly accomplished route, I would be very grateful . Thanks so much!
E
As most of us noobs do , I have spent the better part of a week (6 days actually) searching these forums for any information or a simple "how-to" on getting PHP to work. I have hiawatha running (was simple enough once I found out it was already there, just waiting to be used) and it renders html flawlessly.
I have found some things, LAMP for one, but it does not register in any accessible means that I can find. For the most part, the information I find is either (1) Broken links and/or information outdated by a year or more and two or three versions of puppy behind or (2) simply too complicated for a noob such as I to understand and/or just does not seem to function. http://localhost/index.php or http://127.0.0.1/index.php renders only the coded page (i.e. the actual script as it would in an editor), not the page itself.
At this point I'm not even sure if my attempts are working or not. There may be a special directory that the php files need to go? a setting that is turned off that simply needs to be turned on? After installing LAMP, i noticed that no rc.http files were created in /etc/init.d, /etc/hiawatha or any other directory . I assume, therefore, that the pet install - though prompted as complete - did not take.
I am attempting this on two machines - one using Lucid 5.28 and the other using Precise 5.4.3. Both are frugals on an AMD duron with 775 MB ram and 80 GB HDD. both PSF are set at about 30 GB (yea, it took a while) so space should be no issue.
I am thinking about trying the xampp approach once I remove all the LAMP and stuff. Basically, all I need is to be able to run a PHP program on one machine - no need at this point to publish it to the web, just host it on the one machine.
I am new-ish to Puppy and still learning, but have some experience with web servers (though very limited). It seems to me there should be an easy, step-by-step process in which to establish a working php server. especially since the server part is already there. Maybe a simple addition - put it in, turn it on, it works kinda thing?
If someone would be so kind as to provide some insight and/or point me to the most simplest and easly accomplished route, I would be very grateful . Thanks so much!
E
Re: *sigh* Help Please!
XAMPP is the easiest way: has the whole environment needed to run php (web-server, db engine, mail server and backend, all ready to run) and is a simple "extract somewhere and run it" application.e_mattis wrote:...If someone would be so kind as to provide some insight and/or point me to the most simplest and easly accomplished route...
thanks!
Thanks GustavoYz.
I d/l it and it went in simple and easy! The instructions are well laid out also - even a dummy like me couldn't screw it up too bad
Would have liked to use Hiawatha, but at least it's up and running.
Thanks again!
I d/l it and it went in simple and easy! The instructions are well laid out also - even a dummy like me couldn't screw it up too bad
Would have liked to use Hiawatha, but at least it's up and running.
Thanks again!
mysql in Exprimo?
I need mysql for a weather-related app.
There's tons of discussion about LAMP, Hiawatha, XAMPP, etc.
I see no reference to usage with Exprimo.
Is there a reason not to use these with Exprimo (5x15 is current)?
This is on an old Panasonic Toughbook CF-29 so resources are limited.
There's tons of discussion about LAMP, Hiawatha, XAMPP, etc.
I see no reference to usage with Exprimo.
Is there a reason not to use these with Exprimo (5x15 is current)?
This is on an old Panasonic Toughbook CF-29 so resources are limited.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
edoc,
don't know if you have Exprimo running on the Pana yet, but other than limitations of the hardware, and not knowing much about all this in general, I would think you should have little to no problems.
XAMPP would probably be your best bet - it is really quite simple. Make a back-up and try it ( as I usually do), and good luck! would be interesting to see how it goes for you.
don't know if you have Exprimo running on the Pana yet, but other than limitations of the hardware, and not knowing much about all this in general, I would think you should have little to no problems.
XAMPP would probably be your best bet - it is really quite simple. Make a back-up and try it ( as I usually do), and good luck! would be interesting to see how it goes for you.
Yes, Exprimo works fine on two netbooks and four laptops that I manage. It is a solid distro.
I will acquire the latest XAMPP and try it.
It seems contrary to Puppy philosophy to use such a bloated app but I have so many projects on hold here due to a missing Linux-link of one sort or another it would be good to finally find some solutions.
I will give it a try and report back.
Thanks!
I will acquire the latest XAMPP and try it.
It seems contrary to Puppy philosophy to use such a bloated app but I have so many projects on hold here due to a missing Linux-link of one sort or another it would be good to finally find some solutions.
I will give it a try and report back.
Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
Code: Select all
It seems contrary to Puppy philosophy to use such a bloated app but I have so many projects on hold here due to a missing Linux-link of one sort or another it would be good to finally find some solutions.
Besides, is possible to place the main dir somewhere outside pupsave and link it to /opt.
If space is really a problem, there are ways of get a tinier web server running, but you may find some service/permissions/ownership issues that you will have to fix by yourself, one by one and if want it to be updated, prepare to recompile pretty much all the software involved (just read the previous pages of this topic).
Good points re. space (HDD space is no problem), and linking.
As for linking, would you use Link Relative from /opt to the actual location?
Which files in xampp would need to be so linked?
Thanks!
As for linking, would you use Link Relative from /opt to the actual location?
Which files in xampp would need to be so linked?
Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
@ GustavoYz
yea, the space thing does not compare to the ease of use with Xampp
@edoc
I simply put xampp in /opt, then the folder for the POS system in htdocs. It all hooked up well with little/no effort...OFF TOPIC....we getting hammered with stormd today edoc, hows the weather there in Ga?
@NeroVance
you can probably find an IP there that allows servers...if you have the right amount of money also, you can use some of the 'already runing' servers to 'fake' a server at relatively low cost. Try http://emagez.duoservers.com/ if you need one.
E
yea, the space thing does not compare to the ease of use with Xampp
@edoc
I simply put xampp in /opt, then the folder for the POS system in htdocs. It all hooked up well with little/no effort...OFF TOPIC....we getting hammered with stormd today edoc, hows the weather there in Ga?
@NeroVance
you can probably find an IP there that allows servers...if you have the right amount of money also, you can use some of the 'already runing' servers to 'fake' a server at relatively low cost. Try http://emagez.duoservers.com/ if you need one.
E
Having lived in lightning & tornado alley in Florida for 10 years we were cautious about choosing a location in Georgia.
I researched the historic weather patterns and discovered that SE-Georgia tends to be pretty quiet.
There is a tornado watch until 1AM which includes Bulloch County but those are usually precautionary vs probable ... and besides, we are even in the SE-corner of the County!
I researched the historic weather patterns and discovered that SE-Georgia tends to be pretty quiet.
There is a tornado watch until 1AM which includes Bulloch County but those are usually precautionary vs probable ... and besides, we are even in the SE-corner of the County!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
I'd extract it to /mnt/home, or somewhere outside pupfile, and link it "soft way" with this:edoc wrote:Good points re. space (HDD space is no problem), and linking.
As for linking, would you use Link Relative from /opt to the actual location?
Which files in xampp would need to be so linked?
Thanks!
Code: Select all
ln -s /mnt/home/lampp /opt/
I mean the main folder. Once you extract the big file, all goes to a new directory called 'lampp': L is for "Linux" (A = Apache, M = MySQL, P = php and Perl). Do not extract it into a NTFS or FAT* partition, MySQL will fail!edoc wrote:OK ... up to the link point ...
So it's LAMPP and not XAMPP that is linked?
Thats the one you want on /opt. See here, some info about paths.
OK ...
works.
It says, among other things it says
Code: Select all
/opt/lampp/lampp start
It says, among other things
But when I try to run"XAMPP: Starting MySql"
Code: Select all
"mysql - u root -p"
What am I missing, please?"mysql: command not found"
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
hey edoc,
XAMPP has MySqlAdmin pre-installed. try going to 'http://localhost'. There you can read more about xampp and access MySqlAdmin.
One thing you have to do before you can access MySqlAdmin (read in the localhost page) is to run '/opt/lampp/lampp security'. This sets passwords for the server, etc. Once this is done, you can get to admin and the databases.
Hope it helps!
E
XAMPP has MySqlAdmin pre-installed. try going to 'http://localhost'. There you can read more about xampp and access MySqlAdmin.
One thing you have to do before you can access MySqlAdmin (read in the localhost page) is to run '/opt/lampp/lampp security'. This sets passwords for the server, etc. Once this is done, you can get to admin and the databases.
Hope it helps!
E
Done, thanks!e_mattis wrote:run '/opt/lampp/lampp security'. This sets passwords for the server, etc. Once this is done, you can get to admin and the databases.
I am in there now. Looks good EXCEPT ...XAMPP has MySqlAdmin pre-installed. try going to 'http://localhost'. There you can read more about xampp and access MySqlAdmin. E
STATUS says MySQL is DEACTIVATED
Code: Select all
/opt/lampp/lampp start
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
This is apparently not an entirely unique problem.
I found this discussion - though it is written for a Microsoft version of windows version:
http://trebleclick.blogspot.com/2009/0 ... d-fix.html
Between the original post and the following posts I'm not sure where to start ...
I found this discussion - though it is written for a Microsoft version of windows version:
http://trebleclick.blogspot.com/2009/0 ... d-fix.html
Between the original post and the following posts I'm not sure where to start ...
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
Edoc,
I didn't have that problem on the Lucid 5.2.8 - what puppy did you say you are running?
Anyway, I would stop lampp (/opt/lampp/lampp stop). Reboot the system, then run '/opt/lampp/lampp security', then restart lampp.
NOTE - found this out the hard way - make sure you stop lampp before you turn off or re-boot the computer. does nasty things along the way and you will loose the MySql eventually.
if this fails, uninstall xampp, reboot, re-install xampp, do security before starting xamp, and see what that does.
let me know how it turns out. Maybe someone else can do you better if this doesn't fix it.
E
I didn't have that problem on the Lucid 5.2.8 - what puppy did you say you are running?
Anyway, I would stop lampp (/opt/lampp/lampp stop). Reboot the system, then run '/opt/lampp/lampp security', then restart lampp.
NOTE - found this out the hard way - make sure you stop lampp before you turn off or re-boot the computer. does nasty things along the way and you will loose the MySql eventually.
if this fails, uninstall xampp, reboot, re-install xampp, do security before starting xamp, and see what that does.
let me know how it turns out. Maybe someone else can do you better if this doesn't fix it.
E
Exprimo version 5x15
I stopped lampp.
I rebooted.
I ran security (left passwords as I had previously changed them)
I restarted lampp.
Note: Among other messages XAMPP says it was starting MySQL.
still returns
XAMPP for Linux still shows MySQL Database DEACTIVATED
I have to run a couple of errands - will uninstall and reinstall a bit later.
Little is ever simple ... sigh.
Thanks!
I stopped lampp.
I rebooted.
I ran security (left passwords as I had previously changed them)
I restarted lampp.
Note: Among other messages XAMPP says it was starting MySQL.
Code: Select all
mysql -u root -p
error."command not found"
XAMPP for Linux still shows MySQL Database DEACTIVATED
I have to run a couple of errands - will uninstall and reinstall a bit later.
Little is ever simple ... sigh.
Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603