New answers tagged

0

When you type adduser hafiz www-data it creates a new user, hafiz and add it to the www-data group. When you type adduser hafiz harron www-data you are not using the command correctly. If you simply want to save files to the /var/www/html directory you just need to make sure that your user has permission to write files so that group. Since /var/www/html is ...


1

Your problem may have its root in various causes, here are the solutions for two of them: Folder and File Permissions Not only the site.com folder, but also all parent folders need to have their permissions set so apache can traverse them. Please check if /home, /home/ihab, /home/ihab/Workspace and /home/ihab/Workspace/Webdev do have proper settings. They ...


3

php5-mcrypt (MCrypt module for php5) has been updated to php7.0-mcrypt (libmcrypt module for PHP) in Ubuntu 16.04. The command sudo apt-get install lamp-server^ in Ubuntu 16.04 searches the package list files for all Task: fields and gets all with lamp-server, among them is php7.0. Then it installs those packages the standard way with sudo apt-get install ...


0

You can use XAMPP Linux.You can download any version of xampp linux from the below mentioned official xampp site. https://www.apachefriends.org/download.html Enter downloaded file location using terminal. First give certain permission for the downloaded binary file. (Assume that i downloaded 64 bit binary package.) sudo chmod a+x xampp-linux-x64-5.6.23-0-...


0

I ran into this once and this worked for me: source /etc/apache2/envvars apache2 -V sudo service apache2 restart I haven't had the problem since.


0

That looks like you tried to start Apache by running something like apache2 That doesn't work. Use sudo service apache2 start instead.


0

Browsers, like Google Chrome and Mozilla Firefox, show this error as: Error 310 (net::ERR_TOO_MANY_REDIRECTS): there were too many redirects This problem may be caused either at the client end or the server end. If there is no redirection loop on the server side, the problem is likely to be solved just by deleting cookies. Go to Settings → ...


0

I just answer a question like this, not the same but for 2 xampp installations(differents) on same machine. How to install multiple versions of XAMPP?


0

try this sudo service mysql stop sudo /opt/lampp/lampp restart


0

This is what I used, check out the comments as well! https://www.digitalocean.com/community/questions/how-do-i-change-phpmyadmin-access-url


2

i think you know that you will have to keep track of security fixes and bugs for your LAMP Setup then. Apt would kind of do this for you implicitly. Well how far did you get then? There should be documentation for each part of your setup like here for php: http://php.net/manual/en/install.unix.php Learning how to gain knowledge by yourself is imo the most ...


2

Just save it to a file. If you are running your script by using something like this in /etc/rc.local: /path/to/script Change that to: /path/to/script > /tmp/script.out 2>/tmp/script.err That will create the two files /tmp/script.out and /tmp/script.err which will contain the script's output and error messages respectively.


0

Ok I found the answer: 1- Leave DocumentRoot pointing at /var/www/html 2- Move your mybb forum from /var/www/html/yourforum to /var/www/html 3- Open settings.php file vi /var/www/html/inc/settings.php 4- find $settings['bburl'] line and set it to your website new url: $settings['bburl'] = "http://www.mywebsite.com/"; 5-find $settings['cookiedomain']...


1

This answer assumes you did not change the default settings of the apache server before. First change the /etc/apache2/apache2.conf, edit the following lines: <Directory /var/www/html/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> to <Directory /var/www/html/mywebsite/> Options ...


1

It is not recommended run a webserver on root user. If you want advice move to services like amazon ecs, google cloud, where you can easily start again a new server and get support, or online help. Or at least a provider that has cpanel. This is not a thing to do by hand, contact your provider support and ask how to reset an account. (backup your database ...


0

You should be able to fix your problem by running the following commands sudo apt-get install libapache2-mod-php7.0 sudo a2dismod php* sudo a2enmod php7.0 sudo apache2ctl restart After adding Ondrej's repository, installing PHP 7 may not be enough as you will also need to install and enable Apache's PHP module for the version of PHP you need. This may be ...



Top 50 recent answers are included