If you want to know when process started in Linux then you can run simple command:
ls -l /proc | grep 12345
*where PID 12345
If you want to know when process started in Linux then you can run simple command:
ls -l /proc | grep 12345
*where PID 12345
Fast and easy install (PHP + MySQL + Apache) LAMP on Ubuntu
Step 1: install tasksel
sudo apt-get install tasksel
Step 2: Run install PHP, MySQL & Apache as LAMP server
sudo tasksel install lamp-server
Completed! Now you have installed PHP, MySQL, and Apache on your Ubuntu
Additional: Create site area
Continue reading Web-server on Ubuntu (PHP + MySQL + Apache) in 2 commands
Preparing (install apache2, python):
Installation Apache2:
sudo apt-get install apache2
Installation Python(choose one):
sudo apt-get install python
sudo apt-get install python2.7
sudo apt-get install python3
First step: enabling CGI processing in your apache (automatically enable mod_cgid).
sudo a2enmod cgi
Second step: Allow run CGI scripts in your directory.
You can try allow by .htaccess in your “python” web folder
Options +ExecCGI AddHandler cgi-script .py
or you can allow .py files to be executed as scripts in a particular folder you would use config in apache conf file:
<Directory /srv/www/mysite/public_html/python_folder> Options +ExecCGI AddHandler cgi-script .py </Directory>
Finish step:
Continue reading How to run Python Scripts ( *.py files) on Apache2 (configuring unix apache2 servers)
If you get ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ in … or ‘Lost connection to MySQL server during query’ then don’t afraid it.
Now, you know:
sudo service mysql restart
ls -la
htop
du -sh * | sort -hr