ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to test a php website, but the computer I'm using doesn't have a network to test over.
The other key part of this website is that it will be accessing and writing to a MySQL Database.
So what I'm looking for is some way to set up my computer so I can test the site right there, preferably through Firefox.
I'm using Mandrake 10.0 Community, and any packages I use will probably come from the CDs unless that's impossible. (If need be I also have Knoppix, and will be getting Gentoo once my CD-Rs come in)
Let me know how to do this if it's possible, or if you need more information.
You absolutely do *not* need to be on the Internet - or even connected to a network - to use a web server or develop and test PHP.
Provided:
1. PHP, Apache and mySQL are installed and configured
2. The Apache and mysql daemons are running
... then all you have to do is point your browser at:
3. http://localhost
That is, instead of some URL like "www.google.com" (IP address 66.102.7.99), you instead point to "localhost" - your computer's loopback address (IP address 127.0.0.1).
hi
php files have to saved to htdoc directory,as i know,where is it?
how may i b sure mysql is running?
is thr any GUI to manage mysql as can b find out for M$sql?
i installed my debian as workstation/web server/sql sever but there was no PHP module installed,i installed apache2/php4/mysql manually and the local host in address bar loaded .....localhost...apache2-default page but i can not save any php to apache2 dirctory too cause an error cann not be seve ..b sure thr is enough emty...yes the disk-hdd- is not full i can not understand wot doz it mean!
thnx
from the console you can enter the following command
Code:
ps aux
This will list all the processes that are running. If you see mysql in that list then you wil know that it is running. However it is quite a long list and it is possible to miss it. So an improvement is to send to output of this command into the grep command and tell grep to look for mysql as follows:
Code:
ps aux | grep "mysql"
If you wanted to look for another service, such as answer the question "is apache running?" you just need to change mysql with apache.
hi
php files have to saved to htdoc directory,as i know,where is it?
how may i b sure mysql is running?
is thr any GUI to manage mysql as can b find out for M$sql?
i installed my debian as workstation/web server/sql sever but there was no PHP module installed,i installed apache2/php4/mysql manually and the local host in address bar loaded .....localhost...apache2-default page but i can not save any php to apache2 dirctory too cause an error cann not be seve ..b sure thr is enough emty...yes the disk-hdd- is not full i can not understand wot doz it mean!
thnx
I suppose this is a question. If so:
I think it's confusing when you start asking questions in a thread that you did not start. Next time, please start a new thread.
With regards to the questions
1)
use find / -name htdocs -print to locate the htdocs directory
or use find / -name httpd.conf -print to find the apache configuration file and check it's contents
2)
see graemef's reply
3)
phpmyadmin is a webbased gui for MySQL; others can be found with google results for 'mysql gui'
4)
don't know
One further comment:
Please try to write normal english; it's difficult to read when you use all kinds of 'abbreviations' (at least for me)
hi
Thank you for attention and im sorry if i asked questions -as i thought related to the topic and may be useful for other members,- and if i asked about myqsl GUI under Debian i am sure most of programmers use some special gui then i think i may use your experiences, allover the answers and advises are useful and Yes and Ok sir i try start a new topic each time, thank you again , and i wish find out more reply about "PHP Website without Server/Internet" in this thread or other threads,
Regrades
CppAnsi
Please note that this tutorial is installing from source, which is ok but
i found it easier to install php and mysql by using package-managers, like YasT for Suse.
Also note that some distributions pre-install these packages like apache for you, so always start by checking what's already installed (and probably running as well).
This link does provide usefull info on configuring apache/php/mysql.
Thanx for reminding me muha, most disto comes with php, mysql and apache packages but usually its not the latest version
(my slack came with apache1 and php 4)and if you are planning to install a new version it would be best if you removed the old ones else youll run into a lot of complications. I couldnt find a package for slack so i had to compile for source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.