Jump to content

As the title says, please move this to the right place, i dident know where to put it.

I got a webpage in a zip folder, and i don't know what programs i need to install on my Ubuntu server to be able to use this as a www.mydomain.com and then get to that, and use its functions

Need information about the files etc, let me know since i don't know what you need to know.

Thank you -jove

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/
Share on other sites

Link to post
Share on other sites

This isn't really an area I know much about but I'll try to help anyway. Someone else can correct me if I'm wrong.

 

I think you can get what you want with XAMPP (or install each item separately as needed) and then set it to your domain name with Apache Virtual Hosts.

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6106263
Share on other sites

Link to post
Share on other sites

LAMP server should be what you're looking for: https://help.ubuntu.com/community/ApacheMySQLPHP

 

After that all you need to do is make sure you're port forwarded in your router. You can find guides for your specific router here: http://portforward.com/english/routers/port_forwarding/routerindex.htm

Specs: CPU: AMD FX 6300 Motherboard: Gigabyte 970A DS3P RAM: HyperX Fury 16GB 1866MHz GPU: MSI R9 270 OC edition Case: Sharkoon VS3-S SSD: Samsung 840 EVO 120GB HDD: 1TB Caviar Blue PSU: Corsair CX500W

*If I say something that seems offensive, please don't take it seriously, it was most likely meant as a joke/sarcastically*

 

 

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6106264
Share on other sites

Link to post
Share on other sites

As the posters above me said, you will need to configure the Apache, MySQL and PHP services, the guide posted above is pretty easy to follow if you know how to use the command line.

 

If you are going to let other see your website I wouldn't recommend opening a port to your computer unless you take security measures before, if you don't do it, anyone that has your IP can get access to your computer. If you can afford it I would recommend using a Virtual Private Server (VPS), there are some that are very affordable like digitalocean.com, for 5 dollars a month you can have full access to a server... although it would be in command line only.

CPU: I7 4790k | Motherboard: Asus Maximus VII Hero | RAM: Corsair Vengeance 16GB DDR3 1866Mhz | GPU: EVGA GeForce GTX 980 Ti 6GB Superclocked+ ACX 2.0+ | Case: Corsair Carbide 500R | Storage: SSD Samsung EVO 850 250GB, 2 * 1TB 7200rpm HDD | PSU: EVGA 600b 80 plus bronze | Display(s): Asus PB287Q | Cooling: Noctua NH-D14 | Keyboard: Corsair K70 Cherry MX Red | Mouse: Logitech G502 | Operating System: Windows 10 PRO

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6106826
Share on other sites

Link to post
Share on other sites

As the posters above me said, you will need to configure the Apache, MySQL and PHP services, the guide posted above is pretty easy to follow if you know how to use the command line.

 

If you are going to let other see your website I wouldn't recommend opening a port to your computer unless you take security measures before, if you don't do it, anyone that has your IP can get access to your computer. If you can afford it I would recommend using a Virtual Private Server (VPS), there are some that are very affordable like digitalocean.com, for 5 dollars a month you can have full access to a server... although it would be in command line only.

already have alot of ports open so thats not that scary for me, i got a few servers so i would like to make a website for it

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6114379
Share on other sites

Link to post
Share on other sites

As the posters above me said, you will need to configure the Apache, MySQL and PHP services, the guide posted above is pretty easy to follow if you know how to use the command line.

 

If you are going to let other see your website I wouldn't recommend opening a port to your computer unless you take security measures before, if you don't do it, anyone that has your IP can get access to your computer. If you can afford it I would recommend using a Virtual Private Server (VPS), there are some that are very affordable like digitalocean.com, for 5 dollars a month you can have full access to a server... although it would be in command line only.

 

 

LAMP server should be what you're looking for: https://help.ubuntu.com/community/ApacheMySQLPHP

 

After that all you need to do is make sure you're port forwarded in your router. You can find guides for your specific router here: http://portforward.com/english/routers/port_forwarding/routerindex.htm

Will i then be able to just FTP and upload all the files and then just configure it from there?

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6114444
Share on other sites

Link to post
Share on other sites

Will i then be able to just FTP and upload all the files and then just configure it from there?

 

You'd need to set up an FTP server and configure it so that the FTP directory is at the web server's directory, but yes

Specs: CPU: AMD FX 6300 Motherboard: Gigabyte 970A DS3P RAM: HyperX Fury 16GB 1866MHz GPU: MSI R9 270 OC edition Case: Sharkoon VS3-S SSD: Samsung 840 EVO 120GB HDD: 1TB Caviar Blue PSU: Corsair CX500W

*If I say something that seems offensive, please don't take it seriously, it was most likely meant as a joke/sarcastically*

 

 

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6114513
Share on other sites

Link to post
Share on other sites

You'd need to set up an FTP server and configure it so that the FTP directory is at the web server's directory, but yes

already got that, and thanks

So i followed the Tutorial, and when it says try to connect to it, it doesent work, iv tryed a few times now, and last time i did sudo apt-get update i corupted the whole linux server

EDIT

it works. now i don't know what to do, the server is .php files and i don't know where to put it or what to do on the server

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6114529
Share on other sites

Link to post
Share on other sites

You should put your files into var/www/html or something like that. (idk if you have xampp or lamp or just stand-alone apache server, but the path should be similar to his one).

Also, if you didn't configure your domain name you will reach apache through http://localhost/(your project folder name)

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6120932
Share on other sites

Link to post
Share on other sites

I am having trouble replying... Whenever I try and include the relevant steps it won't save my reply and even told me I was blocked... I think there's filtering that see "chown" on behalf of www-data and is too stupid to recognise it's not an attack.

 

So I put my reply on pastebin: http://pastebin.com/gxn550fN

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6122286
Share on other sites

Link to post
Share on other sites

I am having trouble replying... Whenever I try and include the relevant steps it won't save my reply and even told me I was blocked... I think there's filtering that see "chown" on behalf of www-data and is too stupid to recognise it's not an attack.

 

So I put my reply on pastebin: http://pastebin.com/gxn550fN

I don't see why i would want to remove ftp.

 

Ok is there anyone that could give me a step by step on how to get a webserver that uses .php and how to install it from start to finish? as of now all the tutorials fails to help, its eather a white page, just php code page, this site does not exist or a corupt linux.

i don't understand anything and as of now the tutorials havent helped at all

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6125067
Share on other sites

Link to post
Share on other sites

I don't see why i would want to remove ftp.

 

Ok is there anyone that could give me a step by step on how to get a webserver that uses .php and how to install it from start to finish? as of now all the tutorials fails to help, its eather a white page, just php code page, this site does not exist or a corupt linux.

i don't understand anything and as of now the tutorials havent helped at all

 

1) Because FTP isn't secure, and you certainly shouldn't allow it to access any directory other than where the website files are hosted.

 

2) If you don't know how to set one up properly just buy web hosting like everyone else. Your putting your whole network at risk as well as anyone else connecting to it by running an insecure server.

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6126360
Share on other sites

Link to post
Share on other sites

i don't understand how ftp is insecure when every host site gives you a ftp access and every tutorial says use ftp, so i followed them and installed vsftpd.

im not planing to use more money on this than this computer takes in power its just a prodject

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/455111-linux-and-php/#findComment-6126854
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×