I'm a beginner learning PHP. I need a server and MySQL.
Is there an app in Ubuntu that I can download? I think I have installed something with PHP5 Server-side something. But when I clicked to use the app, it vanished. Where did it go?
I'm a beginner learning PHP. I need a server and MySQL.
Is there an app in Ubuntu that I can download? I think I have installed something with PHP5 Server-side something. But when I clicked to use the app, it vanished. Where did it go?
One suggestion (there are other options):
First install synaptic package manager (sort of a pro version of software center):
sudo apt-get install synaptic apt-xapian-index
Then open synaptic and install apache web server and php5. If you select "libapache2-mod-php5" it should pull in the necessary apache server and other things. Note, if you type "php5" in the quick search there is a lot of php5 related packages some of these may be needed as you go along, and you can just install them later.
Install a database (my personal preference is postgresql but mysql is probably easier to get started with as it doesn't have the same level of security settings involved, I would strongly advice, though that you transition to postgres at a time when it feels convenient, it's more standards compliant and therefore your work and experience will generally be more broadly applicable, and the documentation is far better.). Select "php5-mysql" + "mysql-server" or "php5-pgsql" + "postgresql".
For mysql: during installation you will be asked a password for your mysql root account (it can be a bit confusing at times) this root/password is what you normally will give to php-apps you will be building and it's the password you'll give to phpmyadmin during installation also.
Install phpmyadmin - a php-based administrator for mysql (or if you go with postgres, pgadmin3).
Finally install a suitable php editor or a full blown ide. As for editors I have no specific suggestion (just use the text editor you're comfortable with) but for ide I'll suggest netbeans (found in synaptic).
When this is done, your webroot will be /var/www/. This is where you put your php-files.
You can check that apache is running by going to http\://localhost/ where you should see the message
You can use Xammp Server. Or install local LAMP Server on Local Host.
There are a number of guides around for setting up LAMP[1]. A quick search turns up these ones which take you through it step by step:
Good luck!
[1] - Linux Apache MySQL PHP/Perl.
There are many web servers you can use. I prefer the apache web server. install it by typing this in a terminal.
sudo apt-get install apache2
If you don't like terminal then just search for apache in the USC.
then add your html files to /var/www/
. Now just go to your localhost and see your new website!