compatibility and file location from win to linux...

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

compatibility and file location from win to linux...

Post by rami »

i have made some pages in windows and tested in easyphp1-8 ... which is running sucessfully in easyphp...
intregrated with mysql database .....
1) will these codes work on linux ....?
The main problem is
where do i put these files ..which is inside html folder now inside www

where do i put that students database which is inside data folder in mysqlfolder in easyphp folder..now

and those mysql_connect.php files which is in www now....

my all pages use require_once('../"mysql_connect.php")
it is one step above the code files (php files)....

i ran the code in linux (register.php) but it says undefined...function or something
escape.....
those escape function is not recognised....

it is said that mysql , php,apache are running when i see status...in linux....

what ammenment is to be made

i am all confused ....var/....and all...
i have posted it here as all mysql ...php ...linux are open source
any open source expert here....

the path the files has is in that require......mysql_connect.php....
so i can make the code work...
thanks for help
saha
i am confused about where to put files in linux folder so as it will work as it is doing in windows(easyphp1-
by the way i am using redhat 9 and the files are made in easyphp1-8 so will it be compatible...?
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

Easy-php files??
its not clear, can I know did u create the databaes in mysql for ur students, whether your directories are configured through apache i.e did u define your website your running in apache?? and few more details of how your running this application.
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

also the exact error message would help..
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

dude81 wrote:Easy-php files??
its not clear, can I know did u create the databaes in mysql for ur students, whether your directories are configured through apache i.e did u define your website your running in apache?? and few more details of how your running this application.
i am using easy php 1-8 now under windows,all files are working fine

the files are under html folder which is inside www folder....in easy php
My database file are in mysql(inside data folder) folder inside easyphp folder....

i made database(tables) in mysqladmin

now,

i am planning to move to linux (redhat 9)
i have installed every thing apcahe is running so is mysql server


now my query is
will my files work in linux which were made in windows.
Especially database and tables ..it is said that it need to be exported and imported ....

how can i do it...

next important thing
what should be location of files in linux
a)which are inside www folder
b) which are inside html(inside) www folder..
and database files(inside mysql folder)

and if i remake all the database folder in linux
will it solve my problem.....

any help
rami
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Rami, I have only switched to the Ubuntu distro and had about the same problem as you - but believe it or not, it's easily solved.

What I'd recommend you to do, is check out XAMPP, from ApacheFriends.
It's a complete pre-configured Apache server with MySQL and PHP5 installed.

Checkout ApacheFriends for further information.
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

pilau wrote:Rami, I have only switched to the Ubuntu distro and had about the same problem as you - but believe it or not, it's easily solved.

What I'd recommend you to do, is check out XAMPP, from ApacheFriends.
It's a complete pre-configured Apache server with MySQL and PHP5 installed.

Checkout ApacheFriends for further information.
thanks for answer
but any way i didnt get the thing how is going to solve the problem...

i have apcahe,mysql php already running in linux
as i can run pages ....

problem is just transferring files that are working in windows to linux

do you mean that i can download that software and i can just copy paste files as i have even ftp from windows to linux and
my php files connected to database will start working
please can you some what descriptive

thanks for answer
i visited the site seems like its LAMPP SOFTWARE ....Is it same like easyphp for windows..
thanks for answer
rami
i have heard that database made in win should be remade in linux or imported exported...
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

By the way the solution is veryeasy here.
All u need is to set up a phpmyadmin in one apahce root path i.e under yoursite documents
then just export through phpmyadmin all the folder of mysql through it, it will return with .sql file.

then just run this command on command prompt
mysql -u(user) -p<file.sql
it will prompt here for password
just enter the password
that is it all the tables and structures will be created in few seconds
and rest all php files put in the document root i.e www folder, everything should work fine
Post Reply